diff options
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; |