Skip to contentSkip to conversation

ARM: integrator: Kconfig Clean up

PATCH New Masahiro Yamada 3 participants 12 messages Apr 21, 2015 – Apr 23, 2015

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

v2 cover ARM: integrator: Kconfig Clean up

Masahiro Yamada (5):
ARM: ARM720t: remove empty asm/arch/hardware.h
ARM: integrator: move board select into mach-integrator/Kconfig
ARM: integrator: split board select into AP/CP select and CM select
ARM: integrator: abolish CONFIG_INTEGRATOR
ARM: integrator: move CONFIG_ARCH_CINTEGRATOR to Kconfig

 arch/arm/Kconfig                              |  38 ++--------
 arch/arm/cpu/arm720t/start.S                  |   1 -
 arch/arm/cpu/arm946es/cpu.c                   |   4 +-
 arch/arm/include/asm/arch-arm720t/hardware.h  |  17 -----
 arch/arm/include/asm/arch-tegra114/hardware.h |  22 ------
 arch/arm/include/asm/arch-tegra124/hardware.h |  16 ----
 arch/arm/include/asm/arch-tegra20/hardware.h  |  13 ----
 arch/arm/include/asm/arch-tegra30/hardware.h  |  22 ------
 arch/arm/mach-integrator/Kconfig              |  54 ++++++++++++++
 board/armltd/integrator/Kconfig               | 103 --------------------------
 configs/integratorap_cm720t_defconfig         |   5 +-
 configs/integratorap_cm920t_defconfig         |   5 +-
 configs/integratorap_cm926ejs_defconfig       |   5 +-
 configs/integratorap_cm946es_defconfig        |   5 +-
 configs/integratorcp_cm1136_defconfig         |   5 +-
 configs/integratorcp_cm920t_defconfig         |   5 +-
 configs/integratorcp_cm926ejs_defconfig       |   5 +-
 configs/integratorcp_cm946es_defconfig        |   5 +-
 include/configs/integrator-common.h           |   2 -
 include/configs/integratorap.h                |   1 -
 include/configs/integratorcp.h                |   1 -
 21 files changed, 85 insertions(+), 249 deletions(-)
 delete mode 100644 arch/arm/include/asm/arch-arm720t/hardware.h
 delete mode 100644 arch/arm/include/asm/arch-tegra114/hardware.h
 delete mode 100644 arch/arm/include/asm/arch-tegra124/hardware.h
 delete mode 100644 arch/arm/include/asm/arch-tegra20/hardware.h
 delete mode 100644 arch/arm/include/asm/arch-tegra30/hardware.h
 create mode 100644 arch/arm/mach-integrator/Kconfig
 delete mode 100644 board/armltd/integrator/Kconfig
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/5 ARM: ARM720t: remove empty asm/arch/hardware.h

arch/arm/cpu/arm720t/start.S includes <asm/arch/hardware.h>, but the hardware.h headers of ARM720T boards are all empty.

Cc Linus Walleij <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Tom Warren <[email protected]>

---

Changes in v2: None

 arch/arm/cpu/arm720t/start.S                  |  1 -
 arch/arm/include/asm/arch-arm720t/hardware.h  | 17 -----------------
 arch/arm/include/asm/arch-tegra114/hardware.h | 22 ----------------------
 arch/arm/include/asm/arch-tegra124/hardware.h | 16 ----------------
 arch/arm/include/asm/arch-tegra20/hardware.h  | 13 -------------
 arch/arm/include/asm/arch-tegra30/hardware.h  | 22 ----------------------
 6 files changed, 91 deletions(-)
 delete mode 100644 arch/arm/include/asm/arch-arm720t/hardware.h
 delete mode 100644 arch/arm/include/asm/arch-tegra114/hardware.h
 delete mode 100644 arch/arm/include/asm/arch-tegra124/hardware.h
 delete mode 100644 arch/arm/include/asm/arch-tegra20/hardware.h
 delete mode 100644 arch/arm/include/asm/arch-tegra30/hardware.h
arch/arm/cpu/arm720t/start.S +0 -1
index ec8e88d..0bb3441 100644
@@ -9,7 +9,6 @@
 
 #include <asm-offsets.h>
 #include <config.h>
-#include <asm/hardware.h>
 
 /*
  *************************************************************************
arch/arm/include/asm/arch-arm720t/hardware.h deleted +0 -17
deleted file mode 100644
index 8ca42d9..0000000
@@ -1,17 +0,0 @@
-#ifndef __ARM7_HW_H
-#define __ARM7_HW_H
-
-/*
- * Copyright (c) 2004	Cucy Systems (http://www.cucy.com)
- * Curt Brune <[email protected]>
- *
- * SPDX-License-Identifier:	GPL-2.0+
- */
-
-#if defined(CONFIG_INTEGRATOR) && defined(CONFIG_ARCH_INTEGRATOR)
-/* include IntegratorCP/CM720T specific hardware file if there was one */
-#else
-#error No hardware file defined for this configuration
-#endif
-
-#endif /* __ARM7_HW_H */
arch/arm/include/asm/arch-tegra114/hardware.h deleted +0 -22
deleted file mode 100644
index c21fbb6..0000000
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2010-2013, NVIDIA CORPORATION.  All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef _TEGRA114_HARDWARE_H_
-#define _TEGRA114_HARDWARE_H_
-
-/* include tegra specific hardware definitions */
-
-#endif /* _TEGRA114_HARDWARE_H_ */
arch/arm/include/asm/arch-tegra124/hardware.h deleted +0 -16
deleted file mode 100644
index 114fce8..0000000
@@ -1,16 +0,0 @@
-/*
- * (C) Copyright 2013
- * NVIDIA Corporation <www.nvidia.com>
- *
- * SPDX-License-Identifier:     GPL-2.0+
- */
-
-#ifndef _TEGRA124_HARDWARE_H_
-#define _TEGRA124_HARDWARE_H_
-
-/*
- * Include Tegra-specific hardware definitions
- * Nothing needed currently for Tegra124
- */
-
-#endif /* _TEGRA124_HARDWARE_H_ */
arch/arm/include/asm/arch-tegra20/hardware.h deleted +0 -13
deleted file mode 100644
index a295894..0000000
@@ -1,13 +0,0 @@
-/*
-* (C) Copyright 2010-2011
-* NVIDIA Corporation <www.nvidia.com>
-*
- * SPDX-License-Identifier:	GPL-2.0+
-*/
-
-#ifndef __TEGRA2_HW_H
-#define __TEGRA2_HW_H
-
-/* include tegra specific hardware definitions */
-
-#endif /* __TEGRA2_HW_H */
arch/arm/include/asm/arch-tegra30/hardware.h deleted +0 -22
deleted file mode 100644
index b1a5aa9..0000000
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2010-2012, NVIDIA CORPORATION.  All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef _TEGRA30_HARDWARE_H_
-#define _TEGRA30_HARDWARE_H_
-
-/* include tegra specific hardware definitions */
-
-#endif /* _TEGRA30-HARDWARE_H_ */
Signature · 1 line
1.9.1
#2 lore raw

PATCH v2 1/5 ARM: ARM720t: remove empty asm/arch/hardware.h

Quoted 7 lines · Masahiro Yamada

arch/arm/cpu/arm720t/start.S includes <asm/arch/hardware.h>, but the hardware.h headers of ARM720T boards are all empty.

Cc Linus Walleij <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Tom Warren <[email protected]>

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/20150423/f8b148b8/attachment.sig>
#3 lore raw

PATCH v2 2/5 ARM: integrator: move board select into mach-integrator/Kconfig

In reply to Masahiro Yamada

The board/SoC select menu in arch/arm/Kconfig is still cluttered. Add ARCH_INTEGRATOR into arch/arm/Kconfig and move the board select under arch/arm/mach-integrator.

---

Changes in v2: None

 arch/arm/Kconfig                        |  38 ++----------
 arch/arm/mach-integrator/Kconfig        |  57 ++++++++++++++++++
 board/armltd/integrator/Kconfig         | 103 --------------------------------
 configs/integratorap_cm720t_defconfig   |   1 +
 configs/integratorap_cm920t_defconfig   |   1 +
 configs/integratorap_cm926ejs_defconfig |   1 +
 configs/integratorap_cm946es_defconfig  |   1 +
 configs/integratorcp_cm1136_defconfig   |   1 +
 configs/integratorcp_cm920t_defconfig   |   1 +
 configs/integratorcp_cm926ejs_defconfig |   1 +
 configs/integratorcp_cm946es_defconfig  |   1 +
 include/configs/integratorap.h          |   1 -
 12 files changed, 70 insertions(+), 137 deletions(-)
 create mode 100644 arch/arm/mach-integrator/Kconfig
 delete mode 100644 board/armltd/integrator/Kconfig
arch/arm/Kconfig +5 -33
index ac7a11b..8046d3e 100644
@@ -61,18 +61,6 @@ config SEMIHOSTING
 choice
 	prompt "Target select"
 
-config TARGET_INTEGRATORAP_CM720T
-	bool "Support integratorap_cm720t"
-	select CPU_ARM720T
-
-config TARGET_INTEGRATORAP_CM920T
-	bool "Support integratorap_cm920t"
-	select CPU_ARM920T
-
-config TARGET_INTEGRATORCP_CM920T
-	bool "Support integratorcp_cm920t"
-	select CPU_ARM920T
-
 config ARCH_AT91
 	bool "Atmel AT91"
 
@@ -92,14 +80,6 @@ config TARGET_SMDK2410
 	bool "Support smdk2410"
 	select CPU_ARM920T
 
-config TARGET_INTEGRATORAP_CM926EJS
-	bool "Support integratorap_cm926ejs"
-	select CPU_ARM926EJS
-
-config TARGET_INTEGRATORCP_CM926EJS
-	bool "Support integratorcp_cm926ejs"
-	select CPU_ARM926EJS
-
 config TARGET_ASPENITE
 	bool "Support aspenite"
 	select CPU_ARM926EJS
@@ -247,10 +227,6 @@ config ARCH_VERSATILE
 	bool "ARM Ltd. Versatile family"
 	select CPU_ARM926EJS
 
-config TARGET_INTEGRATORCP_CM1136
-	bool "Support integratorcp_cm1136"
-	select CPU_ARM1136
-
 config TARGET_IMX31_PHYCORE
 	bool "Support imx31_phycore"
 	select CPU_ARM1136
@@ -299,14 +275,6 @@ config ARCH_BCM283X
 	select DM_SERIAL
 	select DM_GPIO
 
-config TARGET_INTEGRATORAP_CM946ES
-	bool "Support integratorap_cm946es"
-	select CPU_ARM946ES
-
-config TARGET_INTEGRATORCP_CM946ES
-	bool "Support integratorcp_cm946es"
-	select CPU_ARM946ES
-
 config TARGET_VEXPRESS_CA15_TC2
 	bool "Support vexpress_ca15_tc2"
 	select CPU_V7
@@ -461,6 +429,9 @@ config ARCH_HIGHBANK
 	bool "Calxeda Highbank"
 	select CPU_V7
 
+config ARCH_INTEGRATOR
+	bool "ARM Ltd. Integrator family"
+
 config ARCH_KEYSTONE
 	bool "TI Keystone"
 	select CPU_V7
@@ -789,6 +760,8 @@ source "arch/arm/cpu/armv7/exynos/Kconfig"
 
 source "arch/arm/mach-highbank/Kconfig"
 
+source "arch/arm/mach-integrator/Kconfig"
+
 source "arch/arm/mach-keystone/Kconfig"
 
 source "arch/arm/mach-kirkwood/Kconfig"
@@ -835,7 +808,6 @@ source "board/Marvell/aspenite/Kconfig"
 source "board/Marvell/db-mv784mp-gp/Kconfig"
 source "board/Marvell/gplugd/Kconfig"
 source "board/armadeus/apf27/Kconfig"
-source "board/armltd/integrator/Kconfig"
 source "board/armltd/vexpress/Kconfig"
 source "board/armltd/vexpress64/Kconfig"
 source "board/bachmann/ot1200/Kconfig"
arch/arm/mach-integrator/Kconfig new file +57 -0

57 lines not on this page · raw message

board/armltd/integrator/Kconfig deleted +0 -103

103 lines not on this page · raw message

configs/integratorap_cm720t_defconfig +1 -0
index 0bb7b08..5c15d57 100644
@@ -1,3 +1,4 @@
 CONFIG_SYS_EXTRA_OPTIONS="CM720T"
 CONFIG_ARM=y
+CONFIG_ARCH_INTEGRATOR=y
 CONFIG_TARGET_INTEGRATORAP_CM720T=y
configs/integratorap_cm920t_defconfig +1 -0
index fb925d5..d2a9a71 100644
@@ -1,3 +1,4 @@
 CONFIG_SYS_EXTRA_OPTIONS="CM920T"
 CONFIG_ARM=y
+CONFIG_ARCH_INTEGRATOR=y
 CONFIG_TARGET_INTEGRATORAP_CM920T=y
configs/integratorap_cm926ejs_defconfig +1 -0
index 308a1e6..af4cfa5 100644
@@ -1,3 +1,4 @@
 CONFIG_SYS_EXTRA_OPTIONS="CM926EJ_S"
 CONFIG_ARM=y
+CONFIG_ARCH_INTEGRATOR=y
 CONFIG_TARGET_INTEGRATORAP_CM926EJS=y
configs/integratorap_cm946es_defconfig +1 -0
index d1b9db5..ee07206 100644
@@ -1,3 +1,4 @@
 CONFIG_SYS_EXTRA_OPTIONS="CM946ES"
 CONFIG_ARM=y
+CONFIG_ARCH_INTEGRATOR=y
 CONFIG_TARGET_INTEGRATORAP_CM946ES=y
configs/integratorcp_cm1136_defconfig +1 -0
index 3feb656..5deedc8 100644
@@ -1,3 +1,4 @@
 CONFIG_SYS_EXTRA_OPTIONS="CM1136"
 CONFIG_ARM=y
+CONFIG_ARCH_INTEGRATOR=y
 CONFIG_TARGET_INTEGRATORCP_CM1136=y
configs/integratorcp_cm920t_defconfig +1 -0
index f304bbe..5ed8539 100644
@@ -1,3 +1,4 @@
 CONFIG_SYS_EXTRA_OPTIONS="CM920T"
 CONFIG_ARM=y
+CONFIG_ARCH_INTEGRATOR=y
 CONFIG_TARGET_INTEGRATORCP_CM920T=y
configs/integratorcp_cm926ejs_defconfig +1 -0
index a8d762b..4840ec4 100644
@@ -1,3 +1,4 @@
 CONFIG_SYS_EXTRA_OPTIONS="CM924EJ_S"
 CONFIG_ARM=y
+CONFIG_ARCH_INTEGRATOR=y
 CONFIG_TARGET_INTEGRATORCP_CM926EJS=y
configs/integratorcp_cm946es_defconfig +1 -0
index 2e67dbc..dcd034d 100644
@@ -1,3 +1,4 @@
 CONFIG_SYS_EXTRA_OPTIONS="CM946ES"
 CONFIG_ARM=y
+CONFIG_ARCH_INTEGRATOR=y
 CONFIG_TARGET_INTEGRATORCP_CM946ES=y
include/configs/integratorap.h +0 -1
index e168c8c..8439db7 100644
@@ -18,7 +18,6 @@
 #include "integrator-common.h"
 
 /* Integrator/AP-specific configuration */
-#define CONFIG_ARCH_INTEGRATOR
 #define CONFIG_SYS_HZ_CLOCK		24000000	/* Timer 1 is clocked at 24Mhz */
 
 /*
Signature · 1 line
1.9.1
#4 lore raw

PATCH v2 2/5 ARM: integrator: move board select into mach-integrator/Kconfig

Quoted 6 lines · Masahiro Yamada

The board/SoC select menu in arch/arm/Kconfig is still cluttered. Add ARCH_INTEGRATOR into arch/arm/Kconfig and move the board select under arch/arm/mach-integrator.

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/20150423/70c8926a/attachment.sig>
#5 lore raw

PATCH v2 3/5 ARM: integrator: split board select into AP/CP select and CM select

In reply to Masahiro Yamada

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.

---

Changes in v2: None

 arch/arm/mach-integrator/Kconfig        | 57 +++++++++++++++------------------
 configs/integratorap_cm720t_defconfig   |  4 +--
 configs/integratorap_cm920t_defconfig   |  4 +--
 configs/integratorap_cm926ejs_defconfig |  4 +--
 configs/integratorap_cm946es_defconfig  |  4 +--
 configs/integratorcp_cm1136_defconfig   |  4 +--
 configs/integratorcp_cm920t_defconfig   |  4 +--
 configs/integratorcp_cm926ejs_defconfig |  4 +--
 configs/integratorcp_cm946es_defconfig  |  4 +--
 9 files changed, 41 insertions(+), 48 deletions(-)
arch/arm/mach-integrator/Kconfig +25 -32
index 4406399..6794660 100644
@@ -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
configs/integratorap_cm720t_defconfig +2 -2
index 5c15d57..fc0dc67 100644
@@ -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
configs/integratorap_cm920t_defconfig +2 -2
index d2a9a71..eb6afb9 100644
@@ -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
configs/integratorap_cm926ejs_defconfig +2 -2
index af4cfa5..8667fcb 100644
@@ -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
configs/integratorap_cm946es_defconfig +2 -2
index ee07206..1e8c157 100644
@@ -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
configs/integratorcp_cm1136_defconfig +2 -2
index 5deedc8..f039470 100644
@@ -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
configs/integratorcp_cm920t_defconfig +2 -2
index 5ed8539..cb364a1 100644
@@ -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
configs/integratorcp_cm926ejs_defconfig +2 -2
index 4840ec4..32ea7b9 100644
@@ -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
configs/integratorcp_cm946es_defconfig +2 -2
index dcd034d..e7fc706 100644
@@ -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
Signature · 1 line
1.9.1
#6 lore raw

PATCH v2 3/5 ARM: integrator: split board select into AP/CP select and CM select

Quoted 8 lines · Masahiro Yamada

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.

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/20150423/d7be960d/attachment.sig>
#7 lore raw

PATCH v2 4/5 ARM: integrator: abolish CONFIG_INTEGRATOR

In reply to Masahiro Yamada

Switch to CONFIG_ARCH_INTEGRATOR defined by Kconfig.

---

Changes in v2: None

 arch/arm/cpu/arm946es/cpu.c         | 4 ++--
 include/configs/integrator-common.h | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)
arch/arm/cpu/arm946es/cpu.c +2 -2
index e20e5a8..5d864b9 100644
@@ -53,7 +53,7 @@ static void cache_flush (void)
 	asm ("mcr p15, 0, %0, c7, c6, 0": :"r" (i));
 }
 
-#ifndef CONFIG_INTEGRATOR
+#ifndef CONFIG_ARCH_INTEGRATOR
 
 __attribute__((noreturn)) void reset_cpu(ulong addr __attribute__((unused)))
 {
@@ -63,4 +63,4 @@ __attribute__((noreturn)) void reset_cpu(ulong addr __attribute__((unused)))
 		;
 }
 
-#endif	/* #ifdef CONFIG_INTEGRATOR */
+#endif	/* #ifdef CONFIG_ARCH_INTEGRATOR */
include/configs/integrator-common.h +0 -2
index 4362925..12c7382 100644
@@ -7,8 +7,6 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 
-#define CONFIG_INTEGRATOR
-
 #define CONFIG_SYS_TEXT_BASE		0x01000000
 #define CONFIG_SYS_MEMTEST_START	0x100000
 #define CONFIG_SYS_MEMTEST_END		0x10000000
Signature · 1 line
1.9.1
#8 lore raw

PATCH v2 4/5 ARM: integrator: abolish CONFIG_INTEGRATOR

Quoted 4 lines · Masahiro Yamada

Switch to CONFIG_ARCH_INTEGRATOR defined by Kconfig.

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/20150423/7d9b665b/attachment.sig>
#9 lore raw

PATCH v2 5/5 ARM: integrator: move CONFIG_ARCH_CINTEGRATOR to Kconfig

In reply to Masahiro Yamada

---

Changes in v2:
- Move this macro, not delete

 arch/arm/mach-integrator/Kconfig | 4 ++++
 include/configs/integratorcp.h   | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)
arch/arm/mach-integrator/Kconfig +4 -0
index 6794660..8ffc544 100644
@@ -9,9 +9,13 @@ config ARCH_INTEGRATOR_AP
 
 config ARCH_INTEGRATOR_CP
 	bool "Support Integrator/CP platform"
+	select ARCH_CINTEGRATOR
 
 endchoice
 
+config ARCH_CINTEGRATOR
+	bool
+
 choice
 	prompt "Integrator core module select"
 
include/configs/integratorcp.h +0 -1
index 7c1ef24..7518b60 100644
@@ -18,7 +18,6 @@
 #include "integrator-common.h"
 
 /* Integrator CP-specific configuration */
-#define CONFIG_ARCH_CINTEGRATOR
 #define CONFIG_SYS_HZ_CLOCK		1000000	/* Timer 1 is clocked at 1Mhz */
 
 /*
Signature · 1 line
1.9.1
#10 lore raw

PATCH v2 5/5 ARM: integrator: move CONFIG_ARCH_CINTEGRATOR to Kconfig

Quoted 2 lines · Masahiro Yamada

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/20150423/b6dd485b/attachment.sig>
#11 lore raw

v2 cover ARM: integrator: Kconfig Clean up

In reply to Masahiro Yamada
Quoted 6 lines · Masahiro Yamada

Masahiro Yamada (5):
ARM: ARM720t: remove empty asm/arch/hardware.h
ARM: integrator: move board select into mach-integrator/Kconfig
ARM: integrator: split board select into AP/CP select and CM select
ARM: integrator: abolish CONFIG_INTEGRATOR
ARM: integrator: move CONFIG_ARCH_CINTEGRATOR to Kconfig

I tested all of these patches, they need rebasing though becasue they don't apply cleanly on the U-Boot master, I've tested it together with my regression fixes and CONFIG_DM conversion and it works fine so:

for all five patches. Tested on Integrator/AP, real hardware.

Yours,
Linus Walleij