ARM: integrator: split board select into AP/CP select and CM select
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 21 Apr 2015 12:59:37 +0000 (21:59 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 23 Apr 2015 12:52:27 +0000 (08:52 -0400)
Select integrator boards by the combination of platform select (AP/CP)
and core module select (CM720T, CM920T, ...).

This allows us to remove CONFIG_SYS_EXTRA_OPTIONS and make Kconfig
much cleaner.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-integrator/Kconfig
configs/integratorap_cm720t_defconfig
configs/integratorap_cm920t_defconfig
configs/integratorap_cm926ejs_defconfig
configs/integratorap_cm946es_defconfig
configs/integratorcp_cm1136_defconfig
configs/integratorcp_cm920t_defconfig
configs/integratorcp_cm926ejs_defconfig
configs/integratorcp_cm946es_defconfig

index 440639998927e38592afac88ceec3c9055b9a001..6794660dac28011ca894f33b22e3a15416e4bd8d 100644 (file)
@@ -2,40 +2,39 @@ menu "Integrator Options"
        depends on ARCH_INTEGRATOR
 
 choice
-       prompt "ARM Ltd. Integrator board select"
+       prompt "Integrator platform select"
 
-config TARGET_INTEGRATORAP_CM720T
-       bool "Support integratorap_cm720t"
-       select CPU_ARM720T
+config ARCH_INTEGRATOR_AP
+       bool "Support Integrator/AP platform"
 
-config TARGET_INTEGRATORAP_CM920T
-       bool "Support integratorap_cm920t"
-       select CPU_ARM920T
+config ARCH_INTEGRATOR_CP
+       bool "Support Integrator/CP platform"
 
-config TARGET_INTEGRATORCP_CM920T
-       bool "Support integratorcp_cm920t"
-       select CPU_ARM920T
+endchoice
 
-config TARGET_INTEGRATORAP_CM926EJS
-       bool "Support integratorap_cm926ejs"
-       select CPU_ARM926EJS
+choice
+       prompt "Integrator core module select"
 
-config TARGET_INTEGRATORCP_CM926EJS
-       bool "Support integratorcp_cm926ejs"
-       select CPU_ARM926EJS
+config CM720T
+       bool "Core Module for ARM720T"
+       select CPU_ARM720T
 
-config TARGET_INTEGRATORCP_CM1136
-       bool "Support integratorcp_cm1136"
-       select CPU_ARM1136
+config CM920T
+       bool "Core Module for ARM920T"
+       select CPU_ARM920T
 
-config TARGET_INTEGRATORAP_CM946ES
-       bool "Support integratorap_cm946es"
-       select CPU_ARM946ES
+config CM926EJ_S
+       bool "Core Module for ARM926EJ-STM"
+       select CPU_ARM926EJS
 
-config TARGET_INTEGRATORCP_CM946ES
-       bool "Support integratorcp_cm946es"
+config CM946ES
+       bool "Core Module for ARM946E-STM"
        select CPU_ARM946ES
 
+config CM1136
+       bool "Core Module for ARM1136JF-STM"
+       select CPU_ARM1136
+
 endchoice
 
 config SYS_BOARD
@@ -45,13 +44,7 @@ config SYS_VENDOR
        default "armltd"
 
 config SYS_CONFIG_NAME
-       default "integratorap" if TARGET_INTEGRATORAP_CM720T || \
-                                 TARGET_INTEGRATORAP_CM920T || \
-                                 TARGET_INTEGRATORAP_CM926EJS || \
-                                 TARGET_INTEGRATORAP_CM946ES
-       default "integratorcp" if TARGET_INTEGRATORCP_CM920T || \
-                                 TARGET_INTEGRATORCP_CM926EJS || \
-                                 TARGET_INTEGRATORCP_CM946ES || \
-                                 TARGET_INTEGRATORCP_CM1136
+       default "integratorap" if ARCH_INTEGRATOR_AP
+       default "integratorcp" if ARCH_INTEGRATOR_CP
 
 endmenu
index 5c15d570faf5d3cfafb3ce04be3487efeef0c75d..fc0dc6746b42a99358c810c7cbc259c7ff153edf 100644 (file)
@@ -1,4 +1,4 @@
-CONFIG_SYS_EXTRA_OPTIONS="CM720T"
 CONFIG_ARM=y
 CONFIG_ARCH_INTEGRATOR=y
-CONFIG_TARGET_INTEGRATORAP_CM720T=y
+CONFIG_ARCH_INTEGRATOR_AP=y
+CONFIG_CM720T=y
index d2a9a71ea287f9b45ac5b48328d67b0807943a59..eb6afb9f79bda61504fcb413e5fd1fc8e48fd5e7 100644 (file)
@@ -1,4 +1,4 @@
-CONFIG_SYS_EXTRA_OPTIONS="CM920T"
 CONFIG_ARM=y
 CONFIG_ARCH_INTEGRATOR=y
-CONFIG_TARGET_INTEGRATORAP_CM920T=y
+CONFIG_ARCH_INTEGRATOR_AP=y
+CONFIG_CM920T=y
index af4cfa5b831a6604fbe851aa5eba9d14d4935169..8667fcb10ad20b1e196a7c35928d8d1bf85a8962 100644 (file)
@@ -1,4 +1,4 @@
-CONFIG_SYS_EXTRA_OPTIONS="CM926EJ_S"
 CONFIG_ARM=y
 CONFIG_ARCH_INTEGRATOR=y
-CONFIG_TARGET_INTEGRATORAP_CM926EJS=y
+CONFIG_ARCH_INTEGRATOR_AP=y
+CONFIG_CM926EJ_S=y
index ee0720631e2aa2cce2c7828c28b5143dfe6e1e94..1e8c15796da6abf567778d69e17079fd0c3f3d5d 100644 (file)
@@ -1,4 +1,4 @@
-CONFIG_SYS_EXTRA_OPTIONS="CM946ES"
 CONFIG_ARM=y
 CONFIG_ARCH_INTEGRATOR=y
-CONFIG_TARGET_INTEGRATORAP_CM946ES=y
+CONFIG_ARCH_INTEGRATOR_AP=y
+CONFIG_CM946ES=y
index 5deedc8c025648d442e51bb038c14316d0653745..f039470c5c8c9beea86b63d032b7929952548c4c 100644 (file)
@@ -1,4 +1,4 @@
-CONFIG_SYS_EXTRA_OPTIONS="CM1136"
 CONFIG_ARM=y
 CONFIG_ARCH_INTEGRATOR=y
-CONFIG_TARGET_INTEGRATORCP_CM1136=y
+CONFIG_ARCH_INTEGRATOR_CP=y
+CONFIG_CM1136=y
index 5ed8539e4bca09a576d7085ad7111bf104ae6925..cb364a11c128c48a1c5d939253873aadcf647079 100644 (file)
@@ -1,4 +1,4 @@
-CONFIG_SYS_EXTRA_OPTIONS="CM920T"
 CONFIG_ARM=y
 CONFIG_ARCH_INTEGRATOR=y
-CONFIG_TARGET_INTEGRATORCP_CM920T=y
+CONFIG_ARCH_INTEGRATOR_CP=y
+CONFIG_CM920T=y
index 4840ec4f97a4cf990ac380f147d1145d11f52ca5..32ea7b97e7a7a7956e935920d7ca5d32a746b115 100644 (file)
@@ -1,4 +1,4 @@
-CONFIG_SYS_EXTRA_OPTIONS="CM924EJ_S"
 CONFIG_ARM=y
 CONFIG_ARCH_INTEGRATOR=y
-CONFIG_TARGET_INTEGRATORCP_CM926EJS=y
+CONFIG_ARCH_INTEGRATOR_CP=y
+CONFIG_CM926EJ_S=y
index dcd034d245189623b83618078c7d901790ecb099..e7fc706615aee1626f067d206b2be9ced1fb257d 100644 (file)
@@ -1,4 +1,4 @@
-CONFIG_SYS_EXTRA_OPTIONS="CM946ES"
 CONFIG_ARM=y
 CONFIG_ARCH_INTEGRATOR=y
-CONFIG_TARGET_INTEGRATORCP_CM946ES=y
+CONFIG_ARCH_INTEGRATOR_CP=y
+CONFIG_CM946ES=y