sunxi: Enable non-secure access to RTC on sun6i (A31s)
authorChen-Yu Tsai <wens@csie.org>
Tue, 25 Aug 2015 02:49:19 +0000 (10:49 +0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 31 Aug 2015 06:43:42 +0000 (08:43 +0200)
commit92369844ec7bf0e63de51e19b281fe3739e01397
treeadd7a1f64102a55f53b06877c2fb9f547e045bc6
parent3537a0e8caa33ad4af354d5efc6be117b0728856
sunxi: Enable non-secure access to RTC on sun6i (A31s)

On the A31s the RTC is by default secured. Thus when u-boot
loads the kernel in non-secure world, the RTC is unavailable. The
SoC has a TrustZone Protection Controller, which can be used to
enable non-secure access to the RTC.

On the A31 the TZPC doesn't seem to do anything, i.e. changes to
its register contents do not affect access to the RTC.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/sunxi/Makefile
arch/arm/cpu/armv7/sunxi/board.c
arch/arm/cpu/armv7/sunxi/tzpc.c [new file with mode: 0644]
arch/arm/include/asm/arch-sunxi/tzpc.h [new file with mode: 0644]