]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/sunxi/board.c
sunxi: Enable non-secure access to RTC on sun6i (A31s)
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / sunxi / board.c
index f01846ef9a6bf9c715fb91d5dc29bbe487ed660a..b40198b36ee5c03a8caaaff42dc53b855c84566e 100644 (file)
@@ -23,6 +23,7 @@
 #include <asm/arch/gpio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/timer.h>
+#include <asm/arch/tzpc.h>
 #include <asm/arch/mmc.h>
 
 #include <linux/compiler.h>
@@ -115,6 +116,10 @@ void s_init(void)
                "orr r0, r0, #1 << 6\n"
                "mcr p15, 0, r0, c1, c0, 1\n");
 #endif
+#if defined CONFIG_MACH_SUN6I
+       /* Enable non-secure access to the RTC */
+       tzpc_init();
+#endif
 
        clock_init();
        timer_init();