All of lore.kernel.org
 help / color / mirror / Atom feed
From: Masahiro Yamada <yamada.m@jp.panasonic.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 12/15] keystone: kconfig: move board select menu and common settings
Date: Mon,  4 Aug 2014 22:19:25 +0900	[thread overview]
Message-ID: <1407158368-25481-13-git-send-email-yamada.m@jp.panasonic.com> (raw)
In-Reply-To: <1407158368-25481-1-git-send-email-yamada.m@jp.panasonic.com>

Becuase the board select menu in arch/arm/Kconfig is too big,
move the Keystone board select menu to keystone/Kconfig.

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

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Vitaly Andrianov <vitalya@ti.com>
Cc: Tom Rini <trini@ti.com>
---

 arch/arm/Kconfig                    | 10 ++++------
 arch/arm/cpu/armv7/keystone/Kconfig | 24 ++++++++++++++++++++++++
 board/ti/ks2_evm/Kconfig            | 16 ----------------
 configs/k2e_evm_defconfig           |  1 +
 configs/k2hk_evm_defconfig          |  1 +
 5 files changed, 30 insertions(+), 22 deletions(-)
 create mode 100644 arch/arm/cpu/armv7/keystone/Kconfig

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index fd8bc59..2e8cd2a 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -331,11 +331,8 @@ config ARCH_EXYNOS
 config TARGET_HIGHBANK
 	bool "Support highbank"
 
-config TARGET_K2E_EVM
-	bool "Support k2e_evm"
-
-config TARGET_K2HK_EVM
-	bool "Support k2hk_evm"
+config ARCH_KEYSTONE
+	bool "TI Keystone"
 
 config TARGET_M53EVK
 	bool "Support m53evk"
@@ -503,6 +500,8 @@ source "arch/arm/cpu/arm926ejs/davinci/Kconfig"
 
 source "arch/arm/cpu/armv7/exynos/Kconfig"
 
+source "arch/arm/cpu/armv7/keystone/Kconfig"
+
 source "arch/arm/cpu/arm926ejs/kirkwood/Kconfig"
 
 source "arch/arm/cpu/armv7/omap3/Kconfig"
@@ -640,7 +639,6 @@ source "board/syteco/zmx25/Kconfig"
 source "board/taskit/stamp9g20/Kconfig"
 source "board/ti/am335x/Kconfig"
 source "board/ti/am43xx/Kconfig"
-source "board/ti/ks2_evm/Kconfig"
 source "board/ti/ti814x/Kconfig"
 source "board/ti/ti816x/Kconfig"
 source "board/ti/tnetv107xevm/Kconfig"
diff --git a/arch/arm/cpu/armv7/keystone/Kconfig b/arch/arm/cpu/armv7/keystone/Kconfig
new file mode 100644
index 0000000..24d0cbe
--- /dev/null
+++ b/arch/arm/cpu/armv7/keystone/Kconfig
@@ -0,0 +1,24 @@
+if ARCH_KEYSTONE
+
+choice
+	prompt "TI Keystone board select"
+
+config TARGET_K2HK_EVM
+	bool "TI Keystone 2 Kepler/Hawking EVM"
+
+config TARGET_K2E_EVM
+	bool "TI Keystone 2 Edison EVM"
+
+endchoice
+
+config SYS_CPU
+	string
+	default "armv7"
+
+config SYS_SOC
+	string
+	default "keystone"
+
+source "board/ti/ks2_evm/Kconfig"
+
+endif
diff --git a/board/ti/ks2_evm/Kconfig b/board/ti/ks2_evm/Kconfig
index 7890b30..3108782 100644
--- a/board/ti/ks2_evm/Kconfig
+++ b/board/ti/ks2_evm/Kconfig
@@ -1,9 +1,5 @@
 if TARGET_K2E_EVM
 
-config SYS_CPU
-	string
-	default "armv7"
-
 config SYS_BOARD
 	string
 	default "ks2_evm"
@@ -12,10 +8,6 @@ config SYS_VENDOR
 	string
 	default "ti"
 
-config SYS_SOC
-	string
-	default "keystone"
-
 config SYS_CONFIG_NAME
 	string
 	default "k2e_evm"
@@ -24,10 +16,6 @@ endif
 
 if TARGET_K2HK_EVM
 
-config SYS_CPU
-	string
-	default "armv7"
-
 config SYS_BOARD
 	string
 	default "ks2_evm"
@@ -36,10 +24,6 @@ config SYS_VENDOR
 	string
 	default "ti"
 
-config SYS_SOC
-	string
-	default "keystone"
-
 config SYS_CONFIG_NAME
 	string
 	default "k2hk_evm"
diff --git a/configs/k2e_evm_defconfig b/configs/k2e_evm_defconfig
index c210ad5..be8d2ee 100644
--- a/configs/k2e_evm_defconfig
+++ b/configs/k2e_evm_defconfig
@@ -1,2 +1,3 @@
 CONFIG_ARM=y
+CONFIG_ARCH_KEYSTONE=y
 CONFIG_TARGET_K2E_EVM=y
diff --git a/configs/k2hk_evm_defconfig b/configs/k2hk_evm_defconfig
index caa763a..eee3335 100644
--- a/configs/k2hk_evm_defconfig
+++ b/configs/k2hk_evm_defconfig
@@ -1,2 +1,3 @@
 CONFIG_ARM=y
+CONFIG_ARCH_KEYSTONE=y
 CONFIG_TARGET_K2HK_EVM=y
-- 
1.9.1

  parent reply	other threads:[~2014-08-04 13:19 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-04 13:19 [U-Boot] [PATCH 0/15] arm: kconfig: move board select menus and other settings to SoC dir Masahiro Yamada
2014-08-04 13:19 ` [U-Boot] [PATCH 01/15] omap: remove omap5912osk board support Masahiro Yamada
2014-08-04 17:22   ` Tom Rini
2014-08-04 13:19 ` [U-Boot] [PATCH 02/15] zynq: kconfig: move board select menu and common settings Masahiro Yamada
2014-08-04 13:19 ` [U-Boot] [PATCH 03/15] tegra: " Masahiro Yamada
2014-08-04 18:12   ` Stephen Warren
2014-08-05  3:29     ` Masahiro Yamada
2014-08-04 13:19 ` [U-Boot] [PATCH 04/15] rmobile: " Masahiro Yamada
2014-08-04 13:19 ` [U-Boot] [PATCH 05/15] versatile: kconfig: move " Masahiro Yamada
2014-08-04 13:19 ` [U-Boot] [PATCH 06/15] kirkwood: kconfig: refactor Kconfig and defconfig Masahiro Yamada
2014-08-05  8:54   ` Luka Perkov
2014-08-05  9:08     ` Masahiro Yamada
2014-08-05 10:32       ` Luka Perkov
2014-08-04 13:19 ` [U-Boot] [PATCH 07/15] exynos: kconfig: move board select menu and common settings Masahiro Yamada
2014-08-04 13:19 ` [U-Boot] [PATCH 08/15] davinci: " Masahiro Yamada
2014-08-04 17:22   ` Tom Rini
2014-08-04 13:19 ` [U-Boot] [PATCH 09/15] omap3: " Masahiro Yamada
2014-08-04 17:22   ` Tom Rini
2014-08-04 13:19 ` [U-Boot] [PATCH 10/15] omap4: " Masahiro Yamada
2014-08-04 17:22   ` Tom Rini
2014-08-04 13:19 ` [U-Boot] [PATCH 11/15] omap5: " Masahiro Yamada
2014-08-04 17:22   ` Tom Rini
2014-08-04 13:19 ` Masahiro Yamada [this message]
2014-08-04 17:22   ` [U-Boot] [PATCH 12/15] keystone: " Tom Rini
2014-08-04 13:19 ` [U-Boot] [PATCH 13/15] orion5x: " Masahiro Yamada
2014-08-04 13:19 ` [U-Boot] [PATCH 14/15] highbank: kconfig: move " Masahiro Yamada
2014-08-04 13:19 ` [U-Boot] [PATCH 15/15] nomadik: kconfig: move board select menu and " Masahiro Yamada
2014-08-05  9:04 ` [U-Boot] [PATCH 0/15] arm: kconfig: move board select menus and other settings to SoC dir Michal Simek
2014-08-05 10:10   ` Masahiro Yamada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1407158368-25481-13-git-send-email-yamada.m@jp.panasonic.com \
    --to=yamada.m@jp.panasonic.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.