ARM: integrator: use explicit core module options
Subsystems (2)
PATCH 7/10 ARM: integrator: use explicit core module options
For consistency with the other platforms, this remove the CPU selection logic in mm/Kconfig that was only used by integrator, and adds specific options for each available core tile and core module, which in turn select the correct CPUs.
This is consistent with the new way that we do it for realview and all other platforms.
--- arch/arm/mach-integrator/Kconfig | 132 ++++++++++++++++++++++++++++++++++----- 1 file changed, 115 insertions(+), 17 deletions(-)
arch/arm/mach-integrator/Kconfig +115 -17
@@ -1,4 +1,4 @@ -config ARCH_INTEGRATOR +menuconfig ARCH_INTEGRATOR bool "ARM Ltd. Integrator family" if (ARCH_MULTI_V4T || ARCH_MULTI_V5 || ARCH_MULTI_V6) select ARM_AMBA select ARM_PATCH_PHYS_VIRT if MMU
@@ -23,8 +23,6 @@ config ARCH_INTEGRATOR if ARCH_INTEGRATOR -menu "Integrator Options" - config ARCH_INTEGRATOR_AP bool "Support Integrator/AP and Integrator/PP2 platforms" select CLKSRC_MMIO
@@ -36,19 +34,6 @@ config ARCH_INTEGRATOR_AP Include support for the ARM(R) Integrator/AP and Integrator/PP2 platforms. -config ARCH_INTEGRATOR_CP - bool "Support Integrator/CP platform" - select ARCH_CINTEGRATOR - select ARM_TIMER_SP804 - select SERIAL_AMBA_PL011 if TTY - select SERIAL_AMBA_PL011_CONSOLE if TTY - select SOC_BUS - help - Include support for the ARM(R) Integrator CP platform. - -config ARCH_CINTEGRATOR - bool - config INTEGRATOR_IMPD1 bool "Include support for Integrator/IM-PD1" depends on ARCH_INTEGRATOR_AP
@@ -63,6 +48,119 @@ config INTEGRATOR_IMPD1 To compile this driver as a module, choose M here: the module will be called impd1. -endmenu +config INTEGRATOR_CM7TDMI + bool "Integrator/CM7TDMI core module" + depends on ARCH_INTEGRATOR_AP + depends on ARCH_MULTI_V4 && !MMU + select CPU_ARM7TDMI + +config INTEGRATOR_CM720T + bool "Integrator/CM720T core module" + depends on ARCH_INTEGRATOR_AP + depends on ARCH_MULTI_V4T + select CPU_ARM720T + +config INTEGRATOR_CM740T + bool "Integrator/CM740T core module" + depends on ARCH_INTEGRATOR_AP + depends on ARCH_MULTI_V4T && !MMU + select CPU_ARM740T + +config INTEGRATOR_CM920T + bool "Integrator/CM920T core module" + depends on ARCH_INTEGRATOR_AP + depends on ARCH_MULTI_V4T + select CPU_ARM920T + +config INTEGRATOR_CM922T_XA10 + bool "Integrator/CM922T-XA10 core module" + depends on ARCH_MULTI_V4T + depends on ARCH_INTEGRATOR_AP + select CPU_ARM922T + +config INTEGRATOR_CM926EJS + bool "Integrator/CM926EJ-S core module" + depends on ARCH_INTEGRATOR_AP + depends on ARCH_MULTI_V5 + select CPU_ARM926T + +config INTEGRATOR_CM940T + bool "Integrator/CM940T core module" + depends on ARCH_INTEGRATOR_AP + depends on ARCH_MULTI_V4T && !MMU + select CPU_ARM940T + +config INTEGRATOR_CM946ES + bool "Integrator/CM946E-S core module" + depends on ARCH_INTEGRATOR_AP + depends on ARCH_MULTI_V5 && !MMU + select CPU_ARM946E + +config INTEGRATOR_CM966ES + bool "Integrator/CM966E-S core module" + depends on ARCH_INTEGRATOR_AP + depends on BROKEN # no kernel support + +config INTEGRATOR_CM10200E_REV0 + bool "Integrator/CM10200E rev.0 core module" + depends on ARCH_INTEGRATOR_AP && n + depends on ARCH_MULTI_V5 + select CPU_ARM1020 + +config INTEGRATOR_CM10200E + bool "Integrator/CM10200E core module" + depends on ARCH_INTEGRATOR_AP && n + depends on ARCH_MULTI_V5 + select CPU_ARM1020E + +config INTEGRATOR_CM10220E + bool "Integrator/CM10220E core module" + depends on ARCH_INTEGRATOR_AP + depends on ARCH_MULTI_V5 + select CPU_ARM1022 + +config INTEGRATOR_CM1026EJS + bool "Integrator/CM1026EJ-S core module" + depends on ARCH_INTEGRATOR_AP + depends on ARCH_MULTI_V5 + select CPU_ARM1026 + +config INTEGRATOR_CM1136JFS + bool "Integrator/CM1136JF-S core module" + depends on ARCH_INTEGRATOR_AP + depends on ARCH_MULTI_V6 + select CPU_V6 + +config ARCH_INTEGRATOR_CP + bool "Support Integrator/CP platform" + depends on (!MMU || ARCH_MULTI_V5 || ARCH_MULTI_V6) + select ARM_TIMER_SP804 + select SERIAL_AMBA_PL011 if TTY + select SERIAL_AMBA_PL011_CONSOLE if TTY + select SOC_BUS + help + Include support for the ARM(R) Integrator CP platform. + +config INTEGRATOR_CT7T + bool "Integrator/CT7TD (ARM7TDMI) core tile" + depends on ARCH_INTEGRATOR_CP + depends on ARCH_MULTI_V4T && !MMU + select CPU_ARM7TDMI + +config INTEGRATOR_CT926 + bool "Integrator/CT926 (ARM926EJ-S) core tile" + depends on ARCH_INTEGRATOR_CP + depends on ARCH_MULTI_V5 + select CPU_ARM926T + +config INTEGRATOR_CTB36 + bool "Integrator/CTB36 (ARM1136JF-S) core tile" + depends on ARCH_INTEGRATOR_CP + depends on ARCH_MULTI_V6 + select CPU_V6 + +config ARCH_CINTEGRATOR + depends on ARCH_INTEGRATOR_CP + def_bool y endif
Signature · 1 line
2.1.0.rc2
PATCH 8/10 ARM: no longer make CPU targets visible separately
Now that realview and integrator always select the correct CPU type themselves based on the core tiles, there is no need to still have them user-visible in arch/arm/mm/Kconfig. The ARM925T symbol has been selected by the only user for many years, so that can be removed along with the realview and integrator specific ones.
This also solves randconfig build problems on realview.
--- arch/arm/mm/Kconfig | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)
arch/arm/mm/Kconfig +15 -15
@@ -21,7 +21,7 @@ config CPU_ARM7TDMI # ARM720T config CPU_ARM720T - bool "Support ARM720T processor" if (ARCH_MULTI_V4T && ARCH_INTEGRATOR) + bool select CPU_32v4T select CPU_ABRT_LV4T select CPU_CACHE_V4
@@ -39,7 +39,7 @@ config CPU_ARM720T # ARM740T config CPU_ARM740T - bool "Support ARM740T processor" if (ARCH_MULTI_V4T && ARCH_INTEGRATOR) + bool depends on !MMU select CPU_32v4T select CPU_ABRT_LV4T
@@ -71,7 +71,7 @@ config CPU_ARM9TDMI # ARM920T config CPU_ARM920T - bool "Support ARM920T processor" if (ARCH_MULTI_V4T && ARCH_INTEGRATOR) + bool select CPU_32v4T select CPU_ABRT_EV4T select CPU_CACHE_V4WT
@@ -89,7 +89,7 @@ config CPU_ARM920T # ARM922T config CPU_ARM922T - bool "Support ARM922T processor" if (ARCH_MULTI_V4T && ARCH_INTEGRATOR) + bool select CPU_32v4T select CPU_ABRT_EV4T select CPU_CACHE_V4WT
@@ -108,7 +108,7 @@ config CPU_ARM922T # ARM925T config CPU_ARM925T - bool "Support ARM925T processor" if ARCH_OMAP1 + bool select CPU_32v4T select CPU_ABRT_EV4T select CPU_CACHE_V4WT
@@ -127,7 +127,7 @@ config CPU_ARM925T # ARM926T config CPU_ARM926T - bool "Support ARM926T processor" if (!ARCH_MULTIPLATFORM || ARCH_MULTI_V5) && (ARCH_INTEGRATOR || MACH_REALVIEW_EB) + bool select CPU_32v5 select CPU_ABRT_EV5TJ select CPU_CACHE_VIVT
@@ -163,7 +163,7 @@ config CPU_FA526 # ARM940T config CPU_ARM940T - bool "Support ARM940T processor" if (ARCH_MULTI_V4T && ARCH_INTEGRATOR) + bool depends on !MMU select CPU_32v4T select CPU_ABRT_NOMMU
@@ -181,7 +181,7 @@ config CPU_ARM940T # ARM946E-S config CPU_ARM946E - bool "Support ARM946E-S processor" if (ARCH_MULTI_V5 && ARCH_INTEGRATOR) + bool depends on !MMU select CPU_32v5 select CPU_ABRT_NOMMU
@@ -198,7 +198,7 @@ config CPU_ARM946E # ARM1020 - needs validating config CPU_ARM1020 - bool "Support ARM1020T (rev 0) processor" if (ARCH_MULTI_V5 && ARCH_INTEGRATOR) + bool select CPU_32v5 select CPU_ABRT_EV4T select CPU_CACHE_V4WT
@@ -216,7 +216,7 @@ config CPU_ARM1020 # ARM1020E - needs validating config CPU_ARM1020E - bool "Support ARM1020E processor" if (ARCH_MULTI_V5 && ARCH_INTEGRATOR) + bool depends on n select CPU_32v5 select CPU_ABRT_EV4T
@@ -229,7 +229,7 @@ config CPU_ARM1020E # ARM1022E config CPU_ARM1022 - bool "Support ARM1022E processor" if (ARCH_MULTI_V5 && ARCH_INTEGRATOR) + bool select CPU_32v5 select CPU_ABRT_EV4T select CPU_CACHE_VIVT
@@ -247,7 +247,7 @@ config CPU_ARM1022 # ARM1026EJ-S config CPU_ARM1026 - bool "Support ARM1026EJ-S processor" if (ARCH_MULTI_V5 && ARCH_INTEGRATOR) + bool select CPU_32v5 select CPU_ABRT_EV5T # But need Jazelle, but EV5TJ ignores bit 10 select CPU_CACHE_VIVT
@@ -358,7 +358,7 @@ config CPU_PJ4B # ARMv6 config CPU_V6 - bool "Support ARM V6 processor" if (!ARCH_MULTIPLATFORM || ARCH_MULTI_V6) && (ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX) + bool select CPU_32v6 select CPU_ABRT_EV6 select CPU_CACHE_V6
@@ -371,7 +371,7 @@ config CPU_V6 # ARMv6k config CPU_V6K - bool "Support ARM V6K processor" if (!ARCH_MULTIPLATFORM || ARCH_MULTI_V6) && (ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX) + bool select CPU_32v6 select CPU_32v6K select CPU_ABRT_EV6
@@ -385,7 +385,7 @@ config CPU_V6K # ARMv7 config CPU_V7 - bool "Support ARM V7 processor" if (!ARCH_MULTIPLATFORM || ARCH_MULTI_V7) && (ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX) + bool select CPU_32v6K select CPU_32v7 select CPU_ABRT_EV7
Signature · 1 line
2.1.0.rc2
PATCH 8/10 ARM: no longer make CPU targets visible separately
Quoted 7 lines · Arnd Bergmann
Now that realview and integrator always select the correct CPU type themselves based on the core tiles, there is no need to still have them user-visible in
arch/arm/mm/Kconfig. The ARM925T symbol has been selected by the only user for many years, so that can be removed along with the realview and integrator specific ones.
Quoted 5 lines
This also solves randconfig build problems on realview.
Signed-off-by Arnd Bergmann <[email protected]>Cc Russell King <[email protected]>Cc Linus Walleij <[email protected]>
Yours,
Linus Walleij
PATCH 9/10 ARM: realview: make all header files local
In reply to Arnd BergmannNothing includes these files any more, so we can simply move them from arch/arm/mach-realview/include/mach/ to arch/arm/mach-realview.
---
arch/arm/mach-realview/{include/mach => }/board-eb.h | 2 +-
arch/arm/mach-realview/{include/mach => }/board-pb1176.h | 2 +-
arch/arm/mach-realview/{include/mach => }/board-pb11mp.h | 2 +-
arch/arm/mach-realview/{include/mach => }/board-pba8.h | 2 +-
arch/arm/mach-realview/{include/mach => }/board-pbx.h | 2 +-
arch/arm/mach-realview/core.c | 6 +++---
arch/arm/mach-realview/{include/mach => }/hardware.h | 0
arch/arm/mach-realview/{include/mach => }/irqs-eb.h | 0
arch/arm/mach-realview/{include/mach => }/irqs-pb1176.h | 0
arch/arm/mach-realview/{include/mach => }/irqs-pb11mp.h | 0
arch/arm/mach-realview/{include/mach => }/irqs-pba8.h | 0
arch/arm/mach-realview/{include/mach => }/irqs-pbx.h | 0
arch/arm/mach-realview/{include/mach => }/irqs.h | 10 +++++-----
arch/arm/mach-realview/{include/mach => }/platform.h | 0
arch/arm/mach-realview/platsmp.c | 8 ++++----
arch/arm/mach-realview/realview_eb.c | 6 +++---
arch/arm/mach-realview/realview_pb1176.c | 6 +++---
arch/arm/mach-realview/realview_pb11mp.c | 6 +++---
arch/arm/mach-realview/realview_pba8.c | 6 +++---
arch/arm/mach-realview/realview_pbx.c | 6 +++---
arch/arm/mach-realview/{include/mach => }/uncompress.h | 12 ++++++------
21 files changed, 38 insertions(+), 38 deletions(-)
rename arch/arm/mach-realview/{include/mach => }/board-eb.h (99%)
rename arch/arm/mach-realview/{include/mach => }/board-pb1176.h (99%)
rename arch/arm/mach-realview/{include/mach => }/board-pb11mp.h (99%)
rename arch/arm/mach-realview/{include/mach => }/board-pba8.h (99%)
rename arch/arm/mach-realview/{include/mach => }/board-pbx.h (99%)
rename arch/arm/mach-realview/{include/mach => }/hardware.h (100%)
rename arch/arm/mach-realview/{include/mach => }/irqs-eb.h (100%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pb1176.h (100%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pb11mp.h (100%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pba8.h (100%)
rename arch/arm/mach-realview/{include/mach => }/irqs-pbx.h (100%)
rename arch/arm/mach-realview/{include/mach => }/irqs.h (88%)
rename arch/arm/mach-realview/{include/mach => }/platform.h (100%)
rename arch/arm/mach-realview/{include/mach => }/uncompress.h (91%)arch/arm/mach-realview/board-eb.h renamed from arch/arm/mach-realview/include/mach/board-eb.h +1 -1
@@ -21,7 +21,7 @@#ifndef __ASM_ARCH_BOARD_EB_H#define __ASM_ARCH_BOARD_EB_H -#include <mach/platform.h> +#include "platform.h" /* * RealView EB + ARM11MPCore peripheral addresses
arch/arm/mach-realview/board-pb1176.h renamed from arch/arm/mach-realview/include/mach/board-pb1176.h +1 -1
@@ -21,7 +21,7 @@#ifndef __ASM_ARCH_BOARD_PB1176_H#define __ASM_ARCH_BOARD_PB1176_H -#include <mach/platform.h> +#include "platform.h" /* * Peripheral addresses
arch/arm/mach-realview/board-pb11mp.h renamed from arch/arm/mach-realview/include/mach/board-pb11mp.h +1 -1
@@ -21,7 +21,7 @@#ifndef __ASM_ARCH_BOARD_PB11MP_H#define __ASM_ARCH_BOARD_PB11MP_H -#include <mach/platform.h> +#include "platform.h" /* * Peripheral addresses
arch/arm/mach-realview/board-pba8.h renamed from arch/arm/mach-realview/include/mach/board-pba8.h +1 -1
@@ -21,7 +21,7 @@#ifndef __ASM_ARCH_BOARD_PBA8_H#define __ASM_ARCH_BOARD_PBA8_H -#include <mach/platform.h> +#include "platform.h" /* * Peripheral addresses
arch/arm/mach-realview/board-pbx.h renamed from arch/arm/mach-realview/include/mach/board-pbx.h +1 -1
@@ -20,7 +20,7 @@#ifndef __ASM_ARCH_BOARD_PBX_H#define __ASM_ARCH_BOARD_PBX_H -#include <mach/platform.h> +#include "platform.h" /* * Peripheral addresses
arch/arm/mach-realview/core.c +3 -3
@@ -34,7 +34,7 @@#include <linux/mtd/physmap.h> #include <linux/memblock.h> -#include <mach/hardware.h> +#include "hardware.h" #include <asm/irq.h> #include <asm/mach-types.h> #include <asm/hardware/arm_timer.h>
@@ -45,8 +45,8 @@#include <asm/mach/map.h> -#include <mach/platform.h> -#include <mach/irqs.h> +#include "platform.h" +#include "irqs.h" #include <asm/hardware/timer-sp.h> #include <plat/sched_clock.h>
arch/arm/mach-realview/hardware.h renamed from arch/arm/mach-realview/include/mach/hardware.h +0 -0
arch/arm/mach-realview/irqs-eb.h renamed from arch/arm/mach-realview/include/mach/irqs-eb.h +0 -0
arch/arm/mach-realview/irqs-pb1176.h renamed from arch/arm/mach-realview/include/mach/irqs-pb1176.h +0 -0
arch/arm/mach-realview/irqs-pb11mp.h renamed from arch/arm/mach-realview/include/mach/irqs-pb11mp.h +0 -0
arch/arm/mach-realview/irqs-pba8.h renamed from arch/arm/mach-realview/include/mach/irqs-pba8.h +0 -0
arch/arm/mach-realview/irqs-pbx.h renamed from arch/arm/mach-realview/include/mach/irqs-pbx.h +0 -0
arch/arm/mach-realview/irqs.h renamed from arch/arm/mach-realview/include/mach/irqs.h +5 -5
@@ -22,11 +22,11 @@#ifndef __ASM_ARCH_IRQS_H#define __ASM_ARCH_IRQS_H -#include <mach/irqs-eb.h> -#include <mach/irqs-pb11mp.h> -#include <mach/irqs-pb1176.h> -#include <mach/irqs-pba8.h> -#include <mach/irqs-pbx.h> +#include "irqs-eb.h" +#include "irqs-pb11mp.h" +#include "irqs-pb1176.h" +#include "irqs-pba8.h" +#include "irqs-pbx.h" #define IRQ_LOCALTIMER 29#define IRQ_LOCALWDOG 30
arch/arm/mach-realview/platform.h renamed from arch/arm/mach-realview/include/mach/platform.h +0 -0
arch/arm/mach-realview/platsmp.c +4 -4
@@ -13,13 +13,13 @@#include <linux/smp.h> #include <linux/io.h> -#include <mach/hardware.h> +#include "hardware.h" #include <asm/mach-types.h> #include <asm/smp_scu.h> -#include <mach/board-eb.h> -#include <mach/board-pb11mp.h> -#include <mach/board-pbx.h> +#include "board-eb.h" +#include "board-pb11mp.h" +#include "board-pbx.h" #include <plat/platsmp.h>
arch/arm/mach-realview/realview_eb.c +3 -3
@@ -31,7 +31,7 @@#include <linux/platform_data/clk-realview.h> #include <linux/reboot.h> -#include <mach/hardware.h> +#include "hardware.h" #include <asm/irq.h> #include <asm/mach-types.h> #include <asm/pgtable.h>
@@ -43,8 +43,8 @@#include <asm/mach/map.h> #include <asm/mach/time.h> -#include <mach/board-eb.h> -#include <mach/irqs.h> +#include "board-eb.h" +#include "irqs.h" #include "core.h"
arch/arm/mach-realview/realview_pb1176.c +3 -3
@@ -34,7 +34,7 @@#include <linux/reboot.h> #include <linux/memblock.h> -#include <mach/hardware.h> +#include "hardware.h" #include <asm/irq.h> #include <asm/mach-types.h> #include <asm/pgtable.h>
@@ -45,8 +45,8 @@#include <asm/mach/map.h> #include <asm/mach/time.h> -#include <mach/board-pb1176.h> -#include <mach/irqs.h> +#include "board-pb1176.h" +#include "irqs.h" #include "core.h"
arch/arm/mach-realview/realview_pb11mp.c +3 -3
@@ -31,7 +31,7 @@#include <linux/platform_data/clk-realview.h> #include <linux/reboot.h> -#include <mach/hardware.h> +#include "hardware.h" #include <asm/irq.h> #include <asm/mach-types.h> #include <asm/pgtable.h>
@@ -43,8 +43,8 @@#include <asm/mach/map.h> #include <asm/mach/time.h> -#include <mach/board-pb11mp.h> -#include <mach/irqs.h> +#include "board-pb11mp.h" +#include "irqs.h" #include "core.h"
arch/arm/mach-realview/realview_pba8.c +3 -3
@@ -39,9 +39,9 @@#include <asm/mach/map.h> #include <asm/mach/time.h> -#include <mach/hardware.h> -#include <mach/board-pba8.h> -#include <mach/irqs.h> +#include "hardware.h" +#include "board-pba8.h" +#include "irqs.h" #include "core.h"
arch/arm/mach-realview/realview_pbx.c +3 -3
@@ -41,9 +41,9 @@#include <asm/mach/map.h> #include <asm/mach/time.h> -#include <mach/hardware.h> -#include <mach/board-pbx.h> -#include <mach/irqs.h> +#include "hardware.h" +#include "board-pbx.h" +#include "irqs.h" #include "core.h"
arch/arm/mach-realview/uncompress.h renamed from arch/arm/mach-realview/include/mach/uncompress.h +6 -6
@@ -17,14 +17,14 @@* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <mach/hardware.h> +#include "hardware.h" #include <asm/mach-types.h> -#include <mach/board-eb.h> -#include <mach/board-pb11mp.h> -#include <mach/board-pb1176.h> -#include <mach/board-pba8.h> -#include <mach/board-pbx.h> +#include "board-eb.h" +#include "board-pb11mp.h" +#include "board-pb1176.h" +#include "board-pba8.h" +#include "board-pbx.h" #define AMBA_UART_DR (base) (*(volatile unsigned char *)((base) + 0x00))#define AMBA_UART_LCRH (base) (*(volatile unsigned char *)((base) + 0x2c))
Signature · 1 line
2.1.0.rc2
PATCH 7/10 ARM: integrator: use explicit core module options
In reply to Arnd BergmannQuoted 9 lines · Arnd Bergmann
For consistency with the other platforms, this remove the CPU selection logic in mm/Kconfig that was only used by integrator, and adds specific options for each available core tile and core module, which in turn select the correct CPUs.
This is consistent with the new way that we do it for realview and all other platforms.
Signed-off-by Arnd Bergmann <[email protected]>
Applied, compiled, and booted on Integrator/AP with an ARM926 core tile.
Yours,
Linus Walleij