Skip to contentSkip to conversation

Follow-up patches for commit 2e07c249a67e (kconfig: arm: introduce symbol for ARM CPUs)

PATCH New Masahiro Yamada 2 participants 5 messages Nov 6, 2014 – Nov 13, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover Follow-up patches for commit 2e07c249a67e (kconfig: arm: introduce symbol for ARM CPUs)

Changes in v2:
- Rebase on commit 11ada9225a16ed2d8ddbf0715a2416245a777cbc
- Fix Kosagi Novena board

Masahiro Yamada (2):
kconfig: arm: select CPU_V7 for some new boards
kconfig: arm: move "armv8" define to arch/arm/Kconfig

 arch/arm/Kconfig                        | 6 ++++--
 arch/arm/cpu/armv7/tegra-common/Kconfig | 4 ----
 arch/arm/cpu/armv8/Kconfig              | 6 ------
 board/Marvell/db-mv784mp-gp/Kconfig     | 8 --------
 board/kosagi/novena/Kconfig             | 3 ---
 board/maxbcm/Kconfig                    | 7 -------
 board/ti/ks2_evm/Kconfig                | 3 ---
 7 files changed, 4 insertions(+), 33 deletions(-)
 delete mode 100644 arch/arm/cpu/armv8/Kconfig
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/2 kconfig: arm: select CPU_V7 for some new boards

This commit adds "select CPU_V7" for some new boards that were not covered by commit 2e07c249a67e
(kconfig: arm: introduce symbol for ARM CPUs).

Redundant "SYS_CPU" defines and "string" directives should be removed.

---

Changes in v2:
- Rebase on commit 11ada9225a16ed2d8ddbf0715a2416245a777cbc
- Fix Kosagi Novena board

 arch/arm/Kconfig                        | 3 +++
 arch/arm/cpu/armv7/tegra-common/Kconfig | 4 ----
 board/Marvell/db-mv784mp-gp/Kconfig     | 8 --------
 board/kosagi/novena/Kconfig             | 3 ---
 board/maxbcm/Kconfig                    | 7 -------
 board/ti/ks2_evm/Kconfig                | 3 ---
 6 files changed, 3 insertions(+), 25 deletions(-)
arch/arm/Kconfig +3 -0
index f9f52e5..d3b80ba 100644
@@ -225,9 +225,11 @@ config KIRKWOOD
 
 config TARGET_DB_MV784MP_GP
 	bool "Support db-mv784mp-gp"
+	select CPU_V7
 
 config TARGET_MAXBCM
 	bool "Support maxbcm"
+	select CPU_V7
 
 config TARGET_DEVKIT3250
 	bool "Support devkit3250"
@@ -629,6 +631,7 @@ config TARGET_HUMMINGBOARD
 
 config TARGET_KOSAGI_NOVENA
 	bool "Support Kosagi Novena"
+	select CPU_V7
 
 config TARGET_TQMA6
 	bool "TQ Systems TQMa6 board"
arch/arm/cpu/armv7/tegra-common/Kconfig +0 -4
index 3ea6d76..1446452 100644
@@ -20,10 +20,6 @@ endchoice
 config USE_PRIVATE_LIBGCC
 	default y if SPL_BUILD
 
-config SYS_CPU
-	default "arm720t" if SPL_BUILD
-	default "armv7" if !SPL_BUILD
-
 source "arch/arm/cpu/armv7/tegra20/Kconfig"
 source "arch/arm/cpu/armv7/tegra30/Kconfig"
 source "arch/arm/cpu/armv7/tegra114/Kconfig"
board/Marvell/db-mv784mp-gp/Kconfig +0 -8
index f94a444..98aa10a 100644
@@ -1,23 +1,15 @@
 if TARGET_DB_MV784MP_GP
 
-config SYS_CPU
-	string
-	default "armv7"
-
 config SYS_BOARD
-	string
 	default "db-mv784mp-gp"
 
 config SYS_VENDOR
-	string
 	default "Marvell"
 
 config SYS_SOC
-	string
 	default "armada-xp"
 
 config SYS_CONFIG_NAME
-	string
 	default "db-mv784mp-gp"
 
 endif
board/kosagi/novena/Kconfig +0 -3
index 4ba6399..94f1754 100644
@@ -1,8 +1,5 @@
 if TARGET_KOSAGI_NOVENA
 
-config SYS_CPU
-	default "armv7"
-
 config SYS_BOARD
 	default "novena"
 
board/maxbcm/Kconfig +0 -7
index d34e2ab..d833ca0 100644
@@ -1,19 +1,12 @@
 if TARGET_MAXBCM
 
-config SYS_CPU
-	string
-	default "armv7"
-
 config SYS_BOARD
-	string
 	default "maxbcm"
 
 config SYS_SOC
-	string
 	default "armada-xp"
 
 config SYS_CONFIG_NAME
-	string
 	default "maxbcm"
 
 endif
board/ti/ks2_evm/Kconfig +0 -3
index 96c5f22..384b175 100644
@@ -27,15 +27,12 @@ endif
 if TARGET_K2L_EVM
 
 config SYS_BOARD
-	string
 	default "ks2_evm"
 
 config SYS_VENDOR
-	string
 	default "ti"
 
 config SYS_CONFIG_NAME
-	string
 	default "k2l_evm"
 
 endif
Signature · 1 line
1.9.1
#2 lore raw

PATCH v2 1/2 kconfig: arm: select CPU_V7 for some new boards

Quoted 9 lines · Masahiro Yamada

This commit adds "select CPU_V7" for some new boards that were not covered by commit 2e07c249a67e
(kconfig: arm: introduce symbol for ARM CPUs).

Redundant "SYS_CPU" defines and "string" directives should be removed.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141113/7dcb3b11/attachment.pgp>
#3 lore raw

PATCH v2 2/2 kconfig: arm: move "armv8" define to arch/arm/Kconfig

In reply to Masahiro Yamada

Commit 2e07c249a67e (kconfig: arm: introduce symbol for ARM CPUs) collected the default values of CONFIG_SYS_CPU into arch/arm/Kconfig.

This commit moves "armv8" to there for consistency.

---

Changes in v2: None

 arch/arm/Kconfig           | 3 +--
 arch/arm/cpu/armv8/Kconfig | 6 ------
 2 files changed, 1 insertion(+), 8 deletions(-)
 delete mode 100644 arch/arm/cpu/armv8/Kconfig
arch/arm/Kconfig +1 -2
index d3b80ba..336f3f4 100644
@@ -49,6 +49,7 @@ config SYS_CPU
         default "armv7" if CPU_V7
         default "pxa" if CPU_PXA
         default "sa1100" if CPU_SA1100
+	default "armv8" if ARM64
 
 choice
 	prompt "Target select"
@@ -779,8 +780,6 @@ config ARCH_UNIPHIER
 
 endchoice
 
-source "arch/arm/cpu/armv8/Kconfig"
-
 source "arch/arm/cpu/arm926ejs/davinci/Kconfig"
 
 source "arch/arm/cpu/armv7/exynos/Kconfig"
arch/arm/cpu/armv8/Kconfig deleted +0 -6
deleted file mode 100644
index 3d1655b..0000000
@@ -1,6 +0,0 @@
-if ARM64
-
-config SYS_CPU
-	default "armv8"
-
-endif
Signature · 1 line
1.9.1
#4 lore raw

PATCH v2 2/2 kconfig: arm: move "armv8" define to arch/arm/Kconfig

Quoted 7 lines · Masahiro Yamada

Commit 2e07c249a67e (kconfig: arm: introduce symbol for ARM CPUs) collected the default values of CONFIG_SYS_CPU into arch/arm/Kconfig.

This commit moves "armv8" to there for consistency.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141113/9c077bfc/attachment.pgp>