ARM: socfpga: move board select into mach-socfpga/Kconfig
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 21 Apr 2015 11:38:20 +0000 (20:38 +0900)
committerMarek Vasut <marex@denx.de>
Thu, 7 May 2015 03:21:08 +0000 (05:21 +0200)
Switch to a more standard way of board select; put the SoC select
into arch/arm/Kconfig and move the board select menu under
arch/arm/mach-socfpga/Kconfig.

Also, consolidate SYS_BOARD, SYS_VENDOR, SYS_SOC, SYS_CONFIG_NAME.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/Kconfig
arch/arm/mach-socfpga/Kconfig [new file with mode: 0644]
board/altera/socfpga/Kconfig [deleted file]
configs/socfpga_arria5_defconfig
configs/socfpga_cyclone5_defconfig
configs/socfpga_socrates_defconfig

index 49bcad1d138b1372e516137e2742a62bd2874007..cee31265abc17a8a8d0fc5ffcaf7d28ec2017fed 100644 (file)
@@ -619,16 +619,8 @@ config TARGET_CM_FX6
        select DM_SERIAL
        select DM_GPIO
 
-config TARGET_SOCFPGA_ARRIA5
-       bool "Support socfpga_arria5"
-       select CPU_V7
-       select SUPPORT_SPL
-       select DM
-       select DM_SPI_FLASH
-       select DM_SPI
-
-config TARGET_SOCFPGA_CYCLONE5
-       bool "Support socfpga_cyclone5"
+config ARCH_SOCFPGA
+       bool "Altera SOCFPGA family"
        select CPU_V7
        select SUPPORT_SPL
        select DM
@@ -841,6 +833,8 @@ source "arch/arm/cpu/armv7/rmobile/Kconfig"
 
 source "arch/arm/cpu/armv7/s5pc1xx/Kconfig"
 
+source "arch/arm/mach-socfpga/Kconfig"
+
 source "arch/arm/mach-tegra/Kconfig"
 
 source "arch/arm/mach-uniphier/Kconfig"
@@ -863,7 +857,6 @@ source "board/Marvell/aspenite/Kconfig"
 source "board/Marvell/db-88f6820-gp/Kconfig"
 source "board/Marvell/db-mv784mp-gp/Kconfig"
 source "board/Marvell/gplugd/Kconfig"
-source "board/altera/socfpga/Kconfig"
 source "board/armadeus/apf27/Kconfig"
 source "board/armltd/vexpress/Kconfig"
 source "board/armltd/vexpress64/Kconfig"
diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig
new file mode 100644 (file)
index 0000000..204efca
--- /dev/null
@@ -0,0 +1,27 @@
+if ARCH_SOCFPGA
+
+choice
+       prompt "Altera SOCFPGA board select"
+
+config TARGET_SOCFPGA_ARRIA5
+       bool "Altera SOCFPGA Arria V"
+
+config TARGET_SOCFPGA_CYCLONE5
+       bool "Altera SOCFPGA Cyclone V"
+
+endchoice
+
+config SYS_BOARD
+       default "socfpga"
+
+config SYS_VENDOR
+       default "altera"
+
+config SYS_SOC
+       default "socfpga"
+
+config SYS_CONFIG_NAME
+       default "socfpga_arria5" if TARGET_SOCFPGA_ARRIA5
+       default "socfpga_cyclone5" if TARGET_SOCFPGA_CYCLONE5
+
+endif
diff --git a/board/altera/socfpga/Kconfig b/board/altera/socfpga/Kconfig
deleted file mode 100644 (file)
index cbed8d6..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-if TARGET_SOCFPGA_CYCLONE5
-
-config SYS_BOARD
-       default "socfpga"
-
-config SYS_VENDOR
-       default "altera"
-
-config SYS_SOC
-       default "socfpga"
-
-config SYS_CONFIG_NAME
-       default "socfpga_cyclone5"
-
-endif
-
-if TARGET_SOCFPGA_ARRIA5
-
-config SYS_BOARD
-       default "socfpga"
-
-config SYS_VENDOR
-       default "altera"
-
-config SYS_SOC
-       default "socfpga"
-
-config SYS_CONFIG_NAME
-       default "socfpga_arria5"
-
-endif
index 52032e523eb7d445e683c57ee5f28d010ed64bb3..d658a503c90467457f88d6bfc39372af9b9302b1 100644 (file)
@@ -1,5 +1,6 @@
 CONFIG_SPL=y
 CONFIG_ARM=y
+CONFIG_ARCH_SOCFPGA=y
 CONFIG_TARGET_SOCFPGA_ARRIA5=y
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="socfpga_arria5_socdk"
index 6c982abb0331b5f9062013ff078122138c60750b..a67b0c150dc3088f27e84479771457b09fdbeddd 100644 (file)
@@ -1,5 +1,6 @@
 CONFIG_SPL=y
 CONFIG_ARM=y
+CONFIG_ARCH_SOCFPGA=y
 CONFIG_TARGET_SOCFPGA_CYCLONE5=y
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_socdk"
index c81ab0fa8d49478be17b3e95d53e31f142f602db..1aa3ee53aa136f819c5a51c0483ec699ebc2f67e 100644 (file)
@@ -1,5 +1,6 @@
 CONFIG_SPL=y
 CONFIG_ARM=y
+CONFIG_ARCH_SOCFPGA=y
 CONFIG_TARGET_SOCFPGA_CYCLONE5=y
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_socrates"