ARM: OMAP2+: Enable ARCH_MULTIPLATFORM support
authorTony Lindgren <tony@atomide.com>
Fri, 11 Jan 2013 19:24:20 +0000 (11:24 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 11 Jan 2013 19:24:20 +0000 (11:24 -0800)
Flip on multiplatform support for omap2+.

No changes to omap2plus_defconfig needed, but please note
that you may need to update your custom config files to
make sure you have:

CONFIG_ARCH_MULTIPLATFORM=y
CONFIG_ARCH_MULTI_V7=y
CONFIG_ARCH_OMAP2PLUS=y

And may need CONFIG_ARCH_MULTI_V6=y if booting omap2 boards.

Cc: Russell King <linux@arm.linux.org.uk>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/Kconfig
arch/arm/configs/omap2plus_defconfig
arch/arm/mach-omap2/Kconfig
arch/arm/mach-omap2/Makefile
arch/arm/plat-omap/Kconfig
arch/arm/plat-omap/Makefile

index 67874b82a4edf318ae3718ae6137393140405586..a1f8868becc615ba5249a36ef6070d7ac669301d 100644 (file)
@@ -937,17 +937,24 @@ config ARCH_DAVINCI
        help
          Support for TI's DaVinci platform.
 
-config ARCH_OMAP
-       bool "TI OMAP"
+config ARCH_OMAP1
+       bool "TI OMAP1"
        depends on MMU
        select ARCH_HAS_CPUFREQ
        select ARCH_HAS_HOLES_MEMORYMODEL
+       select ARCH_OMAP
        select ARCH_REQUIRE_GPIOLIB
+       select CLKDEV_LOOKUP
        select CLKSRC_MMIO
        select GENERIC_CLOCKEVENTS
+       select GENERIC_IRQ_CHIP
        select HAVE_CLK
+       select HAVE_IDE
+       select IRQ_DOMAIN
+       select NEED_MACH_IO_H if PCCARD
+       select NEED_MACH_MEMORY_H
        help
-         Support for TI's OMAP platform (OMAP1/2/3/4).
+         Support for older TI OMAP1 (omap7xx, omap15xx or omap16xx)
 
 config ARCH_VT8500_SINGLE
        bool "VIA/WonderMedia 85xx"
index 82ce8d738fa1c8a6f4ba730828867de22aa392c3..db057451400381d38c085ba50bd78a40a2bf8e07 100644 (file)
@@ -20,7 +20,7 @@ CONFIG_MODULE_FORCE_UNLOAD=y
 CONFIG_MODVERSIONS=y
 CONFIG_MODULE_SRCVERSION_ALL=y
 # CONFIG_BLK_DEV_BSG is not set
-CONFIG_ARCH_OMAP=y
+CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_OMAP_RESET_CLOCKS=y
 CONFIG_OMAP_MUX_DEBUG=y
 CONFIG_ARM_THUMBEE=y
index 492d76466833a91dbfe16619c9e810d1d9616158..c3c033f283a9998dc0c04e25daa9f58c99d60d62 100644 (file)
@@ -1,3 +1,26 @@
+config ARCH_OMAP
+       bool
+
+config ARCH_OMAP2PLUS
+       bool "TI OMAP2/3/4/5 SoCs with device tree support" if (ARCH_MULTI_V6 || ARCH_MULTI_V7)
+       select ARCH_HAS_CPUFREQ
+       select ARCH_HAS_HOLES_MEMORYMODEL
+       select ARCH_OMAP
+       select ARCH_REQUIRE_GPIOLIB
+       select CLKDEV_LOOKUP
+       select CLKSRC_MMIO
+       select GENERIC_CLOCKEVENTS
+       select GENERIC_IRQ_CHIP
+       select HAVE_CLK
+       select OMAP_DM_TIMER
+       select PINCTRL
+       select PROC_DEVICETREE if PROC_FS
+       select SPARSE_IRQ
+       select USE_OF
+       help
+         Systems based on OMAP2, OMAP3, OMAP4 or OMAP5
+
+
 if ARCH_OMAP2PLUS
 
 menu "TI OMAP2/3/4 Specific Features"
index 947cafe65aefda11f9e00a43c8758807d1229f96..65fb6fb38caf8574f177aa3827b31d62153bea95 100644 (file)
@@ -2,6 +2,9 @@
 # Makefile for the linux kernel.
 #
 
+ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \
+       -I$(srctree)/arch/arm/plat-omap/include
+
 # Common support
 obj-y := id.o io.o control.o mux.o devices.o fb.o serial.o gpmc.o timer.o pm.o \
         common.o gpio.o dma.o wd_timer.o display.o i2c.o hdq1w.o omap_hwmod.o \
index 03f12525913ec6ee48a8d554986c81504ac40e63..67c859cf16bcb3d7306ca0e348ceaa55017422a4 100644 (file)
@@ -5,36 +5,6 @@ menu "TI OMAP Common Features"
 config ARCH_OMAP_OTG
        bool
 
-choice
-       prompt "OMAP System Type"
-       default ARCH_OMAP2PLUS
-
-config ARCH_OMAP1
-       bool "TI OMAP1"
-       select CLKDEV_LOOKUP
-       select CLKSRC_MMIO
-       select GENERIC_IRQ_CHIP
-       select HAVE_IDE
-       select IRQ_DOMAIN
-       select NEED_MACH_IO_H if PCCARD
-       select NEED_MACH_MEMORY_H
-       help
-         "Systems based on omap7xx, omap15xx or omap16xx"
-
-config ARCH_OMAP2PLUS
-       bool "TI OMAP2/3/4"
-       select CLKDEV_LOOKUP
-       select GENERIC_IRQ_CHIP
-       select OMAP_DM_TIMER
-       select PINCTRL
-       select PROC_DEVICETREE if PROC_FS
-       select SPARSE_IRQ
-       select USE_OF
-       help
-         "Systems based on OMAP2, OMAP3, OMAP4 or OMAP5"
-
-endchoice
-
 comment "OMAP Feature Selections"
 
 config OMAP_DEBUG_DEVICES
index a14a78a2f149fa76e0167af8ec420c8152fe744f..31199417b56a790a6e0633e5b9f823e659c335d1 100644 (file)
@@ -2,6 +2,8 @@
 # Makefile for the linux kernel.
 #
 
+ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/arch/arm/plat-omap/include
+
 # Common support
 obj-y := sram.o dma.o counter_32k.o
 obj-m :=