]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 7ef6b4c61a4678386049c27ad9a4725746d1ccbc..85fbc850c4d6cf0438b337b29d01de5a80fa06df 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