Skip to content

Commit 6172763

Browse files
author
Rob Herring
committed
ARM: vexpress: convert to multi-platform
Convert vexpress to multi-platform. This always enables vexpress DT and makes it the default v7 platform. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Cc: Pawel Moll <pawel.moll@arm.com>
1 parent 387798b commit 6172763

8 files changed

Lines changed: 37 additions & 168 deletions

File tree

‎arch/arm/Kconfig‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -319,24 +319,6 @@ config ARCH_VERSATILE
319319
help
320320
This enables support for ARM Ltd Versatile board.
321321

322-
config ARCH_VEXPRESS
323-
bool "ARM Ltd. Versatile Express family"
324-
select ARCH_WANT_OPTIONAL_GPIOLIB
325-
select ARM_AMBA
326-
select ARM_TIMER_SP804
327-
select CLKDEV_LOOKUP
328-
select COMMON_CLK
329-
select GENERIC_CLOCKEVENTS
330-
select HAVE_CLK
331-
select HAVE_PATA_PLATFORM
332-
select ICST
333-
select NO_IOPORT
334-
select PLAT_VERSATILE
335-
select PLAT_VERSATILE_CLCD
336-
select REGULATOR_FIXED_VOLTAGE if REGULATOR
337-
help
338-
This enables support for the ARM Ltd Versatile Express boards.
339-
340322
config ARCH_AT91
341323
bool "Atmel AT91"
342324
select ARCH_REQUIRE_GPIOLIB
@@ -1016,6 +998,7 @@ config ARCH_MULTI_V6
1016998
config ARCH_MULTI_V7
1017999
bool "ARMv7 based platforms (Cortex-A, PJ4, Krait)"
10181000
select CPU_V7
1001+
select ARCH_VEXPRESS
10191002
default y
10201003
select ARCH_MULTI_V6_V7
10211004

‎arch/arm/mach-vexpress/Kconfig‎

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,23 @@
1-
menu "Versatile Express platform type"
2-
depends on ARCH_VEXPRESS
3-
4-
config ARCH_VEXPRESS_CORTEX_A5_A9_ERRATA
5-
bool "Enable A5 and A9 only errata work-arounds"
6-
default y
7-
select ARM_ERRATA_720789
8-
select ARM_ERRATA_751472
9-
select PL310_ERRATA_753970 if CACHE_PL310
10-
help
11-
Provides common dependencies for Versatile Express platforms
12-
based on Cortex-A5 and Cortex-A9 processors. In order to
13-
build a working kernel, you must also enable relevant core
14-
tile support or Flattened Device Tree based support options.
15-
16-
config ARCH_VEXPRESS_CA9X4
17-
bool "Versatile Express Cortex-A9x4 tile"
18-
select ARM_GIC
19-
select CPU_V7
20-
select HAVE_SMP
21-
select MIGHT_HAVE_CACHE_L2X0
22-
23-
config ARCH_VEXPRESS_DT
24-
bool "Device Tree support for Versatile Express platforms"
1+
config ARCH_VEXPRESS
2+
bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7
3+
select ARCH_WANT_OPTIONAL_GPIOLIB
4+
select ARM_AMBA
255
select ARM_GIC
26-
select ARM_PATCH_PHYS_VIRT
27-
select AUTO_ZRELADDR
6+
select ARM_TIMER_SP804
7+
select CLKDEV_LOOKUP
8+
select COMMON_CLK
289
select CPU_V7
10+
select GENERIC_CLOCKEVENTS
11+
select HAVE_CLK
12+
select HAVE_PATA_PLATFORM
2913
select HAVE_SMP
14+
select ICST
3015
select MIGHT_HAVE_CACHE_L2X0
31-
select USE_OF
16+
select NO_IOPORT
17+
select PLAT_VERSATILE
18+
select PLAT_VERSATILE_CLCD
19+
select REGULATOR_FIXED_VOLTAGE if REGULATOR
3220
help
33-
New Versatile Express platforms require Flattened Device Tree to
34-
be passed to the kernel.
35-
3621
This option enables support for systems using Cortex processor based
3722
ARM core and logic (FPGA) tiles on the Versatile Express motherboard,
3823
for example:
@@ -48,7 +33,22 @@ config ARCH_VEXPRESS_DT
4833
platforms. The traditional (ATAGs) boot method is not usable on
4934
these boards with this option.
5035

51-
If your bootloader supports Flattened Device Tree based booting,
52-
say Y here.
36+
menu "Versatile Express platform type"
37+
depends on ARCH_VEXPRESS
38+
39+
config ARCH_VEXPRESS_CORTEX_A5_A9_ERRATA
40+
bool "Enable A5 and A9 only errata work-arounds"
41+
default y
42+
select ARM_ERRATA_720789
43+
select ARM_ERRATA_751472
44+
select PL310_ERRATA_753970 if CACHE_PL310
45+
help
46+
Provides common dependencies for Versatile Express platforms
47+
based on Cortex-A5 and Cortex-A9 processors. In order to
48+
build a working kernel, you must also enable relevant core
49+
tile support or Flattened Device Tree based support options.
50+
51+
config ARCH_VEXPRESS_CA9X4
52+
bool "Versatile Express Cortex-A9x4 tile"
5353

5454
endmenu

‎arch/arm/mach-vexpress/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#
22
# Makefile for the linux kernel.
33
#
4+
ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \
5+
-I$(srctree)/arch/arm/plat-versatile/include
46

57
obj-y := v2m.o
68
obj-$(CONFIG_ARCH_VEXPRESS_CA9X4) += ct-ca9x4.o

‎arch/arm/mach-vexpress/Makefile.boot‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎arch/arm/mach-vexpress/include/mach/timex.h‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎arch/arm/mach-vexpress/include/mach/uncompress.h‎

Lines changed: 0 additions & 86 deletions
This file was deleted.

‎arch/arm/mach-vexpress/v2m.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,6 @@ MACHINE_START(VEXPRESS, "ARM-Versatile Express")
539539
.restart = v2m_restart,
540540
MACHINE_END
541541

542-
#if defined(CONFIG_ARCH_VEXPRESS_DT)
543-
544542
static struct map_desc v2m_rs1_io_desc __initdata = {
545543
.virtual = V2M_PERIPH,
546544
.pfn = __phys_to_pfn(0x1c000000),
@@ -671,5 +669,3 @@ DT_MACHINE_START(VEXPRESS_DT, "ARM-Versatile Express")
671669
.handle_irq = gic_handle_irq,
672670
.restart = v2m_restart,
673671
MACHINE_END
674-
675-
#endif

‎arch/arm/plat-versatile/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include
2+
13
obj-$(CONFIG_PLAT_VERSATILE_CLOCK) += clock.o
24
obj-$(CONFIG_PLAT_VERSATILE_CLCD) += clcd.o
35
obj-$(CONFIG_PLAT_VERSATILE_FPGA_IRQ) += fpga-irq.o

0 commit comments

Comments
 (0)