aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-08-10 08:30:35 -0400
committerLinus Walleij <linus.walleij@linaro.org>2016-08-15 14:53:07 -0400
commit8f2c00629e43b0f32785c3e89b61cca89058929a (patch)
tree6358d9f0932134a2403404ec9c5e492c6aead700
parent21c170c28ee46da75ff4cfa65e1d446b9d59914a (diff)
ARM: realview: imply device tree boot
This reduces the Kconfig for the RealView by assuming we are always booting from the device tree, and removing all the uses of CONFIG_REALVIEW_DT and replacing with CONFIG_ARCH_REALVIEW. Further: - Drop REALVIEW_HIGH_PHYS_OFFSET: we don't use this with device tree. - Drop the REALVIEW_EB_ARM11MP_REVB option: we now handle this by simply using another device tree. - Drop the PB1176 secure flash option: this is defined in the PB1176 device tree but marked as "disabled", so users who want to use it can simply enable it in the device tree and go hacking around. Cc: Brian Norris <computersforpeace@gmail.com> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--arch/arm/Kconfig3
-rw-r--r--arch/arm/mach-realview/Kconfig71
-rw-r--r--arch/arm/mach-realview/Makefile2
-rw-r--r--drivers/irqchip/Makefile2
-rw-r--r--drivers/mtd/maps/Kconfig2
5 files changed, 15 insertions, 65 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 2d601d769a1c..8e440c9654cb 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -277,10 +277,9 @@ config PHYS_OFFSET
277 ARCH_INTEGRATOR || \ 277 ARCH_INTEGRATOR || \
278 ARCH_IOP13XX || \ 278 ARCH_IOP13XX || \
279 ARCH_KS8695 || \ 279 ARCH_KS8695 || \
280 (ARCH_REALVIEW && !REALVIEW_HIGH_PHYS_OFFSET) 280 ARCH_REALVIEW
281 default 0x10000000 if ARCH_OMAP1 || ARCH_RPC 281 default 0x10000000 if ARCH_OMAP1 || ARCH_RPC
282 default 0x20000000 if ARCH_S5PV210 282 default 0x20000000 if ARCH_S5PV210
283 default 0x70000000 if REALVIEW_HIGH_PHYS_OFFSET
284 default 0xc0000000 if ARCH_SA1100 283 default 0xc0000000 if ARCH_SA1100
285 help 284 help
286 Please provide the physical address corresponding to the 285 Please provide the physical address corresponding to the
diff --git a/arch/arm/mach-realview/Kconfig b/arch/arm/mach-realview/Kconfig
index 739800e8101f..1d7c83e73ffb 100644
--- a/arch/arm/mach-realview/Kconfig
+++ b/arch/arm/mach-realview/Kconfig
@@ -2,33 +2,29 @@ menuconfig ARCH_REALVIEW
2 bool "ARM Ltd. RealView family" 2 bool "ARM Ltd. RealView family"
3 depends on ARCH_MULTI_V5 || ARCH_MULTI_V6 || ARCH_MULTI_V7 3 depends on ARCH_MULTI_V5 || ARCH_MULTI_V6 || ARCH_MULTI_V7
4 select ARM_AMBA 4 select ARM_AMBA
5 select ARM_GIC
5 select ARM_TIMER_SP804 6 select ARM_TIMER_SP804
7 select CLK_SP810
6 select COMMON_CLK_VERSATILE 8 select COMMON_CLK_VERSATILE
7 select GPIO_PL061 if GPIOLIB 9 select GPIO_PL061 if GPIOLIB
8 select ICST 10 select HAVE_ARM_SCU if SMP
9 select PLAT_VERSATILE 11 select HAVE_ARM_TWD if SMP
10 select PLAT_VERSATILE_SCHED_CLOCK 12 select HAVE_PATA_PLATFORM
11 help 13 select HAVE_TCM
12 This enables support for ARM Ltd RealView boards.
13
14if ARCH_REALVIEW
15
16config REALVIEW_DT
17 bool "Support RealView(R) Device Tree based boot"
18 select ARM_GIC
19 select CLK_SP810
20 select HAVE_SMP
21 select ICST 14 select ICST
22 select MACH_REALVIEW_EB if ARCH_MULTI_V5 15 select MACH_REALVIEW_EB if ARCH_MULTI_V5
23 select MFD_SYSCON 16 select MFD_SYSCON
17 select PLAT_VERSATILE
18 select PLAT_VERSATILE_SCHED_CLOCK
24 select POWER_RESET 19 select POWER_RESET
25 select POWER_RESET_VERSATILE 20 select POWER_RESET_VERSATILE
26 select POWER_SUPPLY 21 select POWER_SUPPLY
27 select SOC_REALVIEW 22 select SOC_REALVIEW
28 select USE_OF 23 select USE_OF
29 help 24 help
30 Include support for booting the ARM(R) RealView(R) evaluation 25 This enables support for ARM Ltd RealView boards.
31 boards using a device tree machine description. 26
27if ARCH_REALVIEW
32 28
33config MACH_REALVIEW_EB 29config MACH_REALVIEW_EB
34 bool "Support RealView(R) Emulation Baseboard" 30 bool "Support RealView(R) Emulation Baseboard"
@@ -59,8 +55,6 @@ config REALVIEW_EB_ARM1176
59config REALVIEW_EB_A9MP 55config REALVIEW_EB_A9MP
60 bool "Support Multicore Cortex-A9 Tile" 56 bool "Support Multicore Cortex-A9 Tile"
61 depends on MACH_REALVIEW_EB && ARCH_MULTI_V7 57 depends on MACH_REALVIEW_EB && ARCH_MULTI_V7
62 select HAVE_ARM_SCU if SMP
63 select HAVE_ARM_TWD if SMP
64 select HAVE_SMP 58 select HAVE_SMP
65 select MIGHT_HAVE_CACHE_L2X0 59 select MIGHT_HAVE_CACHE_L2X0
66 help 60 help
@@ -70,30 +64,15 @@ config REALVIEW_EB_A9MP
70config REALVIEW_EB_ARM11MP 64config REALVIEW_EB_ARM11MP
71 bool "Support ARM11MPCore Tile" 65 bool "Support ARM11MPCore Tile"
72 depends on MACH_REALVIEW_EB && ARCH_MULTI_V6 66 depends on MACH_REALVIEW_EB && ARCH_MULTI_V6
73 select HAVE_ARM_SCU if SMP
74 select HAVE_ARM_TWD if SMP
75 select HAVE_SMP 67 select HAVE_SMP
76 select MIGHT_HAVE_CACHE_L2X0 68 select MIGHT_HAVE_CACHE_L2X0
77 help 69 help
78 Enable support for the ARM11MPCore tile fitted to the Realview(R) 70 Enable support for the ARM11MPCore tile fitted to the Realview(R)
79 Emulation Baseboard platform. 71 Emulation Baseboard platform.
80 72
81config REALVIEW_EB_ARM11MP_REVB
82 bool "Support ARM11MPCore RevB Tile"
83 depends on REALVIEW_EB_ARM11MP && ARCH_MULTI_V6
84 help
85 Enable support for the ARM11MPCore Revision B tile on the
86 Realview(R) Emulation Baseboard platform. Since there are device
87 address differences, a kernel built with this option enabled is
88 not compatible with other revisions of the ARM11MPCore tile.
89
90config MACH_REALVIEW_PB11MP 73config MACH_REALVIEW_PB11MP
91 bool "Support RealView(R) Platform Baseboard for ARM11MPCore" 74 bool "Support RealView(R) Platform Baseboard for ARM11MPCore"
92 depends on ARCH_MULTI_V6 75 depends on ARCH_MULTI_V6
93 select ARM_GIC
94 select HAVE_ARM_SCU if SMP
95 select HAVE_ARM_TWD if SMP
96 select HAVE_PATA_PLATFORM
97 select HAVE_SMP 76 select HAVE_SMP
98 select MIGHT_HAVE_CACHE_L2X0 77 select MIGHT_HAVE_CACHE_L2X0
99 help 78 help
@@ -105,7 +84,6 @@ config MACH_REALVIEW_PB11MP
105config MACH_REALVIEW_PB1176 84config MACH_REALVIEW_PB1176
106 bool "Support RealView(R) Platform Baseboard for ARM1176JZF-S" 85 bool "Support RealView(R) Platform Baseboard for ARM1176JZF-S"
107 depends on ARCH_MULTI_V6 86 depends on ARCH_MULTI_V6
108 select ARM_GIC
109 select CPU_V6 87 select CPU_V6
110 select HAVE_TCM 88 select HAVE_TCM
111 select MIGHT_HAVE_CACHE_L2X0 89 select MIGHT_HAVE_CACHE_L2X0
@@ -113,20 +91,9 @@ config MACH_REALVIEW_PB1176
113 Include support for the ARM(R) RealView(R) Platform Baseboard for 91 Include support for the ARM(R) RealView(R) Platform Baseboard for
114 ARM1176JZF-S. 92 ARM1176JZF-S.
115 93
116config REALVIEW_PB1176_SECURE_FLASH
117 bool "Allow access to the secure flash memory block"
118 depends on MACH_REALVIEW_PB1176
119 default n
120 help
121 Select this option if Linux will only run in secure mode on the
122 RealView PB1176 platform and access to the secure flash memory
123 block (64MB @ 0x3c000000) is required.
124
125config MACH_REALVIEW_PBA8 94config MACH_REALVIEW_PBA8
126 bool "Support RealView(R) Platform Baseboard for Cortex(tm)-A8 platform" 95 bool "Support RealView(R) Platform Baseboard for Cortex(tm)-A8 platform"
127 depends on ARCH_MULTI_V7 96 depends on ARCH_MULTI_V7
128 select ARM_GIC
129 select HAVE_PATA_PLATFORM
130 help 97 help
131 Include support for the ARM(R) RealView Platform Baseboard for 98 Include support for the ARM(R) RealView Platform Baseboard for
132 Cortex(tm)-A8. This platform has an on-board Cortex-A8 and has 99 Cortex(tm)-A8. This platform has an on-board Cortex-A8 and has
@@ -135,10 +102,6 @@ config MACH_REALVIEW_PBA8
135config MACH_REALVIEW_PBX 102config MACH_REALVIEW_PBX
136 bool "Support RealView(R) Platform Baseboard Explore for Cortex-A9" 103 bool "Support RealView(R) Platform Baseboard Explore for Cortex-A9"
137 depends on ARCH_MULTI_V7 104 depends on ARCH_MULTI_V7
138 select ARM_GIC
139 select HAVE_ARM_SCU if SMP
140 select HAVE_ARM_TWD if SMP
141 select HAVE_PATA_PLATFORM
142 select HAVE_SMP 105 select HAVE_SMP
143 select MIGHT_HAVE_CACHE_L2X0 106 select MIGHT_HAVE_CACHE_L2X0
144 select ZONE_DMA 107 select ZONE_DMA
@@ -146,16 +109,4 @@ config MACH_REALVIEW_PBX
146 Include support for the ARM(R) RealView(R) Platform Baseboard 109 Include support for the ARM(R) RealView(R) Platform Baseboard
147 Explore. 110 Explore.
148 111
149config REALVIEW_HIGH_PHYS_OFFSET
150 bool "High physical base address for the RealView platform"
151 depends on MMU && !MACH_REALVIEW_PB1176
152 default y
153 help
154 RealView boards other than PB1176 have the RAM available at
155 0x70000000, 256MB of which being mirrored at 0x00000000. If
156 the board supports 512MB of RAM, this option allows the
157 memory to be accessed contiguously at the high physical
158 offset. On the PBX board, disabling this option allows 1GB of
159 RAM to be used with HIGHMEM.
160
161endif 112endif
diff --git a/arch/arm/mach-realview/Makefile b/arch/arm/mach-realview/Makefile
index 97dab53daaf1..6df86c29bbc3 100644
--- a/arch/arm/mach-realview/Makefile
+++ b/arch/arm/mach-realview/Makefile
@@ -4,6 +4,6 @@
4ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \ 4ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \
5 -I$(srctree)/arch/arm/plat-versatile/include 5 -I$(srctree)/arch/arm/plat-versatile/include
6 6
7obj-$(CONFIG_REALVIEW_DT) += realview-dt.o 7obj-y += realview-dt.o
8obj-$(CONFIG_SMP) += platsmp-dt.o 8obj-$(CONFIG_SMP) += platsmp-dt.o
9obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o 9obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile
index 4c203b6b8163..92fa06e16a17 100644
--- a/drivers/irqchip/Makefile
+++ b/drivers/irqchip/Makefile
@@ -25,7 +25,7 @@ obj-$(CONFIG_ARCH_SUNXI) += irq-sunxi-nmi.o
25obj-$(CONFIG_ARCH_SPEAR3XX) += spear-shirq.o 25obj-$(CONFIG_ARCH_SPEAR3XX) += spear-shirq.o
26obj-$(CONFIG_ARM_GIC) += irq-gic.o irq-gic-common.o 26obj-$(CONFIG_ARM_GIC) += irq-gic.o irq-gic-common.o
27obj-$(CONFIG_ARM_GIC_PM) += irq-gic-pm.o 27obj-$(CONFIG_ARM_GIC_PM) += irq-gic-pm.o
28obj-$(CONFIG_REALVIEW_DT) += irq-gic-realview.o 28obj-$(CONFIG_ARCH_REALVIEW) += irq-gic-realview.o
29obj-$(CONFIG_ARM_GIC_V2M) += irq-gic-v2m.o 29obj-$(CONFIG_ARM_GIC_V2M) += irq-gic-v2m.o
30obj-$(CONFIG_ARM_GIC_V3) += irq-gic-v3.o irq-gic-common.o 30obj-$(CONFIG_ARM_GIC_V3) += irq-gic-v3.o irq-gic-common.o
31obj-$(CONFIG_ARM_GIC_V3_ITS) += irq-gic-v3-its.o irq-gic-v3-its-pci-msi.o irq-gic-v3-its-platform-msi.o 31obj-$(CONFIG_ARM_GIC_V3_ITS) += irq-gic-v3-its.o irq-gic-v3-its-pci-msi.o irq-gic-v3-its-platform-msi.o
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index 392f9eff5fb7..5bcc896a48c3 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -78,7 +78,7 @@ config MTD_PHYSMAP_OF_VERSATILE
78 bool "Support ARM Versatile physmap OF" 78 bool "Support ARM Versatile physmap OF"
79 depends on MTD_PHYSMAP_OF 79 depends on MTD_PHYSMAP_OF
80 depends on MFD_SYSCON 80 depends on MFD_SYSCON
81 default y if (ARCH_INTEGRATOR || ARCH_VERSATILE || REALVIEW_DT) 81 default y if (ARCH_INTEGRATOR || ARCH_VERSATILE || ARCH_REALVIEW)
82 help 82 help
83 This provides some extra DT physmap parsing for the ARM Versatile 83 This provides some extra DT physmap parsing for the ARM Versatile
84 platforms, basically to add a VPP (write protection) callback so 84 platforms, basically to add a VPP (write protection) callback so