summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv7/sunxi/Makefile
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-06-07 10:54:34 +0800
committerHans de Goede <hdegoede@redhat.com>2016-06-20 22:44:00 +0200
commit4257f5f8f631147803cdc6693b5046deb1a57be6 (patch)
treeb25c60fbc1921e2a47643e4008639ffb95767747 /arch/arm/cpu/armv7/sunxi/Makefile
parent3424c3f29970beaa3810acbc6ba3b8062a71ef09 (diff)
downloadblackbird-obmc-uboot-4257f5f8f631147803cdc6693b5046deb1a57be6.tar.gz
blackbird-obmc-uboot-4257f5f8f631147803cdc6693b5046deb1a57be6.zip
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>
Diffstat (limited to 'arch/arm/cpu/armv7/sunxi/Makefile')
-rw-r--r--arch/arm/cpu/armv7/sunxi/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/cpu/armv7/sunxi/Makefile b/arch/arm/cpu/armv7/sunxi/Makefile
index 4d2274a38e..c208510168 100644
--- a/arch/arm/cpu/armv7/sunxi/Makefile
+++ b/arch/arm/cpu/armv7/sunxi/Makefile
@@ -13,11 +13,8 @@ obj-$(CONFIG_MACH_SUN6I) += tzpc.o
obj-$(CONFIG_MACH_SUN8I_H3) += tzpc.o
ifndef CONFIG_SPL_BUILD
-ifdef CONFIG_ARMV7_PSCI
-obj-$(CONFIG_MACH_SUN6I) += psci_sun6i.o
-obj-$(CONFIG_MACH_SUN7I) += psci_sun7i.o
-obj-$(CONFIG_MACH_SUN8I) += psci_sun6i.o
-endif
+obj-$(CONFIG_ARMV7_PSCI) += psci.o
+obj-$(CONFIG_ARMV7_PSCI) += psci_head.o
endif
ifdef CONFIG_SPL_BUILD
OpenPOWER on IntegriCloud