]> git.sur5r.net Git - u-boot/commit
sunxi: switch PRCM to non-secure on H3/H5 SoCs
authorIcenowy Zheng <icenowy@aosc.io>
Thu, 20 Jul 2017 06:00:32 +0000 (14:00 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 11 Aug 2017 10:19:39 +0000 (15:49 +0530)
commite37a1b17e71521ce9385e305a87948d7ca55b4d8
treefcc27028cadd7e52f5fd95242695366784e27645
parent39858b12cceed3894cc62d194f098396f4306c0c
sunxi: switch PRCM to non-secure on H3/H5 SoCs

The PRCM of H3/H5 SoCs have a secure/non-secure switch, which controls
the access to some clock/power related registers in PRCM.

Current Linux kernel will access the CPUS (AR100) clock in the PRCM
block, so the PRCM should be switched to non-secure.

Add code to switch the PRCM to non-secure.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Jagan Teki <jagan@openedev.com>
arch/arm/mach-sunxi/clock_sun6i.c