sunxi: Add PSCI implementation in C
authorChen-Yu Tsai <wens@csie.org>
Tue, 7 Jun 2016 02:54:34 +0000 (10:54 +0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 20 Jun 2016 20:44:00 +0000 (22:44 +0200)
commit4257f5f8f631147803cdc6693b5046deb1a57be6
treeb25c60fbc1921e2a47643e4008639ffb95767747
parent3424c3f29970beaa3810acbc6ba3b8062a71ef09
sunxi: Add PSCI implementation in C

To make the PSCI backend more maintainable and easier to port to newer
SoCs, rewrite the current PSCI implementation in C.

Some inline assembly bits are required to access coprocessor registers.
PSCI stack setup is the only part left completely in assembly. In theory
this part could be split out of psci_arch_init into a separate common
function, and psci_arch_init could be completely in C.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/sunxi/Makefile
arch/arm/cpu/armv7/sunxi/psci.c [new file with mode: 0644]
arch/arm/cpu/armv7/sunxi/psci_head.S [new file with mode: 0644]
arch/arm/cpu/armv7/sunxi/psci_sun6i.S [deleted file]
arch/arm/cpu/armv7/sunxi/psci_sun7i.S [deleted file]