]> git.sur5r.net Git - u-boot/commitdiff
omap4: kconfig: move board select menu and common settings
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Sat, 30 Aug 2014 22:11:03 +0000 (07:11 +0900)
committerTom Rini <trini@ti.com>
Sun, 31 Aug 2014 01:21:59 +0000 (21:21 -0400)
Becuase the board select menu in arch/arm/Kconfig is too big,
move the OMAP4 board select menu to omap4/Kconfig.

Move also common settings (CONFIG_SYS_CPU="armv7" and
CONFIG_SYS_SOC="omap4").

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Reviewed-by: Tom Rini <trini@ti.com>
Cc: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/Kconfig
arch/arm/cpu/armv7/omap4/Kconfig [new file with mode: 0644]
board/gumstix/duovero/Kconfig
board/ti/panda/Kconfig
board/ti/sdp4430/Kconfig
configs/duovero_defconfig
configs/omap4_panda_defconfig
configs/omap4_sdp4430_defconfig
include/configs/ti_omap4_common.h

index 3f38b0422689887dd7378fcdacc2ecd70c6fc798..639b8ccaa5f1117ae410cbb27ca77959dc4b2301 100644 (file)
@@ -415,14 +415,8 @@ config TARGET_HUMMINGBOARD
 config OMAP34XX
        bool "OMAP34XX SoC"
 
-config TARGET_DUOVERO
-       bool "Support duovero"
-
-config TARGET_OMAP4_PANDA
-       bool "Support omap4_panda"
-
-config TARGET_OMAP4_SDP4430
-       bool "Support omap4_sdp4430"
+config OMAP44XX
+       bool "OMAP44XX SoC"
 
 config TARGET_CM_T54
        bool "Support cm_t54"
@@ -531,6 +525,8 @@ source "arch/arm/cpu/arm926ejs/kirkwood/Kconfig"
 
 source "arch/arm/cpu/armv7/omap3/Kconfig"
 
+source "arch/arm/cpu/armv7/omap4/Kconfig"
+
 source "arch/arm/cpu/armv7/rmobile/Kconfig"
 
 source "arch/arm/cpu/armv7/tegra-common/Kconfig"
@@ -615,7 +611,6 @@ source "board/freescale/mx6sxsabresd/Kconfig"
 source "board/freescale/vf610twr/Kconfig"
 source "board/gateworks/gw_ventana/Kconfig"
 source "board/genesi/mx51_efikamx/Kconfig"
-source "board/gumstix/duovero/Kconfig"
 source "board/gumstix/pepper/Kconfig"
 source "board/h2200/Kconfig"
 source "board/hale/tt01/Kconfig"
@@ -669,8 +664,6 @@ source "board/ti/am43xx/Kconfig"
 source "board/ti/dra7xx/Kconfig"
 source "board/ti/ks2_evm/Kconfig"
 source "board/ti/omap5_uevm/Kconfig"
-source "board/ti/panda/Kconfig"
-source "board/ti/sdp4430/Kconfig"
 source "board/ti/ti814x/Kconfig"
 source "board/ti/ti816x/Kconfig"
 source "board/ti/tnetv107xevm/Kconfig"
diff --git a/arch/arm/cpu/armv7/omap4/Kconfig b/arch/arm/cpu/armv7/omap4/Kconfig
new file mode 100644 (file)
index 0000000..20d2c11
--- /dev/null
@@ -0,0 +1,29 @@
+if OMAP44XX
+
+choice
+       prompt "OMAP4 board select"
+
+config TARGET_DUOVERO
+       bool "OMAP4430 Gumstix Duovero"
+
+config TARGET_OMAP4_PANDA
+       bool "TI OMAP4 PandaBoard"
+
+config TARGET_OMAP4_SDP4430
+       bool "TI OMAP4 SDP4430"
+
+endchoice
+
+config SYS_CPU
+       string
+       default "armv7"
+
+config SYS_SOC
+       string
+       default "omap4"
+
+source "board/gumstix/duovero/Kconfig"
+source "board/ti/panda/Kconfig"
+source "board/ti/sdp4430/Kconfig"
+
+endif
index d1b5c660b8bfd3fe17e19451bcc0cbab457d4957..f662798fbf49e0ce913cc6f3b7c00b879d4c022a 100644 (file)
@@ -1,9 +1,5 @@
 if TARGET_DUOVERO
 
-config SYS_CPU
-       string
-       default "armv7"
-
 config SYS_BOARD
        string
        default "duovero"
@@ -12,10 +8,6 @@ config SYS_VENDOR
        string
        default "gumstix"
 
-config SYS_SOC
-       string
-       default "omap4"
-
 config SYS_CONFIG_NAME
        string
        default "duovero"
index be1307d76a770562f2690e0fdcf71cfc60bb8e20..b69218b6c3bc0801d85e5744dbfb1b2b486d554f 100644 (file)
@@ -1,9 +1,5 @@
 if TARGET_OMAP4_PANDA
 
-config SYS_CPU
-       string
-       default "armv7"
-
 config SYS_BOARD
        string
        default "panda"
@@ -12,10 +8,6 @@ config SYS_VENDOR
        string
        default "ti"
 
-config SYS_SOC
-       string
-       default "omap4"
-
 config SYS_CONFIG_NAME
        string
        default "omap4_panda"
index 140e1f16eaef71e77bfa704cc944000b225976ef..9c1d8fe35aac97e8cdb2ced370e0452987fda3e8 100644 (file)
@@ -1,9 +1,5 @@
 if TARGET_OMAP4_SDP4430
 
-config SYS_CPU
-       string
-       default "armv7"
-
 config SYS_BOARD
        string
        default "sdp4430"
@@ -12,10 +8,6 @@ config SYS_VENDOR
        string
        default "ti"
 
-config SYS_SOC
-       string
-       default "omap4"
-
 config SYS_CONFIG_NAME
        string
        default "omap4_sdp4430"
index b56092a344239a14cea664df82fdc67b43d69186..85918458e4c5d2fde811bc09ecd36d032b778f76 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_SPL=y
 +S:CONFIG_ARM=y
++S:CONFIG_OMAP44XX=y
 +S:CONFIG_TARGET_DUOVERO=y
index 1498d176281a98ea0db4e02576d8d219e73b73ac..6afac386c2c25c3410c0220e1e61464089f43cec 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_SPL=y
 +S:CONFIG_ARM=y
++S:CONFIG_OMAP44XX=y
 +S:CONFIG_TARGET_OMAP4_PANDA=y
index faac317fc75269f2255d238925f44c25386e879c..c771e760264c915069e6edccb25e0ae109894837 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_SPL=y
 +S:CONFIG_ARM=y
++S:CONFIG_OMAP44XX=y
 +S:CONFIG_TARGET_OMAP4_SDP4430=y
index 30b02f6b0351513c257d77c4f6ccfeea05c46e4f..8c7310c9a1dc13e25b29cb7e2eef1ec050fb5736 100644 (file)
@@ -15,7 +15,6 @@
 /*
  * High Level Configuration Options
  */
-#define CONFIG_OMAP44XX                1       /* which is a 44XX */
 #define CONFIG_OMAP4430                1       /* which is in a 4430 */
 #define CONFIG_MISC_INIT_R
 #define CONFIG_ARCH_CPU_INIT