diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 18:20:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 18:20:41 -0500 |
commit | 3298a3511f1e73255a8dc023efd909e569eea037 (patch) | |
tree | 2d8e9bdb9e398049e3876b99fbb4d51099a45cc3 /arch/arm/plat-omap | |
parent | 5ce7aba976ebdfbf467e3cbcd3a7536ebdec4b11 (diff) | |
parent | acb7452369e4f8749dd32d48dbda98936035a87c (diff) |
Merge tag 'multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC multiplatform support from Arnd Bergmann:
"Converting more ARM platforms to multiplatform support. This time,
OMAP gets converted, which is a major step since this is by far the
largest platform in terms of code size. The same thing happens to the
vt8500 platform."
* tag 'multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
net: cwdavinci_cpdma: export symbols for cpsw
remoteproc: omap: depend on OMAP_MBOX_FWK
[media] davinci: do not include mach/hardware.h
ARM: OMAP2+: Make sure files with omap initcalls include soc.h
ARM: OMAP2+: Include soc.h to drm.c to fix compiling
ARM: OMAP2+: Fix warning for hwspinlock omap_postcore_initcall
ARM: multi_v7_defconfig: add ARCH_ZYNQ
ARM: multi_v7_defconfig: remove unnecessary CONFIG_GPIOLIB
arm: vt8500: Remove remaining mach includes
arm: vt8500: Convert debug-macro.S to be multiplatform friendly
arm: vt8500: Remove single platform Kconfig options
ARM: OMAP2+: Remove now obsolete uncompress.h and debug-macro.S
ARM: OMAP2+: Add minimal support for booting vexpress
ARM: OMAP2+: Enable ARCH_MULTIPLATFORM support
ARM: OMAP2+: Disable code that currently does not work with multiplaform
ARM: OMAP2+: Add multiplatform debug_ll support
ARM: OMAP: Fix dmaengine init for multiplatform
ARM: OMAP: Fix i2c cmdline initcall for multiplatform
ARM: OMAP2+: Use omap initcalls
ARM: OMAP2+: Limit omap initcalls to omap only on multiplatform kernels
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/Kconfig | 32 | ||||
-rw-r--r-- | arch/arm/plat-omap/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/i2c.c | 3 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/i2c.h | 6 |
4 files changed, 10 insertions, 33 deletions
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig index 665870dce3c8..67c859cf16bc 100644 --- a/arch/arm/plat-omap/Kconfig +++ b/arch/arm/plat-omap/Kconfig | |||
@@ -5,36 +5,6 @@ menu "TI OMAP Common Features" | |||
5 | config ARCH_OMAP_OTG | 5 | config ARCH_OMAP_OTG |
6 | bool | 6 | bool |
7 | 7 | ||
8 | choice | ||
9 | prompt "OMAP System Type" | ||
10 | default ARCH_OMAP2PLUS | ||
11 | |||
12 | config ARCH_OMAP1 | ||
13 | bool "TI OMAP1" | ||
14 | select CLKDEV_LOOKUP | ||
15 | select CLKSRC_MMIO | ||
16 | select GENERIC_IRQ_CHIP | ||
17 | select HAVE_IDE | ||
18 | select IRQ_DOMAIN | ||
19 | select NEED_MACH_IO_H if PCCARD | ||
20 | select NEED_MACH_MEMORY_H | ||
21 | help | ||
22 | "Systems based on omap7xx, omap15xx or omap16xx" | ||
23 | |||
24 | config ARCH_OMAP2PLUS | ||
25 | bool "TI OMAP2/3/4" | ||
26 | select CLKDEV_LOOKUP | ||
27 | select GENERIC_IRQ_CHIP | ||
28 | select OMAP_DM_TIMER | ||
29 | select PINCTRL | ||
30 | select PROC_DEVICETREE if PROC_FS | ||
31 | select SPARSE_IRQ | ||
32 | select USE_OF | ||
33 | help | ||
34 | "Systems based on OMAP2, OMAP3, OMAP4 or OMAP5" | ||
35 | |||
36 | endchoice | ||
37 | |||
38 | comment "OMAP Feature Selections" | 8 | comment "OMAP Feature Selections" |
39 | 9 | ||
40 | config OMAP_DEBUG_DEVICES | 10 | config OMAP_DEBUG_DEVICES |
@@ -118,7 +88,7 @@ config OMAP_MUX_WARNINGS | |||
118 | 88 | ||
119 | config OMAP_MBOX_FWK | 89 | config OMAP_MBOX_FWK |
120 | tristate "Mailbox framework support" | 90 | tristate "Mailbox framework support" |
121 | depends on ARCH_OMAP | 91 | depends on ARCH_OMAP && !ARCH_MULTIPLATFORM |
122 | help | 92 | help |
123 | Say Y here if you want to use OMAP Mailbox framework support for | 93 | Say Y here if you want to use OMAP Mailbox framework support for |
124 | DSP, IVA1.0 and IVA2 in OMAP1/2/3. | 94 | DSP, IVA1.0 and IVA2 in OMAP1/2/3. |
diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile index a14a78a2f149..31199417b56a 100644 --- a/arch/arm/plat-omap/Makefile +++ b/arch/arm/plat-omap/Makefile | |||
@@ -2,6 +2,8 @@ | |||
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | 4 | ||
5 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/arch/arm/plat-omap/include | ||
6 | |||
5 | # Common support | 7 | # Common support |
6 | obj-y := sram.o dma.o counter_32k.o | 8 | obj-y := sram.o dma.o counter_32k.o |
7 | obj-m := | 9 | obj-m := |
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index f9df624d108c..58213d9714cd 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c | |||
@@ -68,7 +68,7 @@ __setup("i2c_bus=", omap_i2c_bus_setup); | |||
68 | * Register busses defined in command line but that are not registered with | 68 | * Register busses defined in command line but that are not registered with |
69 | * omap_register_i2c_bus from board initialization code. | 69 | * omap_register_i2c_bus from board initialization code. |
70 | */ | 70 | */ |
71 | static int __init omap_register_i2c_bus_cmdline(void) | 71 | int __init omap_register_i2c_bus_cmdline(void) |
72 | { | 72 | { |
73 | int i, err = 0; | 73 | int i, err = 0; |
74 | 74 | ||
@@ -83,7 +83,6 @@ static int __init omap_register_i2c_bus_cmdline(void) | |||
83 | out: | 83 | out: |
84 | return err; | 84 | return err; |
85 | } | 85 | } |
86 | subsys_initcall(omap_register_i2c_bus_cmdline); | ||
87 | 86 | ||
88 | /** | 87 | /** |
89 | * omap_register_i2c_bus - register I2C bus with device descriptors | 88 | * omap_register_i2c_bus - register I2C bus with device descriptors |
diff --git a/arch/arm/plat-omap/include/plat/i2c.h b/arch/arm/plat-omap/include/plat/i2c.h index 7a9028cb5a75..810629d79668 100644 --- a/arch/arm/plat-omap/include/plat/i2c.h +++ b/arch/arm/plat-omap/include/plat/i2c.h | |||
@@ -32,6 +32,7 @@ int omap_i2c_add_bus(struct omap_i2c_bus_platform_data *i2c_pdata, | |||
32 | extern int omap_register_i2c_bus(int bus_id, u32 clkrate, | 32 | extern int omap_register_i2c_bus(int bus_id, u32 clkrate, |
33 | struct i2c_board_info const *info, | 33 | struct i2c_board_info const *info, |
34 | unsigned len); | 34 | unsigned len); |
35 | extern int omap_register_i2c_bus_cmdline(void); | ||
35 | #else | 36 | #else |
36 | static inline int omap_register_i2c_bus(int bus_id, u32 clkrate, | 37 | static inline int omap_register_i2c_bus(int bus_id, u32 clkrate, |
37 | struct i2c_board_info const *info, | 38 | struct i2c_board_info const *info, |
@@ -39,6 +40,11 @@ static inline int omap_register_i2c_bus(int bus_id, u32 clkrate, | |||
39 | { | 40 | { |
40 | return 0; | 41 | return 0; |
41 | } | 42 | } |
43 | |||
44 | static inline int omap_register_i2c_bus_cmdline(void) | ||
45 | { | ||
46 | return 0; | ||
47 | } | ||
42 | #endif | 48 | #endif |
43 | 49 | ||
44 | struct omap_hwmod; | 50 | struct omap_hwmod; |