aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-11-25 11:32:19 -0500
committerLinus Walleij <linus.walleij@linaro.org>2015-12-18 08:08:15 -0500
commit2934167dd02b4fb5f6c57b36c92b3af23e8bad9f (patch)
tree6c90f5e16da62871ac1e4fa5b1fb931af58c6be8
parent5420b4b156179ec634d9e42279b6898b85852960 (diff)
ARM: realview: enable multiplatform
All obstacles are out of the way by now, so we can finally move realview to multiplatform. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Russell King <linux@arm.linux.org.uk> [Rebased Kconfig, fixed if $(X) to if X in Makefile] Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--arch/arm/Kconfig14
-rw-r--r--arch/arm/mach-realview/Kconfig55
-rw-r--r--arch/arm/mach-realview/Makefile7
3 files changed, 49 insertions, 27 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 29915c7af9eb..242dc4048059 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -343,20 +343,6 @@ config ARM_SINGLE_ARMV7M
343 select SPARSE_IRQ 343 select SPARSE_IRQ
344 select USE_OF 344 select USE_OF
345 345
346config ARCH_REALVIEW
347 bool "ARM Ltd. RealView family"
348 select ARCH_WANT_OPTIONAL_GPIOLIB
349 select ARM_AMBA
350 select ARM_TIMER_SP804
351 select COMMON_CLK
352 select COMMON_CLK_VERSATILE
353 select GENERIC_CLOCKEVENTS
354 select GPIO_PL061 if GPIOLIB
355 select ICST
356 select PLAT_VERSATILE
357 select PLAT_VERSATILE_SCHED_CLOCK
358 help
359 This enables support for ARM Ltd RealView boards.
360 346
361config ARCH_VERSATILE 347config ARCH_VERSATILE
362 bool "ARM Ltd. Versatile family" 348 bool "ARM Ltd. Versatile family"
diff --git a/arch/arm/mach-realview/Kconfig b/arch/arm/mach-realview/Kconfig
index 7316fff0f3ba..9e01e42bf267 100644
--- a/arch/arm/mach-realview/Kconfig
+++ b/arch/arm/mach-realview/Kconfig
@@ -1,5 +1,16 @@
1menu "RealView platform type" 1menuconfig ARCH_REALVIEW
2 depends on ARCH_REALVIEW 2 bool "ARM Ltd. RealView family" if ARCH_MULTI_V5 || ARCH_MULTI_V6 || ARCH_MULTI_V7
3 select ARM_AMBA
4 select ARM_TIMER_SP804
5 select COMMON_CLK_VERSATILE
6 select GPIO_PL061 if GPIOLIB
7 select ICST
8 select PLAT_VERSATILE
9 select PLAT_VERSATILE_SCHED_CLOCK
10 help
11 This enables support for ARM Ltd RealView boards.
12
13if ARCH_REALVIEW
3 14
4config REALVIEW_DT 15config REALVIEW_DT
5 bool "Support RealView(R) Device Tree based boot" 16 bool "Support RealView(R) Device Tree based boot"
@@ -7,6 +18,7 @@ config REALVIEW_DT
7 select CLK_SP810 18 select CLK_SP810
8 select HAVE_SMP 19 select HAVE_SMP
9 select ICST 20 select ICST
21 select MACH_REALVIEW_EB if ARCH_MULTI_V5
10 select MFD_SYSCON 22 select MFD_SYSCON
11 select POWER_RESET 23 select POWER_RESET
12 select POWER_RESET_VERSATILE 24 select POWER_RESET_VERSATILE
@@ -21,14 +33,32 @@ config REALVIEW_DT
21config MACH_REALVIEW_EB 33config MACH_REALVIEW_EB
22 bool "Support RealView(R) Emulation Baseboard" 34 bool "Support RealView(R) Emulation Baseboard"
23 select ARM_GIC 35 select ARM_GIC
36 select CPU_ARM926T if ARCH_MULTI_V5
24 help 37 help
25 Include support for the ARM(R) RealView(R) Emulation Baseboard 38 Include support for the ARM(R) RealView(R) Emulation Baseboard
26 platform. 39 platform. On an ARMv5 kernel, this will include support for
40 the ARM926EJ-S core tile, while on an ARMv6/v7 kernel, at least
41 one of the ARM1136, ARM1176, ARM11MPCore or Cortex-A9MPCore
42 core tile options should be enabled.
43
44config REALVIEW_EB_ARM1136
45 bool "Support ARM1136J(F)-S Tile"
46 depends on MACH_REALVIEW_EB && ARCH_MULTI_V6
47 select CPU_V6
48 help
49 Enable support for the ARM1136 tile fitted to the
50 Realview(R) Emulation Baseboard platform.
51
52config REALVIEW_EB_ARM1176
53 bool "Support ARM1176JZ(F)-S Tile"
54 depends on MACH_REALVIEW_EB && ARCH_MULTI_V6
55 help
56 Enable support for the ARM1176 tile fitted to the
57 Realview(R) Emulation Baseboard platform.
27 58
28config REALVIEW_EB_A9MP 59config REALVIEW_EB_A9MP
29 bool "Support Multicore Cortex-A9 Tile" 60 bool "Support Multicore Cortex-A9 Tile"
30 depends on MACH_REALVIEW_EB 61 depends on MACH_REALVIEW_EB && ARCH_MULTI_V7
31 select CPU_V7
32 select HAVE_ARM_SCU if SMP 62 select HAVE_ARM_SCU if SMP
33 select HAVE_ARM_TWD if SMP 63 select HAVE_ARM_TWD if SMP
34 select HAVE_SMP 64 select HAVE_SMP
@@ -39,8 +69,7 @@ config REALVIEW_EB_A9MP
39 69
40config REALVIEW_EB_ARM11MP 70config REALVIEW_EB_ARM11MP
41 bool "Support ARM11MPCore Tile" 71 bool "Support ARM11MPCore Tile"
42 depends on MACH_REALVIEW_EB 72 depends on MACH_REALVIEW_EB && ARCH_MULTI_V6
43 select CPU_V6K
44 select HAVE_ARM_SCU if SMP 73 select HAVE_ARM_SCU if SMP
45 select HAVE_ARM_TWD if SMP 74 select HAVE_ARM_TWD if SMP
46 select HAVE_SMP 75 select HAVE_SMP
@@ -51,7 +80,7 @@ config REALVIEW_EB_ARM11MP
51 80
52config REALVIEW_EB_ARM11MP_REVB 81config REALVIEW_EB_ARM11MP_REVB
53 bool "Support ARM11MPCore RevB Tile" 82 bool "Support ARM11MPCore RevB Tile"
54 depends on REALVIEW_EB_ARM11MP 83 depends on REALVIEW_EB_ARM11MP && ARCH_MULTI_V6
55 help 84 help
56 Enable support for the ARM11MPCore Revision B tile on the 85 Enable support for the ARM11MPCore Revision B tile on the
57 Realview(R) Emulation Baseboard platform. Since there are device 86 Realview(R) Emulation Baseboard platform. Since there are device
@@ -60,8 +89,8 @@ config REALVIEW_EB_ARM11MP_REVB
60 89
61config MACH_REALVIEW_PB11MP 90config MACH_REALVIEW_PB11MP
62 bool "Support RealView(R) Platform Baseboard for ARM11MPCore" 91 bool "Support RealView(R) Platform Baseboard for ARM11MPCore"
92 depends on ARCH_MULTI_V6
63 select ARM_GIC 93 select ARM_GIC
64 select CPU_V6K
65 select HAVE_ARM_SCU if SMP 94 select HAVE_ARM_SCU if SMP
66 select HAVE_ARM_TWD if SMP 95 select HAVE_ARM_TWD if SMP
67 select HAVE_PATA_PLATFORM 96 select HAVE_PATA_PLATFORM
@@ -75,6 +104,7 @@ config MACH_REALVIEW_PB11MP
75# ARMv6 CPU without K extensions, but does have the new exclusive ops 104# ARMv6 CPU without K extensions, but does have the new exclusive ops
76config MACH_REALVIEW_PB1176 105config MACH_REALVIEW_PB1176
77 bool "Support RealView(R) Platform Baseboard for ARM1176JZF-S" 106 bool "Support RealView(R) Platform Baseboard for ARM1176JZF-S"
107 depends on ARCH_MULTI_V6
78 select ARM_GIC 108 select ARM_GIC
79 select CPU_V6 109 select CPU_V6
80 select HAVE_TCM 110 select HAVE_TCM
@@ -94,8 +124,8 @@ config REALVIEW_PB1176_SECURE_FLASH
94 124
95config MACH_REALVIEW_PBA8 125config MACH_REALVIEW_PBA8
96 bool "Support RealView(R) Platform Baseboard for Cortex(tm)-A8 platform" 126 bool "Support RealView(R) Platform Baseboard for Cortex(tm)-A8 platform"
127 depends on ARCH_MULTI_V7
97 select ARM_GIC 128 select ARM_GIC
98 select CPU_V7
99 select HAVE_PATA_PLATFORM 129 select HAVE_PATA_PLATFORM
100 help 130 help
101 Include support for the ARM(R) RealView Platform Baseboard for 131 Include support for the ARM(R) RealView Platform Baseboard for
@@ -103,7 +133,8 @@ config MACH_REALVIEW_PBA8
103 support for PCI-E and Compact Flash. 133 support for PCI-E and Compact Flash.
104 134
105config MACH_REALVIEW_PBX 135config MACH_REALVIEW_PBX
106 bool "Support RealView(R) Platform Baseboard Explore" 136 bool "Support RealView(R) Platform Baseboard Explore for Cortex-A9"
137 depends on ARCH_MULTI_V7
107 select ARM_GIC 138 select ARM_GIC
108 select HAVE_ARM_SCU if SMP 139 select HAVE_ARM_SCU if SMP
109 select HAVE_ARM_TWD if SMP 140 select HAVE_ARM_TWD if SMP
@@ -127,4 +158,4 @@ config REALVIEW_HIGH_PHYS_OFFSET
127 offset. On the PBX board, disabling this option allows 1GB of 158 offset. On the PBX board, disabling this option allows 1GB of
128 RAM to be used with HIGHMEM. 159 RAM to be used with HIGHMEM.
129 160
130endmenu 161endif
diff --git a/arch/arm/mach-realview/Makefile b/arch/arm/mach-realview/Makefile
index a46fa694cf07..a4392f545a31 100644
--- a/arch/arm/mach-realview/Makefile
+++ b/arch/arm/mach-realview/Makefile
@@ -1,13 +1,18 @@
1# 1#
2# Makefile for the linux kernel. 2# Makefile for the linux kernel.
3# 3#
4ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \
5 -I$(srctree)/arch/arm/plat-versatile/include
6
4 7
5obj-y := core.o
6obj-$(CONFIG_REALVIEW_DT) += realview-dt.o platsmp-dt.o 8obj-$(CONFIG_REALVIEW_DT) += realview-dt.o platsmp-dt.o
9obj-y := core.o
10ifdef CONFIG_ATAGS
7obj-$(CONFIG_MACH_REALVIEW_EB) += realview_eb.o 11obj-$(CONFIG_MACH_REALVIEW_EB) += realview_eb.o
8obj-$(CONFIG_MACH_REALVIEW_PB11MP) += realview_pb11mp.o 12obj-$(CONFIG_MACH_REALVIEW_PB11MP) += realview_pb11mp.o
9obj-$(CONFIG_MACH_REALVIEW_PB1176) += realview_pb1176.o 13obj-$(CONFIG_MACH_REALVIEW_PB1176) += realview_pb1176.o
10obj-$(CONFIG_MACH_REALVIEW_PBA8) += realview_pba8.o 14obj-$(CONFIG_MACH_REALVIEW_PBA8) += realview_pba8.o
11obj-$(CONFIG_MACH_REALVIEW_PBX) += realview_pbx.o 15obj-$(CONFIG_MACH_REALVIEW_PBX) += realview_pbx.o
16endif
12obj-$(CONFIG_SMP) += platsmp.o 17obj-$(CONFIG_SMP) += platsmp.o
13obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o 18obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o