Skip to content

Commit

Permalink
ARM: vexpress: convert to multi-platform
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring committed Sep 14, 2012
1 parent 387798b commit 6172763
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 168 deletions.
19 changes: 1 addition & 18 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -319,24 +319,6 @@ config ARCH_VERSATILE
help
This enables support for ARM Ltd Versatile board.

config ARCH_VEXPRESS
bool "ARM Ltd. Versatile Express family"
select ARCH_WANT_OPTIONAL_GPIOLIB
select ARM_AMBA
select ARM_TIMER_SP804
select CLKDEV_LOOKUP
select COMMON_CLK
select GENERIC_CLOCKEVENTS
select HAVE_CLK
select HAVE_PATA_PLATFORM
select ICST
select NO_IOPORT
select PLAT_VERSATILE
select PLAT_VERSATILE_CLCD
select REGULATOR_FIXED_VOLTAGE if REGULATOR
help
This enables support for the ARM Ltd Versatile Express boards.

config ARCH_AT91
bool "Atmel AT91"
select ARCH_REQUIRE_GPIOLIB
Expand Down Expand Up @@ -1016,6 +998,7 @@ config ARCH_MULTI_V6
config ARCH_MULTI_V7
bool "ARMv7 based platforms (Cortex-A, PJ4, Krait)"
select CPU_V7
select ARCH_VEXPRESS
default y
select ARCH_MULTI_V6_V7

Expand Down
64 changes: 32 additions & 32 deletions arch/arm/mach-vexpress/Kconfig
Original file line number Diff line number Diff line change
@@ -1,38 +1,23 @@
menu "Versatile Express platform type"
depends on ARCH_VEXPRESS

config ARCH_VEXPRESS_CORTEX_A5_A9_ERRATA
bool "Enable A5 and A9 only errata work-arounds"
default y
select ARM_ERRATA_720789
select ARM_ERRATA_751472
select PL310_ERRATA_753970 if CACHE_PL310
help
Provides common dependencies for Versatile Express platforms
based on Cortex-A5 and Cortex-A9 processors. In order to
build a working kernel, you must also enable relevant core
tile support or Flattened Device Tree based support options.

config ARCH_VEXPRESS_CA9X4
bool "Versatile Express Cortex-A9x4 tile"
select ARM_GIC
select CPU_V7
select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0

config ARCH_VEXPRESS_DT
bool "Device Tree support for Versatile Express platforms"
config ARCH_VEXPRESS
bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7
select ARCH_WANT_OPTIONAL_GPIOLIB
select ARM_AMBA
select ARM_GIC
select ARM_PATCH_PHYS_VIRT
select AUTO_ZRELADDR
select ARM_TIMER_SP804
select CLKDEV_LOOKUP
select COMMON_CLK
select CPU_V7
select GENERIC_CLOCKEVENTS
select HAVE_CLK
select HAVE_PATA_PLATFORM
select HAVE_SMP
select ICST
select MIGHT_HAVE_CACHE_L2X0
select USE_OF
select NO_IOPORT
select PLAT_VERSATILE
select PLAT_VERSATILE_CLCD
select REGULATOR_FIXED_VOLTAGE if REGULATOR
help
New Versatile Express platforms require Flattened Device Tree to
be passed to the kernel.

This option enables support for systems using Cortex processor based
ARM core and logic (FPGA) tiles on the Versatile Express motherboard,
for example:
Expand All @@ -48,7 +33,22 @@ config ARCH_VEXPRESS_DT
platforms. The traditional (ATAGs) boot method is not usable on
these boards with this option.

If your bootloader supports Flattened Device Tree based booting,
say Y here.
menu "Versatile Express platform type"
depends on ARCH_VEXPRESS

config ARCH_VEXPRESS_CORTEX_A5_A9_ERRATA
bool "Enable A5 and A9 only errata work-arounds"
default y
select ARM_ERRATA_720789
select ARM_ERRATA_751472
select PL310_ERRATA_753970 if CACHE_PL310
help
Provides common dependencies for Versatile Express platforms
based on Cortex-A5 and Cortex-A9 processors. In order to
build a working kernel, you must also enable relevant core
tile support or Flattened Device Tree based support options.

config ARCH_VEXPRESS_CA9X4
bool "Versatile Express Cortex-A9x4 tile"

endmenu
2 changes: 2 additions & 0 deletions arch/arm/mach-vexpress/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#
# Makefile for the linux kernel.
#
ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \
-I$(srctree)/arch/arm/plat-versatile/include

obj-y := v2m.o
obj-$(CONFIG_ARCH_VEXPRESS_CA9X4) += ct-ca9x4.o
Expand Down
5 changes: 0 additions & 5 deletions arch/arm/mach-vexpress/Makefile.boot

This file was deleted.

23 changes: 0 additions & 23 deletions arch/arm/mach-vexpress/include/mach/timex.h

This file was deleted.

86 changes: 0 additions & 86 deletions arch/arm/mach-vexpress/include/mach/uncompress.h

This file was deleted.

4 changes: 0 additions & 4 deletions arch/arm/mach-vexpress/v2m.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,6 @@ MACHINE_START(VEXPRESS, "ARM-Versatile Express")
.restart = v2m_restart,
MACHINE_END

#if defined(CONFIG_ARCH_VEXPRESS_DT)

static struct map_desc v2m_rs1_io_desc __initdata = {
.virtual = V2M_PERIPH,
.pfn = __phys_to_pfn(0x1c000000),
Expand Down Expand Up @@ -671,5 +669,3 @@ DT_MACHINE_START(VEXPRESS_DT, "ARM-Versatile Express")
.handle_irq = gic_handle_irq,
.restart = v2m_restart,
MACHINE_END

#endif
2 changes: 2 additions & 0 deletions arch/arm/plat-versatile/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include

obj-$(CONFIG_PLAT_VERSATILE_CLOCK) += clock.o
obj-$(CONFIG_PLAT_VERSATILE_CLCD) += clcd.o
obj-$(CONFIG_PLAT_VERSATILE_FPGA_IRQ) += fpga-irq.o
Expand Down

0 comments on commit 6172763

Please sign in to comment.