ARM: sunxi: Make PSCI code sun7i specific
authorChen-Yu Tsai <wens@csie.org>
Thu, 28 May 2015 13:25:30 +0000 (21:25 +0800)
committerHans de Goede <hdegoede@redhat.com>
Fri, 29 May 2015 11:46:36 +0000 (13:46 +0200)
The PSCI code only works for sun7i. Rename it with _sun7i suffix,
and build only if building for sun7i.

This paves the way for adding PSCI support for other platforms.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/sunxi/Makefile
arch/arm/cpu/armv7/sunxi/psci_sun7i.S [moved from arch/arm/cpu/armv7/sunxi/psci.S with 100% similarity]

index 7ef6b4c..85fbc85 100644 (file)
@@ -35,7 +35,7 @@ obj-$(CONFIG_AXP221_POWER)    += pmic_bus.o
 
 ifndef CONFIG_SPL_BUILD
 ifdef CONFIG_ARMV7_PSCI
-obj-y  += psci.o
+obj-$(CONFIG_MACH_SUN7I)       += psci_sun7i.o
 endif
 endif