aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r--arch/arm/plat-omap/clock.c3
-rw-r--r--arch/arm/plat-omap/common.c2
-rw-r--r--arch/arm/plat-omap/cpu-omap.c2
-rw-r--r--arch/arm/plat-omap/debug-devices.c2
-rw-r--r--arch/arm/plat-omap/debug-leds.c2
-rw-r--r--arch/arm/plat-omap/devices.c125
-rw-r--r--arch/arm/plat-omap/dmtimer.c2
-rw-r--r--arch/arm/plat-omap/fb.c2
-rw-r--r--arch/arm/plat-omap/gpio.c8
-rw-r--r--arch/arm/plat-omap/include/mach/gpio.h2
-rw-r--r--arch/arm/plat-omap/include/mach/irqs.h2
-rw-r--r--arch/arm/plat-omap/mailbox.c2
-rw-r--r--arch/arm/plat-omap/mux.c2
-rw-r--r--arch/arm/plat-omap/ocpi.c2
-rw-r--r--arch/arm/plat-omap/sram.c2
-rw-r--r--arch/arm/plat-omap/usb.c2
16 files changed, 109 insertions, 53 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index 197974defbe4..bf6a10c5fc4f 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -22,8 +22,7 @@
22#include <linux/platform_device.h> 22#include <linux/platform_device.h>
23#include <linux/cpufreq.h> 23#include <linux/cpufreq.h>
24#include <linux/debugfs.h> 24#include <linux/debugfs.h>
25 25#include <linux/io.h>
26#include <asm/io.h>
27 26
28#include <mach/clock.h> 27#include <mach/clock.h>
29 28
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c
index e3143fe9cb29..0843b8882f93 100644
--- a/arch/arm/plat-omap/common.c
+++ b/arch/arm/plat-omap/common.c
@@ -18,12 +18,12 @@
18#include <linux/serial_8250.h> 18#include <linux/serial_8250.h>
19#include <linux/serial_reg.h> 19#include <linux/serial_reg.h>
20#include <linux/clk.h> 20#include <linux/clk.h>
21#include <linux/io.h>
21 22
22#include <mach/hardware.h> 23#include <mach/hardware.h>
23#include <asm/system.h> 24#include <asm/system.h>
24#include <asm/pgtable.h> 25#include <asm/pgtable.h>
25#include <asm/mach/map.h> 26#include <asm/mach/map.h>
26#include <asm/io.h>
27#include <asm/setup.h> 27#include <asm/setup.h>
28 28
29#include <mach/common.h> 29#include <mach/common.h>
diff --git a/arch/arm/plat-omap/cpu-omap.c b/arch/arm/plat-omap/cpu-omap.c
index ae1de308aaad..b2690242a390 100644
--- a/arch/arm/plat-omap/cpu-omap.c
+++ b/arch/arm/plat-omap/cpu-omap.c
@@ -20,9 +20,9 @@
20#include <linux/init.h> 20#include <linux/init.h>
21#include <linux/err.h> 21#include <linux/err.h>
22#include <linux/clk.h> 22#include <linux/clk.h>
23#include <linux/io.h>
23 24
24#include <mach/hardware.h> 25#include <mach/hardware.h>
25#include <asm/io.h>
26#include <asm/system.h> 26#include <asm/system.h>
27 27
28#define VERY_HI_RATE 900000000 28#define VERY_HI_RATE 900000000
diff --git a/arch/arm/plat-omap/debug-devices.c b/arch/arm/plat-omap/debug-devices.c
index 5b73bb274452..e31154b15d9e 100644
--- a/arch/arm/plat-omap/debug-devices.c
+++ b/arch/arm/plat-omap/debug-devices.c
@@ -12,9 +12,9 @@
12#include <linux/kernel.h> 12#include <linux/kernel.h>
13#include <linux/init.h> 13#include <linux/init.h>
14#include <linux/platform_device.h> 14#include <linux/platform_device.h>
15#include <linux/io.h>
15 16
16#include <mach/hardware.h> 17#include <mach/hardware.h>
17#include <asm/io.h>
18 18
19#include <mach/board.h> 19#include <mach/board.h>
20#include <mach/gpio.h> 20#include <mach/gpio.h>
diff --git a/arch/arm/plat-omap/debug-leds.c b/arch/arm/plat-omap/debug-leds.c
index 9422dee7de84..2f4c0cabfd34 100644
--- a/arch/arm/plat-omap/debug-leds.c
+++ b/arch/arm/plat-omap/debug-leds.c
@@ -11,8 +11,8 @@
11#include <linux/init.h> 11#include <linux/init.h>
12#include <linux/platform_device.h> 12#include <linux/platform_device.h>
13#include <linux/leds.h> 13#include <linux/leds.h>
14#include <linux/io.h>
14 15
15#include <asm/io.h>
16#include <mach/hardware.h> 16#include <mach/hardware.h>
17#include <asm/leds.h> 17#include <asm/leds.h>
18#include <asm/system.h> 18#include <asm/system.h>
diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c
index 6467f57a2ac1..25232b281e1e 100644
--- a/arch/arm/plat-omap/devices.c
+++ b/arch/arm/plat-omap/devices.c
@@ -13,15 +13,16 @@
13#include <linux/kernel.h> 13#include <linux/kernel.h>
14#include <linux/init.h> 14#include <linux/init.h>
15#include <linux/platform_device.h> 15#include <linux/platform_device.h>
16#include <linux/io.h>
16 17
17#include <mach/hardware.h> 18#include <mach/hardware.h>
18#include <asm/io.h>
19#include <asm/mach-types.h> 19#include <asm/mach-types.h>
20#include <asm/mach/map.h> 20#include <asm/mach/map.h>
21 21
22#include <mach/tc.h> 22#include <mach/tc.h>
23#include <mach/control.h> 23#include <mach/control.h>
24#include <mach/board.h> 24#include <mach/board.h>
25#include <mach/mmc.h>
25#include <mach/mux.h> 26#include <mach/mux.h>
26#include <mach/gpio.h> 27#include <mach/gpio.h>
27#include <mach/menelaus.h> 28#include <mach/menelaus.h>
@@ -191,25 +192,38 @@ void omap_mcbsp_register_board_cfg(struct omap_mcbsp_platform_data *config,
191 192
192/*-------------------------------------------------------------------------*/ 193/*-------------------------------------------------------------------------*/
193 194
194#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) 195#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) || \
196 defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
195 197
196#ifdef CONFIG_ARCH_OMAP24XX 198#if defined(CONFIG_ARCH_OMAP24XX) || defined(CONFIG_ARCH_OMAP34XX)
197#define OMAP_MMC1_BASE 0x4809c000 199#define OMAP_MMC1_BASE 0x4809c000
198#define OMAP_MMC1_INT INT_24XX_MMC_IRQ 200#define OMAP_MMC1_END (OMAP_MMC1_BASE + 0x1fc)
201#define OMAP_MMC1_INT INT_24XX_MMC_IRQ
202
203#define OMAP_MMC2_BASE 0x480b4000
204#define OMAP_MMC2_END (OMAP_MMC2_BASE + 0x1fc)
205#define OMAP_MMC2_INT INT_24XX_MMC2_IRQ
206
199#else 207#else
208
200#define OMAP_MMC1_BASE 0xfffb7800 209#define OMAP_MMC1_BASE 0xfffb7800
210#define OMAP_MMC1_END (OMAP_MMC1_BASE + 0x7f)
201#define OMAP_MMC1_INT INT_MMC 211#define OMAP_MMC1_INT INT_MMC
202#endif 212
203#define OMAP_MMC2_BASE 0xfffb7c00 /* omap16xx only */ 213#define OMAP_MMC2_BASE 0xfffb7c00 /* omap16xx only */
214#define OMAP_MMC2_END (OMAP_MMC2_BASE + 0x7f)
215#define OMAP_MMC2_INT INT_1610_MMC2
204 216
205static struct omap_mmc_conf mmc1_conf; 217#endif
218
219static struct omap_mmc_platform_data mmc1_data;
206 220
207static u64 mmc1_dmamask = 0xffffffff; 221static u64 mmc1_dmamask = 0xffffffff;
208 222
209static struct resource mmc1_resources[] = { 223static struct resource mmc1_resources[] = {
210 { 224 {
211 .start = OMAP_MMC1_BASE, 225 .start = OMAP_MMC1_BASE,
212 .end = OMAP_MMC1_BASE + 0x7f, 226 .end = OMAP_MMC1_END,
213 .flags = IORESOURCE_MEM, 227 .flags = IORESOURCE_MEM,
214 }, 228 },
215 { 229 {
@@ -223,26 +237,27 @@ static struct platform_device mmc_omap_device1 = {
223 .id = 1, 237 .id = 1,
224 .dev = { 238 .dev = {
225 .dma_mask = &mmc1_dmamask, 239 .dma_mask = &mmc1_dmamask,
226 .platform_data = &mmc1_conf, 240 .platform_data = &mmc1_data,
227 }, 241 },
228 .num_resources = ARRAY_SIZE(mmc1_resources), 242 .num_resources = ARRAY_SIZE(mmc1_resources),
229 .resource = mmc1_resources, 243 .resource = mmc1_resources,
230}; 244};
231 245
232#ifdef CONFIG_ARCH_OMAP16XX 246#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2430) || \
247 defined(CONFIG_ARCH_OMAP34XX)
233 248
234static struct omap_mmc_conf mmc2_conf; 249static struct omap_mmc_platform_data mmc2_data;
235 250
236static u64 mmc2_dmamask = 0xffffffff; 251static u64 mmc2_dmamask = 0xffffffff;
237 252
238static struct resource mmc2_resources[] = { 253static struct resource mmc2_resources[] = {
239 { 254 {
240 .start = OMAP_MMC2_BASE, 255 .start = OMAP_MMC2_BASE,
241 .end = OMAP_MMC2_BASE + 0x7f, 256 .end = OMAP_MMC2_END,
242 .flags = IORESOURCE_MEM, 257 .flags = IORESOURCE_MEM,
243 }, 258 },
244 { 259 {
245 .start = INT_1610_MMC2, 260 .start = OMAP_MMC2_INT,
246 .flags = IORESOURCE_IRQ, 261 .flags = IORESOURCE_IRQ,
247 }, 262 },
248}; 263};
@@ -252,26 +267,19 @@ static struct platform_device mmc_omap_device2 = {
252 .id = 2, 267 .id = 2,
253 .dev = { 268 .dev = {
254 .dma_mask = &mmc2_dmamask, 269 .dma_mask = &mmc2_dmamask,
255 .platform_data = &mmc2_conf, 270 .platform_data = &mmc2_data,
256 }, 271 },
257 .num_resources = ARRAY_SIZE(mmc2_resources), 272 .num_resources = ARRAY_SIZE(mmc2_resources),
258 .resource = mmc2_resources, 273 .resource = mmc2_resources,
259}; 274};
260#endif 275#endif
261 276
262static void __init omap_init_mmc(void) 277static inline void omap_init_mmc_conf(const struct omap_mmc_config *mmc_conf)
263{ 278{
264 const struct omap_mmc_config *mmc_conf; 279 if (cpu_is_omap2430() || cpu_is_omap34xx())
265 const struct omap_mmc_conf *mmc;
266
267 /* NOTE: assumes MMC was never (wrongly) enabled */
268 mmc_conf = omap_get_config(OMAP_TAG_MMC, struct omap_mmc_config);
269 if (!mmc_conf)
270 return; 280 return;
271 281
272 /* block 1 is always available and has just one pinout option */ 282 if (mmc_conf->mmc[0].enabled) {
273 mmc = &mmc_conf->mmc[0];
274 if (mmc->enabled) {
275 if (cpu_is_omap24xx()) { 283 if (cpu_is_omap24xx()) {
276 omap_cfg_reg(H18_24XX_MMC_CMD); 284 omap_cfg_reg(H18_24XX_MMC_CMD);
277 omap_cfg_reg(H15_24XX_MMC_CLKI); 285 omap_cfg_reg(H15_24XX_MMC_CLKI);
@@ -289,7 +297,7 @@ static void __init omap_init_mmc(void)
289 omap_cfg_reg(P20_1710_MMC_DATDIR0); 297 omap_cfg_reg(P20_1710_MMC_DATDIR0);
290 } 298 }
291 } 299 }
292 if (mmc->wire4) { 300 if (mmc_conf->mmc[0].wire4) {
293 if (cpu_is_omap24xx()) { 301 if (cpu_is_omap24xx()) {
294 omap_cfg_reg(H14_24XX_MMC_DAT1); 302 omap_cfg_reg(H14_24XX_MMC_DAT1);
295 omap_cfg_reg(E19_24XX_MMC_DAT2); 303 omap_cfg_reg(E19_24XX_MMC_DAT2);
@@ -300,25 +308,35 @@ static void __init omap_init_mmc(void)
300 } else { 308 } else {
301 omap_cfg_reg(MMC_DAT1); 309 omap_cfg_reg(MMC_DAT1);
302 /* NOTE: DAT2 can be on W10 (here) or M15 */ 310 /* NOTE: DAT2 can be on W10 (here) or M15 */
303 if (!mmc->nomux) 311 if (!mmc_conf->mmc[0].nomux)
304 omap_cfg_reg(MMC_DAT2); 312 omap_cfg_reg(MMC_DAT2);
305 omap_cfg_reg(MMC_DAT3); 313 omap_cfg_reg(MMC_DAT3);
306 } 314 }
307 } 315 }
308 mmc1_conf = *mmc; 316#if defined(CONFIG_ARCH_OMAP2420)
309 (void) platform_device_register(&mmc_omap_device1); 317 if (mmc_conf->mmc[0].internal_clock) {
318 /*
319 * Use internal loop-back in MMC/SDIO
320 * Module Input Clock selection
321 */
322 if (cpu_is_omap24xx()) {
323 u32 v = omap_ctrl_readl(OMAP2_CONTROL_DEVCONF0);
324 v |= (1 << 24); /* not used in 243x */
325 omap_ctrl_writel(v, OMAP2_CONTROL_DEVCONF0);
326 }
327 }
328#endif
310 } 329 }
311 330
312#ifdef CONFIG_ARCH_OMAP16XX 331#ifdef CONFIG_ARCH_OMAP16XX
313 /* block 2 is on newer chips, and has many pinout options */ 332 /* block 2 is on newer chips, and has many pinout options */
314 mmc = &mmc_conf->mmc[1]; 333 if (mmc_conf->mmc[1].enabled) {
315 if (mmc->enabled) { 334 if (!mmc_conf->mmc[1].nomux) {
316 if (!mmc->nomux) {
317 omap_cfg_reg(Y8_1610_MMC2_CMD); 335 omap_cfg_reg(Y8_1610_MMC2_CMD);
318 omap_cfg_reg(Y10_1610_MMC2_CLK); 336 omap_cfg_reg(Y10_1610_MMC2_CLK);
319 omap_cfg_reg(R18_1610_MMC2_CLKIN); 337 omap_cfg_reg(R18_1610_MMC2_CLKIN);
320 omap_cfg_reg(W8_1610_MMC2_DAT0); 338 omap_cfg_reg(W8_1610_MMC2_DAT0);
321 if (mmc->wire4) { 339 if (mmc_conf->mmc[1].wire4) {
322 omap_cfg_reg(V8_1610_MMC2_DAT1); 340 omap_cfg_reg(V8_1610_MMC2_DAT1);
323 omap_cfg_reg(W15_1610_MMC2_DAT2); 341 omap_cfg_reg(W15_1610_MMC2_DAT2);
324 omap_cfg_reg(R10_1610_MMC2_DAT3); 342 omap_cfg_reg(R10_1610_MMC2_DAT3);
@@ -334,14 +352,55 @@ static void __init omap_init_mmc(void)
334 if (cpu_is_omap1710()) 352 if (cpu_is_omap1710())
335 omap_writel(omap_readl(MOD_CONF_CTRL_1) | (1 << 24), 353 omap_writel(omap_readl(MOD_CONF_CTRL_1) | (1 << 24),
336 MOD_CONF_CTRL_1); 354 MOD_CONF_CTRL_1);
337 mmc2_conf = *mmc; 355 }
356#endif
357}
358
359static void __init omap_init_mmc(void)
360{
361 const struct omap_mmc_config *mmc_conf;
362
363 /* NOTE: assumes MMC was never (wrongly) enabled */
364 mmc_conf = omap_get_config(OMAP_TAG_MMC, struct omap_mmc_config);
365 if (!mmc_conf)
366 return;
367
368 omap_init_mmc_conf(mmc_conf);
369
370 if (mmc_conf->mmc[0].enabled) {
371 mmc1_data.conf = mmc_conf->mmc[0];
372 (void) platform_device_register(&mmc_omap_device1);
373 }
374
375#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2430) || \
376 defined(CONFIG_ARCH_OMAP34XX)
377 if (mmc_conf->mmc[1].enabled) {
378 mmc2_data.conf = mmc_conf->mmc[1];
338 (void) platform_device_register(&mmc_omap_device2); 379 (void) platform_device_register(&mmc_omap_device2);
339 } 380 }
340#endif 381#endif
341 return;
342} 382}
383
384void omap_set_mmc_info(int host, const struct omap_mmc_platform_data *info)
385{
386 switch (host) {
387 case 1:
388 mmc1_data = *info;
389 break;
390#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP2430) || \
391 defined(CONFIG_ARCH_OMAP34XX)
392 case 2:
393 mmc2_data = *info;
394 break;
395#endif
396 default:
397 BUG();
398 }
399}
400
343#else 401#else
344static inline void omap_init_mmc(void) {} 402static inline void omap_init_mmc(void) {}
403void omap_set_mmc_info(int host, const struct omap_mmc_platform_data *info) {}
345#endif 404#endif
346 405
347/*-------------------------------------------------------------------------*/ 406/*-------------------------------------------------------------------------*/
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index df61ad247dc2..963c31cd1541 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -32,9 +32,9 @@
32#include <linux/list.h> 32#include <linux/list.h>
33#include <linux/clk.h> 33#include <linux/clk.h>
34#include <linux/delay.h> 34#include <linux/delay.h>
35#include <linux/io.h>
35#include <mach/hardware.h> 36#include <mach/hardware.h>
36#include <mach/dmtimer.h> 37#include <mach/dmtimer.h>
37#include <asm/io.h>
38#include <mach/irqs.h> 38#include <mach/irqs.h>
39 39
40/* register offsets */ 40/* register offsets */
diff --git a/arch/arm/plat-omap/fb.c b/arch/arm/plat-omap/fb.c
index 17a92a31e746..ce6b4baeedec 100644
--- a/arch/arm/plat-omap/fb.c
+++ b/arch/arm/plat-omap/fb.c
@@ -27,9 +27,9 @@
27#include <linux/init.h> 27#include <linux/init.h>
28#include <linux/platform_device.h> 28#include <linux/platform_device.h>
29#include <linux/bootmem.h> 29#include <linux/bootmem.h>
30#include <linux/io.h>
30 31
31#include <mach/hardware.h> 32#include <mach/hardware.h>
32#include <asm/io.h>
33#include <asm/mach/map.h> 33#include <asm/mach/map.h>
34 34
35#include <mach/board.h> 35#include <mach/board.h>
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
index 5de70d650922..8679fbca6bbe 100644
--- a/arch/arm/plat-omap/gpio.c
+++ b/arch/arm/plat-omap/gpio.c
@@ -17,6 +17,7 @@
17#include <linux/sysdev.h> 17#include <linux/sysdev.h>
18#include <linux/err.h> 18#include <linux/err.h>
19#include <linux/clk.h> 19#include <linux/clk.h>
20#include <linux/io.h>
20 21
21#include <mach/hardware.h> 22#include <mach/hardware.h>
22#include <asm/irq.h> 23#include <asm/irq.h>
@@ -24,8 +25,6 @@
24#include <mach/gpio.h> 25#include <mach/gpio.h>
25#include <asm/mach/irq.h> 26#include <asm/mach/irq.h>
26 27
27#include <asm/io.h>
28
29/* 28/*
30 * OMAP1510 GPIO registers 29 * OMAP1510 GPIO registers
31 */ 30 */
@@ -1052,13 +1051,10 @@ static void gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
1052 1051
1053 gpio_irq = bank->virtual_irq_start; 1052 gpio_irq = bank->virtual_irq_start;
1054 for (; isr != 0; isr >>= 1, gpio_irq++) { 1053 for (; isr != 0; isr >>= 1, gpio_irq++) {
1055 struct irq_desc *d;
1056
1057 if (!(isr & 1)) 1054 if (!(isr & 1))
1058 continue; 1055 continue;
1059 d = irq_desc + gpio_irq;
1060 1056
1061 desc_handle_irq(gpio_irq, d); 1057 generic_handle_irq(gpio_irq);
1062 } 1058 }
1063 } 1059 }
1064 /* if bank has any level sensitive GPIO pin interrupt 1060 /* if bank has any level sensitive GPIO pin interrupt
diff --git a/arch/arm/plat-omap/include/mach/gpio.h b/arch/arm/plat-omap/include/mach/gpio.h
index 5bb7460cabc4..98e9008b7e9d 100644
--- a/arch/arm/plat-omap/include/mach/gpio.h
+++ b/arch/arm/plat-omap/include/mach/gpio.h
@@ -26,8 +26,8 @@
26#ifndef __ASM_ARCH_OMAP_GPIO_H 26#ifndef __ASM_ARCH_OMAP_GPIO_H
27#define __ASM_ARCH_OMAP_GPIO_H 27#define __ASM_ARCH_OMAP_GPIO_H
28 28
29#include <linux/io.h>
29#include <mach/irqs.h> 30#include <mach/irqs.h>
30#include <asm/io.h>
31 31
32#define OMAP_MPUIO_BASE 0xfffb5000 32#define OMAP_MPUIO_BASE 0xfffb5000
33 33
diff --git a/arch/arm/plat-omap/include/mach/irqs.h b/arch/arm/plat-omap/include/mach/irqs.h
index ed1c1253b666..a2929ac8c687 100644
--- a/arch/arm/plat-omap/include/mach/irqs.h
+++ b/arch/arm/plat-omap/include/mach/irqs.h
@@ -339,6 +339,8 @@
339#define INT_34XX_MMC3_IRQ 94 339#define INT_34XX_MMC3_IRQ 94
340#define INT_34XX_GPT12_IRQ 95 340#define INT_34XX_GPT12_IRQ 95
341 341
342#define INT_34XX_BENCH_MPU_EMUL 3
343
342/* Max. 128 level 2 IRQs (OMAP1610), 192 GPIOs (OMAP730) and 344/* Max. 128 level 2 IRQs (OMAP1610), 192 GPIOs (OMAP730) and
343 * 16 MPUIO lines */ 345 * 16 MPUIO lines */
344#define OMAP_MAX_GPIO_LINES 192 346#define OMAP_MAX_GPIO_LINES 192
diff --git a/arch/arm/plat-omap/mailbox.c b/arch/arm/plat-omap/mailbox.c
index 1d7aec1a691a..b52ce053e6f2 100644
--- a/arch/arm/plat-omap/mailbox.c
+++ b/arch/arm/plat-omap/mailbox.c
@@ -30,7 +30,7 @@
30#include <linux/blkdev.h> 30#include <linux/blkdev.h>
31#include <linux/err.h> 31#include <linux/err.h>
32#include <linux/delay.h> 32#include <linux/delay.h>
33#include <asm/io.h> 33#include <linux/io.h>
34#include <mach/mailbox.h> 34#include <mach/mailbox.h>
35#include "mailbox.h" 35#include "mailbox.h"
36 36
diff --git a/arch/arm/plat-omap/mux.c b/arch/arm/plat-omap/mux.c
index 847df208c46c..80b040fd5ca7 100644
--- a/arch/arm/plat-omap/mux.c
+++ b/arch/arm/plat-omap/mux.c
@@ -25,8 +25,8 @@
25#include <linux/module.h> 25#include <linux/module.h>
26#include <linux/init.h> 26#include <linux/init.h>
27#include <linux/kernel.h> 27#include <linux/kernel.h>
28#include <linux/io.h>
28#include <asm/system.h> 29#include <asm/system.h>
29#include <asm/io.h>
30#include <linux/spinlock.h> 30#include <linux/spinlock.h>
31#include <mach/mux.h> 31#include <mach/mux.h>
32 32
diff --git a/arch/arm/plat-omap/ocpi.c b/arch/arm/plat-omap/ocpi.c
index 8bdbf979a257..ebe0c73c8901 100644
--- a/arch/arm/plat-omap/ocpi.c
+++ b/arch/arm/plat-omap/ocpi.c
@@ -31,8 +31,8 @@
31#include <linux/spinlock.h> 31#include <linux/spinlock.h>
32#include <linux/err.h> 32#include <linux/err.h>
33#include <linux/clk.h> 33#include <linux/clk.h>
34#include <linux/io.h>
34 35
35#include <asm/io.h>
36#include <mach/hardware.h> 36#include <mach/hardware.h>
37 37
38#define OCPI_BASE 0xfffec320 38#define OCPI_BASE 0xfffec320
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c
index 4d22452a0743..9f9a921829c0 100644
--- a/arch/arm/plat-omap/sram.c
+++ b/arch/arm/plat-omap/sram.c
@@ -15,9 +15,9 @@
15#include <linux/module.h> 15#include <linux/module.h>
16#include <linux/kernel.h> 16#include <linux/kernel.h>
17#include <linux/init.h> 17#include <linux/init.h>
18#include <linux/io.h>
18 19
19#include <asm/tlb.h> 20#include <asm/tlb.h>
20#include <asm/io.h>
21#include <asm/cacheflush.h> 21#include <asm/cacheflush.h>
22 22
23#include <asm/mach/map.h> 23#include <asm/mach/map.h>
diff --git a/arch/arm/plat-omap/usb.c b/arch/arm/plat-omap/usb.c
index 777485e0636b..67ca1e216df7 100644
--- a/arch/arm/plat-omap/usb.c
+++ b/arch/arm/plat-omap/usb.c
@@ -27,8 +27,8 @@
27#include <linux/init.h> 27#include <linux/init.h>
28#include <linux/platform_device.h> 28#include <linux/platform_device.h>
29#include <linux/usb/otg.h> 29#include <linux/usb/otg.h>
30#include <linux/io.h>
30 31
31#include <asm/io.h>
32#include <asm/irq.h> 32#include <asm/irq.h>
33#include <asm/system.h> 33#include <asm/system.h>
34#include <mach/hardware.h> 34#include <mach/hardware.h>