allwinner: Add functions to control CPU power/reset
sun50i_cpu_on will be used by the PSCI implementation to initialize
secondary cores for SMP. Unfortunately, sun50i_cpu_off is not usable by
PSCI directly, because it is not possible for a CPU to use this function
to power itself down. Power cannot be shut off until the outputs are
clamped, and MMIO does not work once the outputs are clamped.

But at least CPU0 can shutdown the other cores early in the BL31 boot
process and before shutting down the system.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
1 parent 64b3d9d commit 333d66cf4e35f37f38135d15ef96ca2886b6f676
@Samuel Holland Samuel Holland authored on 12 Aug 2017
Andre Przywara committed on 15 Jun 2018
Showing 6 changed files
View
plat/allwinner/common/sunxi_bl31_setup.c
View
plat/allwinner/common/sunxi_cpu_ops.c 0 → 100644
View
plat/allwinner/common/sunxi_pm.c
View
plat/allwinner/common/sunxi_private.h
View
plat/allwinner/sun50i_a64/include/sunxi_cpucfg.h 0 → 100644
View
plat/allwinner/sun50i_a64/platform.mk