]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:15 +0000 (12:19 +0200)
commit855223d60063176d5d613d488c10cf48483e9b3e
tree4d3b86e8502d61af346f7d53fa3b62f29efb67a3
parent9a0f0bff4e5c9af952a85f53e8a13be2988b750b
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]