diff options
Diffstat (limited to 'arch/arm/mach-omap1')
56 files changed, 1791 insertions, 586 deletions
diff --git a/arch/arm/mach-omap1/Makefile b/arch/arm/mach-omap1/Makefile index 398e9e53e189..cd169c386161 100644 --- a/arch/arm/mach-omap1/Makefile +++ b/arch/arm/mach-omap1/Makefile | |||
@@ -61,14 +61,6 @@ obj-$(CONFIG_ARCH_OMAP850) += gpio7xx.o | |||
61 | obj-$(CONFIG_ARCH_OMAP15XX) += gpio15xx.o | 61 | obj-$(CONFIG_ARCH_OMAP15XX) += gpio15xx.o |
62 | obj-$(CONFIG_ARCH_OMAP16XX) += gpio16xx.o | 62 | obj-$(CONFIG_ARCH_OMAP16XX) += gpio16xx.o |
63 | 63 | ||
64 | # LEDs support | ||
65 | led-$(CONFIG_MACH_OMAP_H2) += leds-h2p2-debug.o | ||
66 | led-$(CONFIG_MACH_OMAP_H3) += leds-h2p2-debug.o | ||
67 | led-$(CONFIG_MACH_OMAP_INNOVATOR) += leds-innovator.o | ||
68 | led-$(CONFIG_MACH_OMAP_PERSEUS2) += leds-h2p2-debug.o | ||
69 | led-$(CONFIG_MACH_OMAP_OSK) += leds-osk.o | ||
70 | obj-$(CONFIG_LEDS) += $(led-y) | ||
71 | |||
72 | ifneq ($(CONFIG_FB_OMAP),) | 64 | ifneq ($(CONFIG_FB_OMAP),) |
73 | obj-y += lcd_dma.o | 65 | obj-y += lcd_dma.o |
74 | endif | 66 | endif |
diff --git a/arch/arm/mach-omap1/ams-delta-fiq-handler.S b/arch/arm/mach-omap1/ams-delta-fiq-handler.S index a051cb8ae57f..3d1e1c250a1a 100644 --- a/arch/arm/mach-omap1/ams-delta-fiq-handler.S +++ b/arch/arm/mach-omap1/ams-delta-fiq-handler.S | |||
@@ -16,8 +16,9 @@ | |||
16 | #include <linux/linkage.h> | 16 | #include <linux/linkage.h> |
17 | #include <asm/assembler.h> | 17 | #include <asm/assembler.h> |
18 | 18 | ||
19 | #include <plat/board-ams-delta.h> | 19 | #include <mach/board-ams-delta.h> |
20 | 20 | ||
21 | #include <mach/irqs.h> | ||
21 | #include <mach/ams-delta-fiq.h> | 22 | #include <mach/ams-delta-fiq.h> |
22 | 23 | ||
23 | #include "iomap.h" | 24 | #include "iomap.h" |
diff --git a/arch/arm/mach-omap1/ams-delta-fiq.c b/arch/arm/mach-omap1/ams-delta-fiq.c index 68e8e5654c0a..f12a12af3523 100644 --- a/arch/arm/mach-omap1/ams-delta-fiq.c +++ b/arch/arm/mach-omap1/ams-delta-fiq.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/io.h> | 20 | #include <linux/io.h> |
21 | 21 | ||
22 | #include <plat/board-ams-delta.h> | 22 | #include <mach/board-ams-delta.h> |
23 | 23 | ||
24 | #include <asm/fiq.h> | 24 | #include <asm/fiq.h> |
25 | 25 | ||
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c index c53469802c03..9518bf5996dc 100644 --- a/arch/arm/mach-omap1/board-ams-delta.c +++ b/arch/arm/mach-omap1/board-ams-delta.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/export.h> | 26 | #include <linux/export.h> |
27 | #include <linux/omapfb.h> | 27 | #include <linux/omapfb.h> |
28 | #include <linux/io.h> | 28 | #include <linux/io.h> |
29 | #include <linux/platform_data/gpio-omap.h> | ||
29 | 30 | ||
30 | #include <media/soc_camera.h> | 31 | #include <media/soc_camera.h> |
31 | 32 | ||
@@ -34,10 +35,9 @@ | |||
34 | #include <asm/mach/arch.h> | 35 | #include <asm/mach/arch.h> |
35 | #include <asm/mach/map.h> | 36 | #include <asm/mach/map.h> |
36 | 37 | ||
37 | #include <plat/board-ams-delta.h> | 38 | #include <mach/board-ams-delta.h> |
38 | #include <plat/keypad.h> | 39 | #include <linux/platform_data/keypad-omap.h> |
39 | #include <plat/mux.h> | 40 | #include <mach/mux.h> |
40 | #include <plat/board.h> | ||
41 | 41 | ||
42 | #include <mach/hardware.h> | 42 | #include <mach/hardware.h> |
43 | #include <mach/ams-delta-fiq.h> | 43 | #include <mach/ams-delta-fiq.h> |
diff --git a/arch/arm/mach-omap1/board-fsample.c b/arch/arm/mach-omap1/board-fsample.c index 6872f3fd400f..4b6de70c47a6 100644 --- a/arch/arm/mach-omap1/board-fsample.c +++ b/arch/arm/mach-omap1/board-fsample.c | |||
@@ -28,11 +28,10 @@ | |||
28 | #include <asm/mach/map.h> | 28 | #include <asm/mach/map.h> |
29 | 29 | ||
30 | #include <plat/tc.h> | 30 | #include <plat/tc.h> |
31 | #include <plat/mux.h> | 31 | #include <mach/mux.h> |
32 | #include <plat/flash.h> | 32 | #include <mach/flash.h> |
33 | #include <plat/fpga.h> | 33 | #include <plat/fpga.h> |
34 | #include <plat/keypad.h> | 34 | #include <linux/platform_data/keypad-omap.h> |
35 | #include <plat/board.h> | ||
36 | 35 | ||
37 | #include <mach/hardware.h> | 36 | #include <mach/hardware.h> |
38 | 37 | ||
diff --git a/arch/arm/mach-omap1/board-generic.c b/arch/arm/mach-omap1/board-generic.c index 6ec385e2b98e..4ec579fdd366 100644 --- a/arch/arm/mach-omap1/board-generic.c +++ b/arch/arm/mach-omap1/board-generic.c | |||
@@ -22,8 +22,7 @@ | |||
22 | #include <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
23 | #include <asm/mach/map.h> | 23 | #include <asm/mach/map.h> |
24 | 24 | ||
25 | #include <plat/mux.h> | 25 | #include <mach/mux.h> |
26 | #include <plat/board.h> | ||
27 | 26 | ||
28 | #include <mach/usb.h> | 27 | #include <mach/usb.h> |
29 | 28 | ||
@@ -52,9 +51,6 @@ static struct omap_usb_config generic1610_usb_config __initdata = { | |||
52 | }; | 51 | }; |
53 | #endif | 52 | #endif |
54 | 53 | ||
55 | static struct omap_board_config_kernel generic_config[] __initdata = { | ||
56 | }; | ||
57 | |||
58 | static void __init omap_generic_init(void) | 54 | static void __init omap_generic_init(void) |
59 | { | 55 | { |
60 | #ifdef CONFIG_ARCH_OMAP15XX | 56 | #ifdef CONFIG_ARCH_OMAP15XX |
@@ -76,8 +72,6 @@ static void __init omap_generic_init(void) | |||
76 | } | 72 | } |
77 | #endif | 73 | #endif |
78 | 74 | ||
79 | omap_board_config = generic_config; | ||
80 | omap_board_config_size = ARRAY_SIZE(generic_config); | ||
81 | omap_serial_init(); | 75 | omap_serial_init(); |
82 | omap_register_i2c_bus(1, 100, NULL, 0); | 76 | omap_register_i2c_bus(1, 100, NULL, 0); |
83 | } | 77 | } |
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 44a4ab195fbc..376f7f29ef77 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -31,17 +31,19 @@ | |||
31 | #include <linux/i2c/tps65010.h> | 31 | #include <linux/i2c/tps65010.h> |
32 | #include <linux/smc91x.h> | 32 | #include <linux/smc91x.h> |
33 | #include <linux/omapfb.h> | 33 | #include <linux/omapfb.h> |
34 | #include <linux/platform_data/gpio-omap.h> | ||
35 | #include <linux/leds.h> | ||
34 | 36 | ||
35 | #include <asm/mach-types.h> | 37 | #include <asm/mach-types.h> |
36 | #include <asm/mach/arch.h> | 38 | #include <asm/mach/arch.h> |
37 | #include <asm/mach/map.h> | 39 | #include <asm/mach/map.h> |
38 | 40 | ||
39 | #include <plat/mux.h> | 41 | #include <mach/mux.h> |
40 | #include <plat/dma.h> | 42 | #include <plat/dma.h> |
41 | #include <plat/tc.h> | 43 | #include <plat/tc.h> |
42 | #include <plat/irda.h> | 44 | #include <mach/irda.h> |
43 | #include <plat/keypad.h> | 45 | #include <linux/platform_data/keypad-omap.h> |
44 | #include <plat/flash.h> | 46 | #include <mach/flash.h> |
45 | 47 | ||
46 | #include <mach/hardware.h> | 48 | #include <mach/hardware.h> |
47 | #include <mach/usb.h> | 49 | #include <mach/usb.h> |
@@ -306,12 +308,39 @@ static struct platform_device h2_irda_device = { | |||
306 | .resource = h2_irda_resources, | 308 | .resource = h2_irda_resources, |
307 | }; | 309 | }; |
308 | 310 | ||
311 | static struct gpio_led h2_gpio_led_pins[] = { | ||
312 | { | ||
313 | .name = "h2:red", | ||
314 | .default_trigger = "heartbeat", | ||
315 | .gpio = 3, | ||
316 | }, | ||
317 | { | ||
318 | .name = "h2:green", | ||
319 | .default_trigger = "cpu0", | ||
320 | .gpio = OMAP_MPUIO(4), | ||
321 | }, | ||
322 | }; | ||
323 | |||
324 | static struct gpio_led_platform_data h2_gpio_led_data = { | ||
325 | .leds = h2_gpio_led_pins, | ||
326 | .num_leds = ARRAY_SIZE(h2_gpio_led_pins), | ||
327 | }; | ||
328 | |||
329 | static struct platform_device h2_gpio_leds = { | ||
330 | .name = "leds-gpio", | ||
331 | .id = -1, | ||
332 | .dev = { | ||
333 | .platform_data = &h2_gpio_led_data, | ||
334 | }, | ||
335 | }; | ||
336 | |||
309 | static struct platform_device *h2_devices[] __initdata = { | 337 | static struct platform_device *h2_devices[] __initdata = { |
310 | &h2_nor_device, | 338 | &h2_nor_device, |
311 | &h2_nand_device, | 339 | &h2_nand_device, |
312 | &h2_smc91x_device, | 340 | &h2_smc91x_device, |
313 | &h2_irda_device, | 341 | &h2_irda_device, |
314 | &h2_kp_device, | 342 | &h2_kp_device, |
343 | &h2_gpio_leds, | ||
315 | }; | 344 | }; |
316 | 345 | ||
317 | static void __init h2_init_smc91x(void) | 346 | static void __init h2_init_smc91x(void) |
@@ -406,6 +435,10 @@ static void __init h2_init(void) | |||
406 | omap_cfg_reg(E19_1610_KBR4); | 435 | omap_cfg_reg(E19_1610_KBR4); |
407 | omap_cfg_reg(N19_1610_KBR5); | 436 | omap_cfg_reg(N19_1610_KBR5); |
408 | 437 | ||
438 | /* GPIO based LEDs */ | ||
439 | omap_cfg_reg(P18_1610_GPIO3); | ||
440 | omap_cfg_reg(MPUIO4); | ||
441 | |||
409 | h2_smc91x_resources[1].start = gpio_to_irq(0); | 442 | h2_smc91x_resources[1].start = gpio_to_irq(0); |
410 | h2_smc91x_resources[1].end = gpio_to_irq(0); | 443 | h2_smc91x_resources[1].end = gpio_to_irq(0); |
411 | platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices)); | 444 | platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices)); |
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index 86cb5a04a404..ededdb7ef28c 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <linux/i2c/tps65010.h> | 31 | #include <linux/i2c/tps65010.h> |
32 | #include <linux/smc91x.h> | 32 | #include <linux/smc91x.h> |
33 | #include <linux/omapfb.h> | 33 | #include <linux/omapfb.h> |
34 | #include <linux/platform_data/gpio-omap.h> | ||
35 | #include <linux/leds.h> | ||
34 | 36 | ||
35 | #include <asm/setup.h> | 37 | #include <asm/setup.h> |
36 | #include <asm/page.h> | 38 | #include <asm/page.h> |
@@ -38,11 +40,11 @@ | |||
38 | #include <asm/mach/arch.h> | 40 | #include <asm/mach/arch.h> |
39 | #include <asm/mach/map.h> | 41 | #include <asm/mach/map.h> |
40 | 42 | ||
41 | #include <plat/mux.h> | 43 | #include <mach/mux.h> |
42 | #include <plat/tc.h> | 44 | #include <plat/tc.h> |
43 | #include <plat/keypad.h> | 45 | #include <linux/platform_data/keypad-omap.h> |
44 | #include <plat/dma.h> | 46 | #include <plat/dma.h> |
45 | #include <plat/flash.h> | 47 | #include <mach/flash.h> |
46 | 48 | ||
47 | #include <mach/hardware.h> | 49 | #include <mach/hardware.h> |
48 | #include <mach/irqs.h> | 50 | #include <mach/irqs.h> |
@@ -324,6 +326,32 @@ static struct spi_board_info h3_spi_board_info[] __initdata = { | |||
324 | }, | 326 | }, |
325 | }; | 327 | }; |
326 | 328 | ||
329 | static struct gpio_led h3_gpio_led_pins[] = { | ||
330 | { | ||
331 | .name = "h3:red", | ||
332 | .default_trigger = "heartbeat", | ||
333 | .gpio = 3, | ||
334 | }, | ||
335 | { | ||
336 | .name = "h3:green", | ||
337 | .default_trigger = "cpu0", | ||
338 | .gpio = OMAP_MPUIO(4), | ||
339 | }, | ||
340 | }; | ||
341 | |||
342 | static struct gpio_led_platform_data h3_gpio_led_data = { | ||
343 | .leds = h3_gpio_led_pins, | ||
344 | .num_leds = ARRAY_SIZE(h3_gpio_led_pins), | ||
345 | }; | ||
346 | |||
347 | static struct platform_device h3_gpio_leds = { | ||
348 | .name = "leds-gpio", | ||
349 | .id = -1, | ||
350 | .dev = { | ||
351 | .platform_data = &h3_gpio_led_data, | ||
352 | }, | ||
353 | }; | ||
354 | |||
327 | static struct platform_device *devices[] __initdata = { | 355 | static struct platform_device *devices[] __initdata = { |
328 | &nor_device, | 356 | &nor_device, |
329 | &nand_device, | 357 | &nand_device, |
@@ -331,6 +359,7 @@ static struct platform_device *devices[] __initdata = { | |||
331 | &intlat_device, | 359 | &intlat_device, |
332 | &h3_kp_device, | 360 | &h3_kp_device, |
333 | &h3_lcd_device, | 361 | &h3_lcd_device, |
362 | &h3_gpio_leds, | ||
334 | }; | 363 | }; |
335 | 364 | ||
336 | static struct omap_usb_config h3_usb_config __initdata = { | 365 | static struct omap_usb_config h3_usb_config __initdata = { |
@@ -398,6 +427,10 @@ static void __init h3_init(void) | |||
398 | omap_cfg_reg(E19_1610_KBR4); | 427 | omap_cfg_reg(E19_1610_KBR4); |
399 | omap_cfg_reg(N19_1610_KBR5); | 428 | omap_cfg_reg(N19_1610_KBR5); |
400 | 429 | ||
430 | /* GPIO based LEDs */ | ||
431 | omap_cfg_reg(P18_1610_GPIO3); | ||
432 | omap_cfg_reg(MPUIO4); | ||
433 | |||
401 | smc91x_resources[1].start = gpio_to_irq(40); | 434 | smc91x_resources[1].start = gpio_to_irq(40); |
402 | smc91x_resources[1].end = gpio_to_irq(40); | 435 | smc91x_resources[1].end = gpio_to_irq(40); |
403 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 436 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
diff --git a/arch/arm/mach-omap1/board-htcherald.c b/arch/arm/mach-omap1/board-htcherald.c index b3f6e943e661..87ab2086ef96 100644 --- a/arch/arm/mach-omap1/board-htcherald.c +++ b/arch/arm/mach-omap1/board-htcherald.c | |||
@@ -37,13 +37,12 @@ | |||
37 | #include <linux/spi/spi.h> | 37 | #include <linux/spi/spi.h> |
38 | #include <linux/spi/ads7846.h> | 38 | #include <linux/spi/ads7846.h> |
39 | #include <linux/omapfb.h> | 39 | #include <linux/omapfb.h> |
40 | #include <linux/platform_data/keypad-omap.h> | ||
40 | 41 | ||
41 | #include <asm/mach-types.h> | 42 | #include <asm/mach-types.h> |
42 | #include <asm/mach/arch.h> | 43 | #include <asm/mach/arch.h> |
43 | 44 | ||
44 | #include <plat/omap7xx.h> | 45 | #include <mach/omap7xx.h> |
45 | #include <plat/board.h> | ||
46 | #include <plat/keypad.h> | ||
47 | #include <plat/mmc.h> | 46 | #include <plat/mmc.h> |
48 | 47 | ||
49 | #include <mach/irqs.h> | 48 | #include <mach/irqs.h> |
@@ -476,8 +475,7 @@ static void __init htcherald_lcd_init(void) | |||
476 | break; | 475 | break; |
477 | } | 476 | } |
478 | if (!tries) | 477 | if (!tries) |
479 | printk(KERN_WARNING "Timeout waiting for end of frame " | 478 | pr_err("Timeout waiting for end of frame -- LCD may not be available\n"); |
480 | "-- LCD may not be available\n"); | ||
481 | 479 | ||
482 | /* turn off DMA */ | 480 | /* turn off DMA */ |
483 | reg = omap_readw(OMAP_DMA_LCD_CCR); | 481 | reg = omap_readw(OMAP_DMA_LCD_CCR); |
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index f21c2966daad..db5f7d2976e7 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -31,11 +31,11 @@ | |||
31 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
32 | #include <asm/mach/map.h> | 32 | #include <asm/mach/map.h> |
33 | 33 | ||
34 | #include <plat/mux.h> | 34 | #include <mach/mux.h> |
35 | #include <plat/flash.h> | 35 | #include <mach/flash.h> |
36 | #include <plat/fpga.h> | 36 | #include <plat/fpga.h> |
37 | #include <plat/tc.h> | 37 | #include <plat/tc.h> |
38 | #include <plat/keypad.h> | 38 | #include <linux/platform_data/keypad-omap.h> |
39 | #include <plat/mmc.h> | 39 | #include <plat/mmc.h> |
40 | 40 | ||
41 | #include <mach/hardware.h> | 41 | #include <mach/hardware.h> |
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c index 2c0ca8fc3380..7d5c06d6a52a 100644 --- a/arch/arm/mach-omap1/board-nokia770.c +++ b/arch/arm/mach-omap1/board-nokia770.c | |||
@@ -21,14 +21,14 @@ | |||
21 | #include <linux/workqueue.h> | 21 | #include <linux/workqueue.h> |
22 | #include <linux/delay.h> | 22 | #include <linux/delay.h> |
23 | 23 | ||
24 | #include <linux/platform_data/keypad-omap.h> | ||
25 | #include <linux/platform_data/lcd-mipid.h> | ||
26 | |||
24 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
25 | #include <asm/mach/arch.h> | 28 | #include <asm/mach/arch.h> |
26 | #include <asm/mach/map.h> | 29 | #include <asm/mach/map.h> |
27 | 30 | ||
28 | #include <plat/mux.h> | 31 | #include <mach/mux.h> |
29 | #include <plat/board.h> | ||
30 | #include <plat/keypad.h> | ||
31 | #include <plat/lcd_mipid.h> | ||
32 | #include <plat/mmc.h> | 32 | #include <plat/mmc.h> |
33 | #include <plat/clock.h> | 33 | #include <plat/clock.h> |
34 | 34 | ||
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index 8784705edb60..5973945a8741 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c | |||
@@ -39,13 +39,15 @@ | |||
39 | #include <linux/mtd/partitions.h> | 39 | #include <linux/mtd/partitions.h> |
40 | #include <linux/mtd/physmap.h> | 40 | #include <linux/mtd/physmap.h> |
41 | #include <linux/i2c/tps65010.h> | 41 | #include <linux/i2c/tps65010.h> |
42 | #include <linux/platform_data/gpio-omap.h> | ||
43 | #include <linux/platform_data/omap1_bl.h> | ||
42 | 44 | ||
43 | #include <asm/mach-types.h> | 45 | #include <asm/mach-types.h> |
44 | #include <asm/mach/arch.h> | 46 | #include <asm/mach/arch.h> |
45 | #include <asm/mach/map.h> | 47 | #include <asm/mach/map.h> |
46 | 48 | ||
47 | #include <plat/flash.h> | 49 | #include <mach/flash.h> |
48 | #include <plat/mux.h> | 50 | #include <mach/mux.h> |
49 | #include <plat/tc.h> | 51 | #include <plat/tc.h> |
50 | 52 | ||
51 | #include <mach/hardware.h> | 53 | #include <mach/hardware.h> |
@@ -302,7 +304,7 @@ static struct omap_lcd_config osk_lcd_config __initdata = { | |||
302 | #include <linux/spi/spi.h> | 304 | #include <linux/spi/spi.h> |
303 | #include <linux/spi/ads7846.h> | 305 | #include <linux/spi/ads7846.h> |
304 | 306 | ||
305 | #include <plat/keypad.h> | 307 | #include <linux/platform_data/keypad-omap.h> |
306 | 308 | ||
307 | static struct at24_platform_data at24c04 = { | 309 | static struct at24_platform_data at24c04 = { |
308 | .byte_len = SZ_4K / 8, | 310 | .byte_len = SZ_4K / 8, |
@@ -380,10 +382,37 @@ static struct platform_device osk5912_lcd_device = { | |||
380 | .id = -1, | 382 | .id = -1, |
381 | }; | 383 | }; |
382 | 384 | ||
385 | static struct gpio_led mistral_gpio_led_pins[] = { | ||
386 | { | ||
387 | .name = "mistral:red", | ||
388 | .default_trigger = "heartbeat", | ||
389 | .gpio = 3, | ||
390 | }, | ||
391 | { | ||
392 | .name = "mistral:green", | ||
393 | .default_trigger = "cpu0", | ||
394 | .gpio = OMAP_MPUIO(4), | ||
395 | }, | ||
396 | }; | ||
397 | |||
398 | static struct gpio_led_platform_data mistral_gpio_led_data = { | ||
399 | .leds = mistral_gpio_led_pins, | ||
400 | .num_leds = ARRAY_SIZE(mistral_gpio_led_pins), | ||
401 | }; | ||
402 | |||
403 | static struct platform_device mistral_gpio_leds = { | ||
404 | .name = "leds-gpio", | ||
405 | .id = -1, | ||
406 | .dev = { | ||
407 | .platform_data = &mistral_gpio_led_data, | ||
408 | }, | ||
409 | }; | ||
410 | |||
383 | static struct platform_device *mistral_devices[] __initdata = { | 411 | static struct platform_device *mistral_devices[] __initdata = { |
384 | &osk5912_kp_device, | 412 | &osk5912_kp_device, |
385 | &mistral_bl_device, | 413 | &mistral_bl_device, |
386 | &osk5912_lcd_device, | 414 | &osk5912_lcd_device, |
415 | &mistral_gpio_leds, | ||
387 | }; | 416 | }; |
388 | 417 | ||
389 | static int mistral_get_pendown_state(void) | 418 | static int mistral_get_pendown_state(void) |
@@ -508,6 +537,12 @@ static void __init osk_mistral_init(void) | |||
508 | if (gpio_request(2, "lcd_pwr") == 0) | 537 | if (gpio_request(2, "lcd_pwr") == 0) |
509 | gpio_direction_output(2, 1); | 538 | gpio_direction_output(2, 1); |
510 | 539 | ||
540 | /* | ||
541 | * GPIO based LEDs | ||
542 | */ | ||
543 | omap_cfg_reg(P18_1610_GPIO3); | ||
544 | omap_cfg_reg(MPUIO4); | ||
545 | |||
511 | i2c_register_board_info(1, mistral_i2c_board_info, | 546 | i2c_register_board_info(1, mistral_i2c_board_info, |
512 | ARRAY_SIZE(mistral_i2c_board_info)); | 547 | ARRAY_SIZE(mistral_i2c_board_info)); |
513 | 548 | ||
diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c index 26bcb9defcdc..1c578d58923a 100644 --- a/arch/arm/mach-omap1/board-palmte.c +++ b/arch/arm/mach-omap1/board-palmte.c | |||
@@ -28,18 +28,18 @@ | |||
28 | #include <linux/interrupt.h> | 28 | #include <linux/interrupt.h> |
29 | #include <linux/apm-emulation.h> | 29 | #include <linux/apm-emulation.h> |
30 | #include <linux/omapfb.h> | 30 | #include <linux/omapfb.h> |
31 | #include <linux/platform_data/omap1_bl.h> | ||
31 | 32 | ||
32 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
33 | #include <asm/mach/arch.h> | 34 | #include <asm/mach/arch.h> |
34 | #include <asm/mach/map.h> | 35 | #include <asm/mach/map.h> |
35 | 36 | ||
36 | #include <plat/flash.h> | 37 | #include <mach/flash.h> |
37 | #include <plat/mux.h> | 38 | #include <mach/mux.h> |
38 | #include <plat/tc.h> | 39 | #include <plat/tc.h> |
39 | #include <plat/dma.h> | 40 | #include <plat/dma.h> |
40 | #include <plat/board.h> | 41 | #include <mach/irda.h> |
41 | #include <plat/irda.h> | 42 | #include <linux/platform_data/keypad-omap.h> |
42 | #include <plat/keypad.h> | ||
43 | 43 | ||
44 | #include <mach/hardware.h> | 44 | #include <mach/hardware.h> |
45 | #include <mach/usb.h> | 45 | #include <mach/usb.h> |
diff --git a/arch/arm/mach-omap1/board-palmtt.c b/arch/arm/mach-omap1/board-palmtt.c index 4d099446dfa8..97158095083c 100644 --- a/arch/arm/mach-omap1/board-palmtt.c +++ b/arch/arm/mach-omap1/board-palmtt.c | |||
@@ -27,19 +27,19 @@ | |||
27 | #include <linux/omapfb.h> | 27 | #include <linux/omapfb.h> |
28 | #include <linux/spi/spi.h> | 28 | #include <linux/spi/spi.h> |
29 | #include <linux/spi/ads7846.h> | 29 | #include <linux/spi/ads7846.h> |
30 | #include <linux/platform_data/omap1_bl.h> | ||
30 | 31 | ||
31 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
32 | #include <asm/mach/arch.h> | 33 | #include <asm/mach/arch.h> |
33 | #include <asm/mach/map.h> | 34 | #include <asm/mach/map.h> |
34 | 35 | ||
35 | #include <plat/led.h> | 36 | #include <plat/led.h> |
36 | #include <plat/flash.h> | 37 | #include <mach/flash.h> |
37 | #include <plat/mux.h> | 38 | #include <mach/mux.h> |
38 | #include <plat/dma.h> | 39 | #include <plat/dma.h> |
39 | #include <plat/tc.h> | 40 | #include <plat/tc.h> |
40 | #include <plat/board.h> | 41 | #include <mach/irda.h> |
41 | #include <plat/irda.h> | 42 | #include <linux/platform_data/keypad-omap.h> |
42 | #include <plat/keypad.h> | ||
43 | 43 | ||
44 | #include <mach/hardware.h> | 44 | #include <mach/hardware.h> |
45 | #include <mach/usb.h> | 45 | #include <mach/usb.h> |
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c index 355980321c2d..e311032e7eeb 100644 --- a/arch/arm/mach-omap1/board-palmz71.c +++ b/arch/arm/mach-omap1/board-palmz71.c | |||
@@ -30,18 +30,18 @@ | |||
30 | #include <linux/omapfb.h> | 30 | #include <linux/omapfb.h> |
31 | #include <linux/spi/spi.h> | 31 | #include <linux/spi/spi.h> |
32 | #include <linux/spi/ads7846.h> | 32 | #include <linux/spi/ads7846.h> |
33 | #include <linux/platform_data/omap1_bl.h> | ||
33 | 34 | ||
34 | #include <asm/mach-types.h> | 35 | #include <asm/mach-types.h> |
35 | #include <asm/mach/arch.h> | 36 | #include <asm/mach/arch.h> |
36 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
37 | 38 | ||
38 | #include <plat/flash.h> | 39 | #include <mach/flash.h> |
39 | #include <plat/mux.h> | 40 | #include <mach/mux.h> |
40 | #include <plat/dma.h> | 41 | #include <plat/dma.h> |
41 | #include <plat/tc.h> | 42 | #include <plat/tc.h> |
42 | #include <plat/board.h> | 43 | #include <mach/irda.h> |
43 | #include <plat/irda.h> | 44 | #include <linux/platform_data/keypad-omap.h> |
44 | #include <plat/keypad.h> | ||
45 | 45 | ||
46 | #include <mach/hardware.h> | 46 | #include <mach/hardware.h> |
47 | #include <mach/usb.h> | 47 | #include <mach/usb.h> |
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index 703d55ecffe2..198b05417bfc 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c | |||
@@ -22,17 +22,16 @@ | |||
22 | #include <linux/input.h> | 22 | #include <linux/input.h> |
23 | #include <linux/smc91x.h> | 23 | #include <linux/smc91x.h> |
24 | #include <linux/omapfb.h> | 24 | #include <linux/omapfb.h> |
25 | #include <linux/platform_data/keypad-omap.h> | ||
25 | 26 | ||
26 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
27 | #include <asm/mach/arch.h> | 28 | #include <asm/mach/arch.h> |
28 | #include <asm/mach/map.h> | 29 | #include <asm/mach/map.h> |
29 | 30 | ||
30 | #include <plat/tc.h> | 31 | #include <plat/tc.h> |
31 | #include <plat/mux.h> | 32 | #include <mach/mux.h> |
32 | #include <plat/fpga.h> | 33 | #include <plat/fpga.h> |
33 | #include <plat/flash.h> | 34 | #include <mach/flash.h> |
34 | #include <plat/keypad.h> | ||
35 | #include <plat/board.h> | ||
36 | 35 | ||
37 | #include <mach/hardware.h> | 36 | #include <mach/hardware.h> |
38 | 37 | ||
diff --git a/arch/arm/mach-omap1/board-sx1-mmc.c b/arch/arm/mach-omap1/board-sx1-mmc.c index b59f78850e69..5932d56e17bf 100644 --- a/arch/arm/mach-omap1/board-sx1-mmc.c +++ b/arch/arm/mach-omap1/board-sx1-mmc.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | #include <mach/hardware.h> | 18 | #include <mach/hardware.h> |
19 | #include <plat/mmc.h> | 19 | #include <plat/mmc.h> |
20 | #include <plat/board-sx1.h> | 20 | #include <mach/board-sx1.h> |
21 | 21 | ||
22 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) | 22 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) |
23 | 23 | ||
diff --git a/arch/arm/mach-omap1/board-sx1.c b/arch/arm/mach-omap1/board-sx1.c index 8c665bd16ac2..13bf2cc56814 100644 --- a/arch/arm/mach-omap1/board-sx1.c +++ b/arch/arm/mach-omap1/board-sx1.c | |||
@@ -28,19 +28,18 @@ | |||
28 | #include <linux/errno.h> | 28 | #include <linux/errno.h> |
29 | #include <linux/export.h> | 29 | #include <linux/export.h> |
30 | #include <linux/omapfb.h> | 30 | #include <linux/omapfb.h> |
31 | #include <linux/platform_data/keypad-omap.h> | ||
31 | 32 | ||
32 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
33 | #include <asm/mach/arch.h> | 34 | #include <asm/mach/arch.h> |
34 | #include <asm/mach/map.h> | 35 | #include <asm/mach/map.h> |
35 | 36 | ||
36 | #include <plat/flash.h> | 37 | #include <mach/flash.h> |
37 | #include <plat/mux.h> | 38 | #include <mach/mux.h> |
38 | #include <plat/dma.h> | 39 | #include <plat/dma.h> |
39 | #include <plat/irda.h> | 40 | #include <mach/irda.h> |
40 | #include <plat/tc.h> | 41 | #include <plat/tc.h> |
41 | #include <plat/board.h> | 42 | #include <mach/board-sx1.h> |
42 | #include <plat/keypad.h> | ||
43 | #include <plat/board-sx1.h> | ||
44 | 43 | ||
45 | #include <mach/hardware.h> | 44 | #include <mach/hardware.h> |
46 | #include <mach/usb.h> | 45 | #include <mach/usb.h> |
diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board-voiceblue.c index 3497769eb353..ad75e3411d46 100644 --- a/arch/arm/mach-omap1/board-voiceblue.c +++ b/arch/arm/mach-omap1/board-voiceblue.c | |||
@@ -31,11 +31,10 @@ | |||
31 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
32 | #include <asm/mach/map.h> | 32 | #include <asm/mach/map.h> |
33 | 33 | ||
34 | #include <plat/board-voiceblue.h> | 34 | #include <mach/board-voiceblue.h> |
35 | #include <plat/flash.h> | 35 | #include <mach/flash.h> |
36 | #include <plat/mux.h> | 36 | #include <mach/mux.h> |
37 | #include <plat/tc.h> | 37 | #include <plat/tc.h> |
38 | #include <plat/board.h> | ||
39 | 38 | ||
40 | #include <mach/hardware.h> | 39 | #include <mach/hardware.h> |
41 | #include <mach/usb.h> | 40 | #include <mach/usb.h> |
@@ -155,9 +154,6 @@ static struct omap_usb_config voiceblue_usb_config __initdata = { | |||
155 | .pins[2] = 6, | 154 | .pins[2] = 6, |
156 | }; | 155 | }; |
157 | 156 | ||
158 | static struct omap_board_config_kernel voiceblue_config[] = { | ||
159 | }; | ||
160 | |||
161 | #define MACHINE_PANICED 1 | 157 | #define MACHINE_PANICED 1 |
162 | #define MACHINE_REBOOTING 2 | 158 | #define MACHINE_REBOOTING 2 |
163 | #define MACHINE_REBOOT 4 | 159 | #define MACHINE_REBOOT 4 |
@@ -275,8 +271,6 @@ static void __init voiceblue_init(void) | |||
275 | voiceblue_smc91x_resources[1].start = gpio_to_irq(8); | 271 | voiceblue_smc91x_resources[1].start = gpio_to_irq(8); |
276 | voiceblue_smc91x_resources[1].end = gpio_to_irq(8); | 272 | voiceblue_smc91x_resources[1].end = gpio_to_irq(8); |
277 | platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices)); | 273 | platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices)); |
278 | omap_board_config = voiceblue_config; | ||
279 | omap_board_config_size = ARRAY_SIZE(voiceblue_config); | ||
280 | omap_serial_init(); | 274 | omap_serial_init(); |
281 | omap1_usb_init(&voiceblue_usb_config); | 275 | omap1_usb_init(&voiceblue_usb_config); |
282 | omap_register_i2c_bus(1, 100, NULL, 0); | 276 | omap_register_i2c_bus(1, 100, NULL, 0); |
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c index a9ee06b6cb42..638f4070fc70 100644 --- a/arch/arm/mach-omap1/clock.c +++ b/arch/arm/mach-omap1/clock.c | |||
@@ -587,8 +587,8 @@ void omap1_clk_disable_unused(struct clk *clk) | |||
587 | /* Clocks in the DSP domain need api_ck. Just assume bootloader | 587 | /* Clocks in the DSP domain need api_ck. Just assume bootloader |
588 | * has not enabled any DSP clocks */ | 588 | * has not enabled any DSP clocks */ |
589 | if (clk->enable_reg == DSP_IDLECT2) { | 589 | if (clk->enable_reg == DSP_IDLECT2) { |
590 | printk(KERN_INFO "Skipping reset check for DSP domain " | 590 | pr_info("Skipping reset check for DSP domain clock \"%s\"\n", |
591 | "clock \"%s\"\n", clk->name); | 591 | clk->name); |
592 | return; | 592 | return; |
593 | } | 593 | } |
594 | 594 | ||
diff --git a/arch/arm/mach-omap1/clock_data.c b/arch/arm/mach-omap1/clock_data.c index c007d80dfb62..9b45f4b0ee22 100644 --- a/arch/arm/mach-omap1/clock_data.c +++ b/arch/arm/mach-omap1/clock_data.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <plat/clock.h> | 25 | #include <plat/clock.h> |
26 | #include <plat/cpu.h> | 26 | #include <plat/cpu.h> |
27 | #include <plat/clkdev_omap.h> | 27 | #include <plat/clkdev_omap.h> |
28 | #include <plat/board.h> | ||
29 | #include <plat/sram.h> /* for omap_sram_reprogram_clock() */ | 28 | #include <plat/sram.h> /* for omap_sram_reprogram_clock() */ |
30 | 29 | ||
31 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
@@ -776,11 +775,10 @@ static struct clk_functions omap1_clk_functions = { | |||
776 | 775 | ||
777 | static void __init omap1_show_rates(void) | 776 | static void __init omap1_show_rates(void) |
778 | { | 777 | { |
779 | pr_notice("Clocking rate (xtal/DPLL1/MPU): " | 778 | pr_notice("Clocking rate (xtal/DPLL1/MPU): %ld.%01ld/%ld.%01ld/%ld.%01ld MHz\n", |
780 | "%ld.%01ld/%ld.%01ld/%ld.%01ld MHz\n", | 779 | ck_ref.rate / 1000000, (ck_ref.rate / 100000) % 10, |
781 | ck_ref.rate / 1000000, (ck_ref.rate / 100000) % 10, | 780 | ck_dpll1.rate / 1000000, (ck_dpll1.rate / 100000) % 10, |
782 | ck_dpll1.rate / 1000000, (ck_dpll1.rate / 100000) % 10, | 781 | arm_ck.rate / 1000000, (arm_ck.rate / 100000) % 10); |
783 | arm_ck.rate / 1000000, (arm_ck.rate / 100000) % 10); | ||
784 | } | 782 | } |
785 | 783 | ||
786 | u32 cpu_mask; | 784 | u32 cpu_mask; |
@@ -788,7 +786,6 @@ u32 cpu_mask; | |||
788 | int __init omap1_clk_init(void) | 786 | int __init omap1_clk_init(void) |
789 | { | 787 | { |
790 | struct omap_clk *c; | 788 | struct omap_clk *c; |
791 | const struct omap_clock_config *info; | ||
792 | int crystal_type = 0; /* Default 12 MHz */ | 789 | int crystal_type = 0; /* Default 12 MHz */ |
793 | u32 reg; | 790 | u32 reg; |
794 | 791 | ||
@@ -837,19 +834,13 @@ int __init omap1_clk_init(void) | |||
837 | ck_dpll1_p = clk_get(NULL, "ck_dpll1"); | 834 | ck_dpll1_p = clk_get(NULL, "ck_dpll1"); |
838 | ck_ref_p = clk_get(NULL, "ck_ref"); | 835 | ck_ref_p = clk_get(NULL, "ck_ref"); |
839 | 836 | ||
840 | info = omap_get_config(OMAP_TAG_CLOCK, struct omap_clock_config); | ||
841 | if (info != NULL) { | ||
842 | if (!cpu_is_omap15xx()) | ||
843 | crystal_type = info->system_clock_type; | ||
844 | } | ||
845 | |||
846 | if (cpu_is_omap7xx()) | 837 | if (cpu_is_omap7xx()) |
847 | ck_ref.rate = 13000000; | 838 | ck_ref.rate = 13000000; |
848 | if (cpu_is_omap16xx() && crystal_type == 2) | 839 | if (cpu_is_omap16xx() && crystal_type == 2) |
849 | ck_ref.rate = 19200000; | 840 | ck_ref.rate = 19200000; |
850 | 841 | ||
851 | pr_info("Clocks: ARM_SYSST: 0x%04x DPLL_CTL: 0x%04x ARM_CKCTL: " | 842 | pr_info("Clocks: ARM_SYSST: 0x%04x DPLL_CTL: 0x%04x ARM_CKCTL: 0x%04x\n", |
852 | "0x%04x\n", omap_readw(ARM_SYSST), omap_readw(DPLL_CTL), | 843 | omap_readw(ARM_SYSST), omap_readw(DPLL_CTL), |
853 | omap_readw(ARM_CKCTL)); | 844 | omap_readw(ARM_CKCTL)); |
854 | 845 | ||
855 | /* We want to be in syncronous scalable mode */ | 846 | /* We want to be in syncronous scalable mode */ |
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index fa1fa4deb6aa..0cc54dd553e3 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c | |||
@@ -20,12 +20,11 @@ | |||
20 | #include <asm/mach/map.h> | 20 | #include <asm/mach/map.h> |
21 | 21 | ||
22 | #include <plat/tc.h> | 22 | #include <plat/tc.h> |
23 | #include <plat/board.h> | 23 | #include <mach/mux.h> |
24 | #include <plat/mux.h> | ||
25 | #include <plat/dma.h> | 24 | #include <plat/dma.h> |
26 | #include <plat/mmc.h> | 25 | #include <plat/mmc.h> |
27 | #include <plat/omap7xx.h> | ||
28 | 26 | ||
27 | #include <mach/omap7xx.h> | ||
29 | #include <mach/camera.h> | 28 | #include <mach/camera.h> |
30 | #include <mach/hardware.h> | 29 | #include <mach/hardware.h> |
31 | 30 | ||
diff --git a/arch/arm/mach-omap1/dma.c b/arch/arm/mach-omap1/dma.c index 3ef7d52316b4..29007fef84cd 100644 --- a/arch/arm/mach-omap1/dma.c +++ b/arch/arm/mach-omap1/dma.c | |||
@@ -27,7 +27,8 @@ | |||
27 | 27 | ||
28 | #include <plat/dma.h> | 28 | #include <plat/dma.h> |
29 | #include <plat/tc.h> | 29 | #include <plat/tc.h> |
30 | #include <plat/irqs.h> | 30 | |
31 | #include <mach/irqs.h> | ||
31 | 32 | ||
32 | #define OMAP1_DMA_BASE (0xfffed800) | 33 | #define OMAP1_DMA_BASE (0xfffed800) |
33 | #define OMAP1_LOGICAL_DMA_CH_COUNT 17 | 34 | #define OMAP1_LOGICAL_DMA_CH_COUNT 17 |
@@ -330,8 +331,9 @@ static int __init omap1_system_dma_init(void) | |||
330 | d->chan = kzalloc(sizeof(struct omap_dma_lch) * | 331 | d->chan = kzalloc(sizeof(struct omap_dma_lch) * |
331 | (d->lch_count), GFP_KERNEL); | 332 | (d->lch_count), GFP_KERNEL); |
332 | if (!d->chan) { | 333 | if (!d->chan) { |
333 | dev_err(&pdev->dev, "%s: Memory allocation failed" | 334 | dev_err(&pdev->dev, |
334 | "for d->chan!!!\n", __func__); | 335 | "%s: Memory allocation failed for d->chan!\n", |
336 | __func__); | ||
335 | goto exit_release_d; | 337 | goto exit_release_d; |
336 | } | 338 | } |
337 | 339 | ||
diff --git a/arch/arm/mach-omap1/flash.c b/arch/arm/mach-omap1/flash.c index 401eb3c080c2..73ae6169aa4a 100644 --- a/arch/arm/mach-omap1/flash.c +++ b/arch/arm/mach-omap1/flash.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <linux/mtd/map.h> | 11 | #include <linux/mtd/map.h> |
12 | 12 | ||
13 | #include <plat/tc.h> | 13 | #include <plat/tc.h> |
14 | #include <plat/flash.h> | 14 | #include <mach/flash.h> |
15 | 15 | ||
16 | #include <mach/hardware.h> | 16 | #include <mach/hardware.h> |
17 | 17 | ||
diff --git a/arch/arm/mach-omap1/gpio15xx.c b/arch/arm/mach-omap1/gpio15xx.c index ebef15e5e7b7..98e6f39224a4 100644 --- a/arch/arm/mach-omap1/gpio15xx.c +++ b/arch/arm/mach-omap1/gpio15xx.c | |||
@@ -17,6 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/gpio.h> | 19 | #include <linux/gpio.h> |
20 | #include <linux/platform_data/gpio-omap.h> | ||
20 | 21 | ||
21 | #define OMAP1_MPUIO_VBASE OMAP1_MPUIO_BASE | 22 | #define OMAP1_MPUIO_VBASE OMAP1_MPUIO_BASE |
22 | #define OMAP1510_GPIO_BASE 0xFFFCE000 | 23 | #define OMAP1510_GPIO_BASE 0xFFFCE000 |
diff --git a/arch/arm/mach-omap1/gpio16xx.c b/arch/arm/mach-omap1/gpio16xx.c index 2a48cd2e1754..33f419236b17 100644 --- a/arch/arm/mach-omap1/gpio16xx.c +++ b/arch/arm/mach-omap1/gpio16xx.c | |||
@@ -17,6 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/gpio.h> | 19 | #include <linux/gpio.h> |
20 | #include <linux/platform_data/gpio-omap.h> | ||
20 | 21 | ||
21 | #define OMAP1610_GPIO1_BASE 0xfffbe400 | 22 | #define OMAP1610_GPIO1_BASE 0xfffbe400 |
22 | #define OMAP1610_GPIO2_BASE 0xfffbec00 | 23 | #define OMAP1610_GPIO2_BASE 0xfffbec00 |
diff --git a/arch/arm/mach-omap1/gpio7xx.c b/arch/arm/mach-omap1/gpio7xx.c index acf12b73eace..958ce9acee95 100644 --- a/arch/arm/mach-omap1/gpio7xx.c +++ b/arch/arm/mach-omap1/gpio7xx.c | |||
@@ -17,6 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/gpio.h> | 19 | #include <linux/gpio.h> |
20 | #include <linux/platform_data/gpio-omap.h> | ||
20 | 21 | ||
21 | #define OMAP7XX_GPIO1_BASE 0xfffbc000 | 22 | #define OMAP7XX_GPIO1_BASE 0xfffbc000 |
22 | #define OMAP7XX_GPIO2_BASE 0xfffbc800 | 23 | #define OMAP7XX_GPIO2_BASE 0xfffbc800 |
diff --git a/arch/arm/mach-omap1/i2c.c b/arch/arm/mach-omap1/i2c.c index 5446c9912641..a0551a6d7451 100644 --- a/arch/arm/mach-omap1/i2c.c +++ b/arch/arm/mach-omap1/i2c.c | |||
@@ -20,7 +20,7 @@ | |||
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <plat/i2c.h> | 22 | #include <plat/i2c.h> |
23 | #include <plat/mux.h> | 23 | #include <mach/mux.h> |
24 | #include <plat/cpu.h> | 24 | #include <plat/cpu.h> |
25 | 25 | ||
26 | void __init omap1_i2c_mux_pins(int bus_id) | 26 | void __init omap1_i2c_mux_pins(int bus_id) |
diff --git a/arch/arm/mach-omap1/include/mach/ams-delta-fiq.h b/arch/arm/mach-omap1/include/mach/ams-delta-fiq.h index 23eed0035ed8..adb5e7649659 100644 --- a/arch/arm/mach-omap1/include/mach/ams-delta-fiq.h +++ b/arch/arm/mach-omap1/include/mach/ams-delta-fiq.h | |||
@@ -14,8 +14,6 @@ | |||
14 | #ifndef __AMS_DELTA_FIQ_H | 14 | #ifndef __AMS_DELTA_FIQ_H |
15 | #define __AMS_DELTA_FIQ_H | 15 | #define __AMS_DELTA_FIQ_H |
16 | 16 | ||
17 | #include <plat/irqs.h> | ||
18 | |||
19 | /* | 17 | /* |
20 | * Interrupt number used for passing control from FIQ to IRQ. | 18 | * Interrupt number used for passing control from FIQ to IRQ. |
21 | * IRQ12, described as reserved, has been selected. | 19 | * IRQ12, described as reserved, has been selected. |
diff --git a/arch/arm/mach-omap1/include/mach/board-ams-delta.h b/arch/arm/mach-omap1/include/mach/board-ams-delta.h new file mode 100644 index 000000000000..ad6f865d1f16 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/board-ams-delta.h | |||
@@ -0,0 +1,71 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/mach/board-ams-delta.h | ||
3 | * | ||
4 | * Copyright (C) 2006 Jonathan McDowell <noodles@earth.li> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation; either version 2 of the License, or (at your | ||
9 | * option) any later version. | ||
10 | * | ||
11 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
12 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
13 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
14 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
15 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
16 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
17 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
18 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
19 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
20 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License along | ||
23 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
24 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
25 | */ | ||
26 | #ifndef __ASM_ARCH_OMAP_AMS_DELTA_H | ||
27 | #define __ASM_ARCH_OMAP_AMS_DELTA_H | ||
28 | |||
29 | #if defined (CONFIG_MACH_AMS_DELTA) | ||
30 | |||
31 | #define AMD_DELTA_LATCH2_SCARD_RSTIN 0x0400 | ||
32 | #define AMD_DELTA_LATCH2_SCARD_CMDVCC 0x0800 | ||
33 | #define AMS_DELTA_LATCH2_MODEM_CODEC 0x2000 | ||
34 | |||
35 | #define AMS_DELTA_GPIO_PIN_KEYBRD_DATA 0 | ||
36 | #define AMS_DELTA_GPIO_PIN_KEYBRD_CLK 1 | ||
37 | #define AMS_DELTA_GPIO_PIN_MODEM_IRQ 2 | ||
38 | #define AMS_DELTA_GPIO_PIN_HOOK_SWITCH 4 | ||
39 | #define AMS_DELTA_GPIO_PIN_SCARD_NOFF 6 | ||
40 | #define AMS_DELTA_GPIO_PIN_SCARD_IO 7 | ||
41 | #define AMS_DELTA_GPIO_PIN_CONFIG 11 | ||
42 | #define AMS_DELTA_GPIO_PIN_NAND_RB 12 | ||
43 | |||
44 | #define AMS_DELTA_GPIO_PIN_LCD_VBLEN 240 | ||
45 | #define AMS_DELTA_GPIO_PIN_LCD_NDISP 241 | ||
46 | #define AMS_DELTA_GPIO_PIN_NAND_NCE 242 | ||
47 | #define AMS_DELTA_GPIO_PIN_NAND_NRE 243 | ||
48 | #define AMS_DELTA_GPIO_PIN_NAND_NWP 244 | ||
49 | #define AMS_DELTA_GPIO_PIN_NAND_NWE 245 | ||
50 | #define AMS_DELTA_GPIO_PIN_NAND_ALE 246 | ||
51 | #define AMS_DELTA_GPIO_PIN_NAND_CLE 247 | ||
52 | #define AMS_DELTA_GPIO_PIN_KEYBRD_PWR 248 | ||
53 | #define AMS_DELTA_GPIO_PIN_KEYBRD_DATAOUT 249 | ||
54 | #define AMS_DELTA_GPIO_PIN_SCARD_RSTIN 250 | ||
55 | #define AMS_DELTA_GPIO_PIN_SCARD_CMDVCC 251 | ||
56 | #define AMS_DELTA_GPIO_PIN_MODEM_NRESET 252 | ||
57 | #define AMS_DELTA_GPIO_PIN_MODEM_CODEC 253 | ||
58 | |||
59 | #define AMS_DELTA_LATCH2_GPIO_BASE AMS_DELTA_GPIO_PIN_LCD_VBLEN | ||
60 | #define AMS_DELTA_LATCH2_NGPIO 16 | ||
61 | |||
62 | #ifndef __ASSEMBLY__ | ||
63 | void ams_delta_latch_write(int base, int ngpio, u16 mask, u16 value); | ||
64 | #define ams_delta_latch2_write(mask, value) \ | ||
65 | ams_delta_latch_write(AMS_DELTA_LATCH2_GPIO_BASE, \ | ||
66 | AMS_DELTA_LATCH2_NGPIO, (mask), (value)) | ||
67 | #endif | ||
68 | |||
69 | #endif /* CONFIG_MACH_AMS_DELTA */ | ||
70 | |||
71 | #endif /* __ASM_ARCH_OMAP_AMS_DELTA_H */ | ||
diff --git a/arch/arm/mach-omap1/include/mach/board-sx1.h b/arch/arm/mach-omap1/include/mach/board-sx1.h new file mode 100644 index 000000000000..355adbdaae33 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/board-sx1.h | |||
@@ -0,0 +1,52 @@ | |||
1 | /* | ||
2 | * Siemens SX1 board definitions | ||
3 | * | ||
4 | * Copyright: Vovan888 at gmail com | ||
5 | * | ||
6 | * This package is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | ||
11 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | ||
12 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | */ | ||
14 | |||
15 | #ifndef __ASM_ARCH_SX1_I2C_CHIPS_H | ||
16 | #define __ASM_ARCH_SX1_I2C_CHIPS_H | ||
17 | |||
18 | #define SOFIA_MAX_LIGHT_VAL 0x2B | ||
19 | |||
20 | #define SOFIA_I2C_ADDR 0x32 | ||
21 | /* Sofia reg 3 bits masks */ | ||
22 | #define SOFIA_POWER1_REG 0x03 | ||
23 | |||
24 | #define SOFIA_USB_POWER 0x01 | ||
25 | #define SOFIA_MMC_POWER 0x04 | ||
26 | #define SOFIA_BLUETOOTH_POWER 0x08 | ||
27 | #define SOFIA_MMILIGHT_POWER 0x20 | ||
28 | |||
29 | #define SOFIA_POWER2_REG 0x04 | ||
30 | #define SOFIA_BACKLIGHT_REG 0x06 | ||
31 | #define SOFIA_KEYLIGHT_REG 0x07 | ||
32 | #define SOFIA_DIMMING_REG 0x09 | ||
33 | |||
34 | |||
35 | /* Function Prototypes for SX1 devices control on I2C bus */ | ||
36 | |||
37 | int sx1_setbacklight(u8 backlight); | ||
38 | int sx1_getbacklight(u8 *backlight); | ||
39 | int sx1_setkeylight(u8 keylight); | ||
40 | int sx1_getkeylight(u8 *keylight); | ||
41 | |||
42 | int sx1_setmmipower(u8 onoff); | ||
43 | int sx1_setusbpower(u8 onoff); | ||
44 | int sx1_i2c_read_byte(u8 devaddr, u8 regoffset, u8 *value); | ||
45 | int sx1_i2c_write_byte(u8 devaddr, u8 regoffset, u8 value); | ||
46 | |||
47 | /* MMC prototypes */ | ||
48 | |||
49 | extern void sx1_mmc_init(void); | ||
50 | extern void sx1_mmc_slot_cover_handler(void *arg, int state); | ||
51 | |||
52 | #endif /* __ASM_ARCH_SX1_I2C_CHIPS_H */ | ||
diff --git a/arch/arm/mach-omap1/include/mach/board-voiceblue.h b/arch/arm/mach-omap1/include/mach/board-voiceblue.h new file mode 100644 index 000000000000..27916b210f57 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/board-voiceblue.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2004 2N Telekomunikace, Ladislav Michl <michl@2n.cz> | ||
3 | * | ||
4 | * Hardware definitions for OMAP5910 based VoiceBlue board. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_ARCH_VOICEBLUE_H | ||
12 | #define __ASM_ARCH_VOICEBLUE_H | ||
13 | |||
14 | extern void voiceblue_wdt_enable(void); | ||
15 | extern void voiceblue_wdt_disable(void); | ||
16 | extern void voiceblue_wdt_ping(void); | ||
17 | |||
18 | #endif /* __ASM_ARCH_VOICEBLUE_H */ | ||
19 | |||
diff --git a/arch/arm/mach-omap1/include/mach/flash.h b/arch/arm/mach-omap1/include/mach/flash.h new file mode 100644 index 000000000000..0d88499b79e9 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/flash.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* | ||
2 | * Flash support for OMAP1 | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | |||
9 | #ifndef __OMAP_FLASH_H | ||
10 | #define __OMAP_FLASH_H | ||
11 | |||
12 | #include <linux/mtd/map.h> | ||
13 | |||
14 | struct platform_device; | ||
15 | extern void omap1_set_vpp(struct platform_device *pdev, int enable); | ||
16 | |||
17 | #endif | ||
diff --git a/arch/arm/mach-omap1/include/mach/gpio.h b/arch/arm/mach-omap1/include/mach/gpio.h index e737706a8fe1..ebf86c0f4f46 100644 --- a/arch/arm/mach-omap1/include/mach/gpio.h +++ b/arch/arm/mach-omap1/include/mach/gpio.h | |||
@@ -1,5 +1,3 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-omap1/include/mach/gpio.h | 2 | * arch/arm/mach-omap1/include/mach/gpio.h |
3 | */ | 3 | */ |
4 | |||
5 | #include <plat/gpio.h> | ||
diff --git a/arch/arm/mach-omap1/include/mach/hardware.h b/arch/arm/mach-omap1/include/mach/hardware.h index 01e35fa106b8..84248d250adb 100644 --- a/arch/arm/mach-omap1/include/mach/hardware.h +++ b/arch/arm/mach-omap1/include/mach/hardware.h | |||
@@ -1,11 +1,46 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-omap1/include/mach/hardware.h | 2 | * arch/arm/mach-omap1/include/mach/hardware.h |
3 | * | ||
4 | * Hardware definitions for TI OMAP processors and boards | ||
5 | * | ||
6 | * NOTE: Please put device driver specific defines into a separate header | ||
7 | * file for each driver. | ||
8 | * | ||
9 | * Copyright (C) 2001 RidgeRun, Inc. | ||
10 | * Author: RidgeRun, Inc. Greg Lonnon <glonnon@ridgerun.com> | ||
11 | * | ||
12 | * Reorganized for Linux-2.6 by Tony Lindgren <tony@atomide.com> | ||
13 | * and Dirk Behme <dirk.behme@de.bosch.com> | ||
14 | * | ||
15 | * This program is free software; you can redistribute it and/or modify it | ||
16 | * under the terms of the GNU General Public License as published by the | ||
17 | * Free Software Foundation; either version 2 of the License, or (at your | ||
18 | * option) any later version. | ||
19 | * | ||
20 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
21 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
22 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
23 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
24 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
25 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
26 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
27 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
29 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
30 | * | ||
31 | * You should have received a copy of the GNU General Public License along | ||
32 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
33 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
3 | */ | 34 | */ |
4 | 35 | ||
5 | #ifndef __MACH_HARDWARE_H | 36 | #ifndef __ASM_ARCH_OMAP_HARDWARE_H |
6 | #define __MACH_HARDWARE_H | 37 | #define __ASM_ARCH_OMAP_HARDWARE_H |
7 | 38 | ||
39 | #include <asm/sizes.h> | ||
8 | #ifndef __ASSEMBLER__ | 40 | #ifndef __ASSEMBLER__ |
41 | #include <asm/types.h> | ||
42 | #include <plat/cpu.h> | ||
43 | |||
9 | /* | 44 | /* |
10 | * NOTE: Please use ioremap + __raw_read/write where possible instead of these | 45 | * NOTE: Please use ioremap + __raw_read/write where possible instead of these |
11 | */ | 46 | */ |
@@ -35,7 +70,249 @@ static inline u32 omap_cs3_phys(void) | |||
35 | ? 0 : OMAP_CS3_PHYS; | 70 | ? 0 : OMAP_CS3_PHYS; |
36 | } | 71 | } |
37 | 72 | ||
73 | #endif /* ifndef __ASSEMBLER__ */ | ||
74 | |||
75 | #include <plat/serial.h> | ||
76 | |||
77 | /* | ||
78 | * --------------------------------------------------------------------------- | ||
79 | * Common definitions for all OMAP processors | ||
80 | * NOTE: Put all processor or board specific parts to the special header | ||
81 | * files. | ||
82 | * --------------------------------------------------------------------------- | ||
83 | */ | ||
84 | |||
85 | /* | ||
86 | * ---------------------------------------------------------------------------- | ||
87 | * Timers | ||
88 | * ---------------------------------------------------------------------------- | ||
89 | */ | ||
90 | #define OMAP_MPU_TIMER1_BASE (0xfffec500) | ||
91 | #define OMAP_MPU_TIMER2_BASE (0xfffec600) | ||
92 | #define OMAP_MPU_TIMER3_BASE (0xfffec700) | ||
93 | #define MPU_TIMER_FREE (1 << 6) | ||
94 | #define MPU_TIMER_CLOCK_ENABLE (1 << 5) | ||
95 | #define MPU_TIMER_AR (1 << 1) | ||
96 | #define MPU_TIMER_ST (1 << 0) | ||
97 | |||
98 | /* | ||
99 | * ---------------------------------------------------------------------------- | ||
100 | * Clocks | ||
101 | * ---------------------------------------------------------------------------- | ||
102 | */ | ||
103 | #define CLKGEN_REG_BASE (0xfffece00) | ||
104 | #define ARM_CKCTL (CLKGEN_REG_BASE + 0x0) | ||
105 | #define ARM_IDLECT1 (CLKGEN_REG_BASE + 0x4) | ||
106 | #define ARM_IDLECT2 (CLKGEN_REG_BASE + 0x8) | ||
107 | #define ARM_EWUPCT (CLKGEN_REG_BASE + 0xC) | ||
108 | #define ARM_RSTCT1 (CLKGEN_REG_BASE + 0x10) | ||
109 | #define ARM_RSTCT2 (CLKGEN_REG_BASE + 0x14) | ||
110 | #define ARM_SYSST (CLKGEN_REG_BASE + 0x18) | ||
111 | #define ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24) | ||
112 | |||
113 | #define CK_RATEF 1 | ||
114 | #define CK_IDLEF 2 | ||
115 | #define CK_ENABLEF 4 | ||
116 | #define CK_SELECTF 8 | ||
117 | #define SETARM_IDLE_SHIFT | ||
118 | |||
119 | /* DPLL control registers */ | ||
120 | #define DPLL_CTL (0xfffecf00) | ||
121 | |||
122 | /* DSP clock control. Must use __raw_readw() and __raw_writew() with these */ | ||
123 | #define DSP_CONFIG_REG_BASE IOMEM(0xe1008000) | ||
124 | #define DSP_CKCTL (DSP_CONFIG_REG_BASE + 0x0) | ||
125 | #define DSP_IDLECT1 (DSP_CONFIG_REG_BASE + 0x4) | ||
126 | #define DSP_IDLECT2 (DSP_CONFIG_REG_BASE + 0x8) | ||
127 | #define DSP_RSTCT2 (DSP_CONFIG_REG_BASE + 0x14) | ||
128 | |||
129 | /* | ||
130 | * --------------------------------------------------------------------------- | ||
131 | * UPLD | ||
132 | * --------------------------------------------------------------------------- | ||
133 | */ | ||
134 | #define ULPD_REG_BASE (0xfffe0800) | ||
135 | #define ULPD_IT_STATUS (ULPD_REG_BASE + 0x14) | ||
136 | #define ULPD_SETUP_ANALOG_CELL_3 (ULPD_REG_BASE + 0x24) | ||
137 | #define ULPD_CLOCK_CTRL (ULPD_REG_BASE + 0x30) | ||
138 | # define DIS_USB_PVCI_CLK (1 << 5) /* no USB/FAC synch */ | ||
139 | # define USB_MCLK_EN (1 << 4) /* enable W4_USB_CLKO */ | ||
140 | #define ULPD_SOFT_REQ (ULPD_REG_BASE + 0x34) | ||
141 | # define SOFT_UDC_REQ (1 << 4) | ||
142 | # define SOFT_USB_CLK_REQ (1 << 3) | ||
143 | # define SOFT_DPLL_REQ (1 << 0) | ||
144 | #define ULPD_DPLL_CTRL (ULPD_REG_BASE + 0x3c) | ||
145 | #define ULPD_STATUS_REQ (ULPD_REG_BASE + 0x40) | ||
146 | #define ULPD_APLL_CTRL (ULPD_REG_BASE + 0x4c) | ||
147 | #define ULPD_POWER_CTRL (ULPD_REG_BASE + 0x50) | ||
148 | #define ULPD_SOFT_DISABLE_REQ_REG (ULPD_REG_BASE + 0x68) | ||
149 | # define DIS_MMC2_DPLL_REQ (1 << 11) | ||
150 | # define DIS_MMC1_DPLL_REQ (1 << 10) | ||
151 | # define DIS_UART3_DPLL_REQ (1 << 9) | ||
152 | # define DIS_UART2_DPLL_REQ (1 << 8) | ||
153 | # define DIS_UART1_DPLL_REQ (1 << 7) | ||
154 | # define DIS_USB_HOST_DPLL_REQ (1 << 6) | ||
155 | #define ULPD_SDW_CLK_DIV_CTRL_SEL (ULPD_REG_BASE + 0x74) | ||
156 | #define ULPD_CAM_CLK_CTRL (ULPD_REG_BASE + 0x7c) | ||
157 | |||
158 | /* | ||
159 | * --------------------------------------------------------------------------- | ||
160 | * Watchdog timer | ||
161 | * --------------------------------------------------------------------------- | ||
162 | */ | ||
163 | |||
164 | /* Watchdog timer within the OMAP3.2 gigacell */ | ||
165 | #define OMAP_MPU_WATCHDOG_BASE (0xfffec800) | ||
166 | #define OMAP_WDT_TIMER (OMAP_MPU_WATCHDOG_BASE + 0x0) | ||
167 | #define OMAP_WDT_LOAD_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4) | ||
168 | #define OMAP_WDT_READ_TIM (OMAP_MPU_WATCHDOG_BASE + 0x4) | ||
169 | #define OMAP_WDT_TIMER_MODE (OMAP_MPU_WATCHDOG_BASE + 0x8) | ||
170 | |||
171 | /* | ||
172 | * --------------------------------------------------------------------------- | ||
173 | * Interrupts | ||
174 | * --------------------------------------------------------------------------- | ||
175 | */ | ||
176 | #ifdef CONFIG_ARCH_OMAP1 | ||
177 | |||
178 | /* | ||
179 | * XXX: These probably want to be moved to arch/arm/mach-omap/omap1/irq.c | ||
180 | * or something similar.. -- PFM. | ||
181 | */ | ||
182 | |||
183 | #define OMAP_IH1_BASE 0xfffecb00 | ||
184 | #define OMAP_IH2_BASE 0xfffe0000 | ||
185 | |||
186 | #define OMAP_IH1_ITR (OMAP_IH1_BASE + 0x00) | ||
187 | #define OMAP_IH1_MIR (OMAP_IH1_BASE + 0x04) | ||
188 | #define OMAP_IH1_SIR_IRQ (OMAP_IH1_BASE + 0x10) | ||
189 | #define OMAP_IH1_SIR_FIQ (OMAP_IH1_BASE + 0x14) | ||
190 | #define OMAP_IH1_CONTROL (OMAP_IH1_BASE + 0x18) | ||
191 | #define OMAP_IH1_ILR0 (OMAP_IH1_BASE + 0x1c) | ||
192 | #define OMAP_IH1_ISR (OMAP_IH1_BASE + 0x9c) | ||
193 | |||
194 | #define OMAP_IH2_ITR (OMAP_IH2_BASE + 0x00) | ||
195 | #define OMAP_IH2_MIR (OMAP_IH2_BASE + 0x04) | ||
196 | #define OMAP_IH2_SIR_IRQ (OMAP_IH2_BASE + 0x10) | ||
197 | #define OMAP_IH2_SIR_FIQ (OMAP_IH2_BASE + 0x14) | ||
198 | #define OMAP_IH2_CONTROL (OMAP_IH2_BASE + 0x18) | ||
199 | #define OMAP_IH2_ILR0 (OMAP_IH2_BASE + 0x1c) | ||
200 | #define OMAP_IH2_ISR (OMAP_IH2_BASE + 0x9c) | ||
201 | |||
202 | #define IRQ_ITR_REG_OFFSET 0x00 | ||
203 | #define IRQ_MIR_REG_OFFSET 0x04 | ||
204 | #define IRQ_SIR_IRQ_REG_OFFSET 0x10 | ||
205 | #define IRQ_SIR_FIQ_REG_OFFSET 0x14 | ||
206 | #define IRQ_CONTROL_REG_OFFSET 0x18 | ||
207 | #define IRQ_ISR_REG_OFFSET 0x9c | ||
208 | #define IRQ_ILR0_REG_OFFSET 0x1c | ||
209 | #define IRQ_GMR_REG_OFFSET 0xa0 | ||
210 | |||
38 | #endif | 211 | #endif |
39 | #endif | ||
40 | 212 | ||
41 | #include <plat/hardware.h> | 213 | /* |
214 | * ---------------------------------------------------------------------------- | ||
215 | * System control registers | ||
216 | * ---------------------------------------------------------------------------- | ||
217 | */ | ||
218 | #define MOD_CONF_CTRL_0 0xfffe1080 | ||
219 | #define MOD_CONF_CTRL_1 0xfffe1110 | ||
220 | |||
221 | /* | ||
222 | * ---------------------------------------------------------------------------- | ||
223 | * Pin multiplexing registers | ||
224 | * ---------------------------------------------------------------------------- | ||
225 | */ | ||
226 | #define FUNC_MUX_CTRL_0 0xfffe1000 | ||
227 | #define FUNC_MUX_CTRL_1 0xfffe1004 | ||
228 | #define FUNC_MUX_CTRL_2 0xfffe1008 | ||
229 | #define COMP_MODE_CTRL_0 0xfffe100c | ||
230 | #define FUNC_MUX_CTRL_3 0xfffe1010 | ||
231 | #define FUNC_MUX_CTRL_4 0xfffe1014 | ||
232 | #define FUNC_MUX_CTRL_5 0xfffe1018 | ||
233 | #define FUNC_MUX_CTRL_6 0xfffe101C | ||
234 | #define FUNC_MUX_CTRL_7 0xfffe1020 | ||
235 | #define FUNC_MUX_CTRL_8 0xfffe1024 | ||
236 | #define FUNC_MUX_CTRL_9 0xfffe1028 | ||
237 | #define FUNC_MUX_CTRL_A 0xfffe102C | ||
238 | #define FUNC_MUX_CTRL_B 0xfffe1030 | ||
239 | #define FUNC_MUX_CTRL_C 0xfffe1034 | ||
240 | #define FUNC_MUX_CTRL_D 0xfffe1038 | ||
241 | #define PULL_DWN_CTRL_0 0xfffe1040 | ||
242 | #define PULL_DWN_CTRL_1 0xfffe1044 | ||
243 | #define PULL_DWN_CTRL_2 0xfffe1048 | ||
244 | #define PULL_DWN_CTRL_3 0xfffe104c | ||
245 | #define PULL_DWN_CTRL_4 0xfffe10ac | ||
246 | |||
247 | /* OMAP-1610 specific multiplexing registers */ | ||
248 | #define FUNC_MUX_CTRL_E 0xfffe1090 | ||
249 | #define FUNC_MUX_CTRL_F 0xfffe1094 | ||
250 | #define FUNC_MUX_CTRL_10 0xfffe1098 | ||
251 | #define FUNC_MUX_CTRL_11 0xfffe109c | ||
252 | #define FUNC_MUX_CTRL_12 0xfffe10a0 | ||
253 | #define PU_PD_SEL_0 0xfffe10b4 | ||
254 | #define PU_PD_SEL_1 0xfffe10b8 | ||
255 | #define PU_PD_SEL_2 0xfffe10bc | ||
256 | #define PU_PD_SEL_3 0xfffe10c0 | ||
257 | #define PU_PD_SEL_4 0xfffe10c4 | ||
258 | |||
259 | /* Timer32K for 1610 and 1710*/ | ||
260 | #define OMAP_TIMER32K_BASE 0xFFFBC400 | ||
261 | |||
262 | /* | ||
263 | * --------------------------------------------------------------------------- | ||
264 | * TIPB bus interface | ||
265 | * --------------------------------------------------------------------------- | ||
266 | */ | ||
267 | #define TIPB_PUBLIC_CNTL_BASE 0xfffed300 | ||
268 | #define MPU_PUBLIC_TIPB_CNTL (TIPB_PUBLIC_CNTL_BASE + 0x8) | ||
269 | #define TIPB_PRIVATE_CNTL_BASE 0xfffeca00 | ||
270 | #define MPU_PRIVATE_TIPB_CNTL (TIPB_PRIVATE_CNTL_BASE + 0x8) | ||
271 | |||
272 | /* | ||
273 | * ---------------------------------------------------------------------------- | ||
274 | * MPUI interface | ||
275 | * ---------------------------------------------------------------------------- | ||
276 | */ | ||
277 | #define MPUI_BASE (0xfffec900) | ||
278 | #define MPUI_CTRL (MPUI_BASE + 0x0) | ||
279 | #define MPUI_DEBUG_ADDR (MPUI_BASE + 0x4) | ||
280 | #define MPUI_DEBUG_DATA (MPUI_BASE + 0x8) | ||
281 | #define MPUI_DEBUG_FLAG (MPUI_BASE + 0xc) | ||
282 | #define MPUI_STATUS_REG (MPUI_BASE + 0x10) | ||
283 | #define MPUI_DSP_STATUS (MPUI_BASE + 0x14) | ||
284 | #define MPUI_DSP_BOOT_CONFIG (MPUI_BASE + 0x18) | ||
285 | #define MPUI_DSP_API_CONFIG (MPUI_BASE + 0x1c) | ||
286 | |||
287 | /* | ||
288 | * ---------------------------------------------------------------------------- | ||
289 | * LED Pulse Generator | ||
290 | * ---------------------------------------------------------------------------- | ||
291 | */ | ||
292 | #define OMAP_LPG1_BASE 0xfffbd000 | ||
293 | #define OMAP_LPG2_BASE 0xfffbd800 | ||
294 | #define OMAP_LPG1_LCR (OMAP_LPG1_BASE + 0x00) | ||
295 | #define OMAP_LPG1_PMR (OMAP_LPG1_BASE + 0x04) | ||
296 | #define OMAP_LPG2_LCR (OMAP_LPG2_BASE + 0x00) | ||
297 | #define OMAP_LPG2_PMR (OMAP_LPG2_BASE + 0x04) | ||
298 | |||
299 | /* | ||
300 | * ---------------------------------------------------------------------------- | ||
301 | * Pulse-Width Light | ||
302 | * ---------------------------------------------------------------------------- | ||
303 | */ | ||
304 | #define OMAP_PWL_BASE 0xfffb5800 | ||
305 | #define OMAP_PWL_ENABLE (OMAP_PWL_BASE + 0x00) | ||
306 | #define OMAP_PWL_CLK_ENABLE (OMAP_PWL_BASE + 0x04) | ||
307 | |||
308 | /* | ||
309 | * --------------------------------------------------------------------------- | ||
310 | * Processor specific defines | ||
311 | * --------------------------------------------------------------------------- | ||
312 | */ | ||
313 | |||
314 | #include "omap7xx.h" | ||
315 | #include "omap1510.h" | ||
316 | #include "omap16xx.h" | ||
317 | |||
318 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ | ||
diff --git a/arch/arm/mach-omap1/include/mach/irda.h b/arch/arm/mach-omap1/include/mach/irda.h new file mode 100644 index 000000000000..40f60339d1c6 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/irda.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/mach/irda.h | ||
3 | * | ||
4 | * Copyright (C) 2005-2006 Komal Shah <komal_shah802003@yahoo.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | #ifndef ASMARM_ARCH_IRDA_H | ||
11 | #define ASMARM_ARCH_IRDA_H | ||
12 | |||
13 | /* board specific transceiver capabilities */ | ||
14 | |||
15 | #define IR_SEL 1 /* Selects IrDA */ | ||
16 | #define IR_SIRMODE 2 | ||
17 | #define IR_FIRMODE 4 | ||
18 | #define IR_MIRMODE 8 | ||
19 | |||
20 | struct omap_irda_config { | ||
21 | int transceiver_cap; | ||
22 | int (*transceiver_mode)(struct device *dev, int mode); | ||
23 | int (*select_irda)(struct device *dev, int state); | ||
24 | int rx_channel; | ||
25 | int tx_channel; | ||
26 | unsigned long dest_start; | ||
27 | unsigned long src_start; | ||
28 | int tx_trigger; | ||
29 | int rx_trigger; | ||
30 | int mode; | ||
31 | }; | ||
32 | |||
33 | #endif | ||
diff --git a/arch/arm/mach-omap1/include/mach/irqs.h b/arch/arm/mach-omap1/include/mach/irqs.h index 9292fdc1cb0b..729992d7d26a 100644 --- a/arch/arm/mach-omap1/include/mach/irqs.h +++ b/arch/arm/mach-omap1/include/mach/irqs.h | |||
@@ -1,5 +1,268 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-omap1/include/mach/irqs.h | 2 | * arch/arm/plat-omap/include/mach/irqs.h |
3 | * | ||
4 | * Copyright (C) Greg Lonnon 2001 | ||
5 | * Updated for OMAP-1610 by Tony Lindgren <tony@atomide.com> | ||
6 | * | ||
7 | * Copyright (C) 2009 Texas Instruments | ||
8 | * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License as published by | ||
12 | * the Free Software Foundation; either version 2 of the License, or | ||
13 | * (at your option) any later version. | ||
14 | * | ||
15 | * This program is distributed in the hope that it will be useful, | ||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
18 | * GNU General Public License for more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU General Public License | ||
21 | * along with this program; if not, write to the Free Software | ||
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
23 | * | ||
24 | * NOTE: The interrupt vectors for the OMAP-1509, OMAP-1510, and OMAP-1610 | ||
25 | * are different. | ||
3 | */ | 26 | */ |
4 | 27 | ||
5 | #include <plat/irqs.h> | 28 | #ifndef __ASM_ARCH_OMAP15XX_IRQS_H |
29 | #define __ASM_ARCH_OMAP15XX_IRQS_H | ||
30 | |||
31 | /* | ||
32 | * IRQ numbers for interrupt handler 1 | ||
33 | * | ||
34 | * NOTE: See also the OMAP-1510 and 1610 specific IRQ numbers below | ||
35 | * | ||
36 | */ | ||
37 | #define INT_CAMERA 1 | ||
38 | #define INT_FIQ 3 | ||
39 | #define INT_RTDX 6 | ||
40 | #define INT_DSP_MMU_ABORT 7 | ||
41 | #define INT_HOST 8 | ||
42 | #define INT_ABORT 9 | ||
43 | #define INT_BRIDGE_PRIV 13 | ||
44 | #define INT_GPIO_BANK1 14 | ||
45 | #define INT_UART3 15 | ||
46 | #define INT_TIMER3 16 | ||
47 | #define INT_DMA_CH0_6 19 | ||
48 | #define INT_DMA_CH1_7 20 | ||
49 | #define INT_DMA_CH2_8 21 | ||
50 | #define INT_DMA_CH3 22 | ||
51 | #define INT_DMA_CH4 23 | ||
52 | #define INT_DMA_CH5 24 | ||
53 | #define INT_TIMER1 26 | ||
54 | #define INT_WD_TIMER 27 | ||
55 | #define INT_BRIDGE_PUB 28 | ||
56 | #define INT_TIMER2 30 | ||
57 | #define INT_LCD_CTRL 31 | ||
58 | |||
59 | /* | ||
60 | * OMAP-1510 specific IRQ numbers for interrupt handler 1 | ||
61 | */ | ||
62 | #define INT_1510_IH2_IRQ 0 | ||
63 | #define INT_1510_RES2 2 | ||
64 | #define INT_1510_SPI_TX 4 | ||
65 | #define INT_1510_SPI_RX 5 | ||
66 | #define INT_1510_DSP_MAILBOX1 10 | ||
67 | #define INT_1510_DSP_MAILBOX2 11 | ||
68 | #define INT_1510_RES12 12 | ||
69 | #define INT_1510_LB_MMU 17 | ||
70 | #define INT_1510_RES18 18 | ||
71 | #define INT_1510_LOCAL_BUS 29 | ||
72 | |||
73 | /* | ||
74 | * OMAP-1610 specific IRQ numbers for interrupt handler 1 | ||
75 | */ | ||
76 | #define INT_1610_IH2_IRQ INT_1510_IH2_IRQ | ||
77 | #define INT_1610_IH2_FIQ 2 | ||
78 | #define INT_1610_McBSP2_TX 4 | ||
79 | #define INT_1610_McBSP2_RX 5 | ||
80 | #define INT_1610_DSP_MAILBOX1 10 | ||
81 | #define INT_1610_DSP_MAILBOX2 11 | ||
82 | #define INT_1610_LCD_LINE 12 | ||
83 | #define INT_1610_GPTIMER1 17 | ||
84 | #define INT_1610_GPTIMER2 18 | ||
85 | #define INT_1610_SSR_FIFO_0 29 | ||
86 | |||
87 | /* | ||
88 | * OMAP-7xx specific IRQ numbers for interrupt handler 1 | ||
89 | */ | ||
90 | #define INT_7XX_IH2_FIQ 0 | ||
91 | #define INT_7XX_IH2_IRQ 1 | ||
92 | #define INT_7XX_USB_NON_ISO 2 | ||
93 | #define INT_7XX_USB_ISO 3 | ||
94 | #define INT_7XX_ICR 4 | ||
95 | #define INT_7XX_EAC 5 | ||
96 | #define INT_7XX_GPIO_BANK1 6 | ||
97 | #define INT_7XX_GPIO_BANK2 7 | ||
98 | #define INT_7XX_GPIO_BANK3 8 | ||
99 | #define INT_7XX_McBSP2TX 10 | ||
100 | #define INT_7XX_McBSP2RX 11 | ||
101 | #define INT_7XX_McBSP2RX_OVF 12 | ||
102 | #define INT_7XX_LCD_LINE 14 | ||
103 | #define INT_7XX_GSM_PROTECT 15 | ||
104 | #define INT_7XX_TIMER3 16 | ||
105 | #define INT_7XX_GPIO_BANK5 17 | ||
106 | #define INT_7XX_GPIO_BANK6 18 | ||
107 | #define INT_7XX_SPGIO_WR 29 | ||
108 | |||
109 | /* | ||
110 | * IRQ numbers for interrupt handler 2 | ||
111 | * | ||
112 | * NOTE: See also the OMAP-1510 and 1610 specific IRQ numbers below | ||
113 | */ | ||
114 | #define IH2_BASE 32 | ||
115 | |||
116 | #define INT_KEYBOARD (1 + IH2_BASE) | ||
117 | #define INT_uWireTX (2 + IH2_BASE) | ||
118 | #define INT_uWireRX (3 + IH2_BASE) | ||
119 | #define INT_I2C (4 + IH2_BASE) | ||
120 | #define INT_MPUIO (5 + IH2_BASE) | ||
121 | #define INT_USB_HHC_1 (6 + IH2_BASE) | ||
122 | #define INT_McBSP3TX (10 + IH2_BASE) | ||
123 | #define INT_McBSP3RX (11 + IH2_BASE) | ||
124 | #define INT_McBSP1TX (12 + IH2_BASE) | ||
125 | #define INT_McBSP1RX (13 + IH2_BASE) | ||
126 | #define INT_UART1 (14 + IH2_BASE) | ||
127 | #define INT_UART2 (15 + IH2_BASE) | ||
128 | #define INT_BT_MCSI1TX (16 + IH2_BASE) | ||
129 | #define INT_BT_MCSI1RX (17 + IH2_BASE) | ||
130 | #define INT_SOSSI_MATCH (19 + IH2_BASE) | ||
131 | #define INT_USB_W2FC (20 + IH2_BASE) | ||
132 | #define INT_1WIRE (21 + IH2_BASE) | ||
133 | #define INT_OS_TIMER (22 + IH2_BASE) | ||
134 | #define INT_MMC (23 + IH2_BASE) | ||
135 | #define INT_GAUGE_32K (24 + IH2_BASE) | ||
136 | #define INT_RTC_TIMER (25 + IH2_BASE) | ||
137 | #define INT_RTC_ALARM (26 + IH2_BASE) | ||
138 | #define INT_MEM_STICK (27 + IH2_BASE) | ||
139 | |||
140 | /* | ||
141 | * OMAP-1510 specific IRQ numbers for interrupt handler 2 | ||
142 | */ | ||
143 | #define INT_1510_DSP_MMU (28 + IH2_BASE) | ||
144 | #define INT_1510_COM_SPI_RO (31 + IH2_BASE) | ||
145 | |||
146 | /* | ||
147 | * OMAP-1610 specific IRQ numbers for interrupt handler 2 | ||
148 | */ | ||
149 | #define INT_1610_FAC (0 + IH2_BASE) | ||
150 | #define INT_1610_USB_HHC_2 (7 + IH2_BASE) | ||
151 | #define INT_1610_USB_OTG (8 + IH2_BASE) | ||
152 | #define INT_1610_SoSSI (9 + IH2_BASE) | ||
153 | #define INT_1610_SoSSI_MATCH (19 + IH2_BASE) | ||
154 | #define INT_1610_DSP_MMU (28 + IH2_BASE) | ||
155 | #define INT_1610_McBSP2RX_OF (31 + IH2_BASE) | ||
156 | #define INT_1610_STI (32 + IH2_BASE) | ||
157 | #define INT_1610_STI_WAKEUP (33 + IH2_BASE) | ||
158 | #define INT_1610_GPTIMER3 (34 + IH2_BASE) | ||
159 | #define INT_1610_GPTIMER4 (35 + IH2_BASE) | ||
160 | #define INT_1610_GPTIMER5 (36 + IH2_BASE) | ||
161 | #define INT_1610_GPTIMER6 (37 + IH2_BASE) | ||
162 | #define INT_1610_GPTIMER7 (38 + IH2_BASE) | ||
163 | #define INT_1610_GPTIMER8 (39 + IH2_BASE) | ||
164 | #define INT_1610_GPIO_BANK2 (40 + IH2_BASE) | ||
165 | #define INT_1610_GPIO_BANK3 (41 + IH2_BASE) | ||
166 | #define INT_1610_MMC2 (42 + IH2_BASE) | ||
167 | #define INT_1610_CF (43 + IH2_BASE) | ||
168 | #define INT_1610_WAKE_UP_REQ (46 + IH2_BASE) | ||
169 | #define INT_1610_GPIO_BANK4 (48 + IH2_BASE) | ||
170 | #define INT_1610_SPI (49 + IH2_BASE) | ||
171 | #define INT_1610_DMA_CH6 (53 + IH2_BASE) | ||
172 | #define INT_1610_DMA_CH7 (54 + IH2_BASE) | ||
173 | #define INT_1610_DMA_CH8 (55 + IH2_BASE) | ||
174 | #define INT_1610_DMA_CH9 (56 + IH2_BASE) | ||
175 | #define INT_1610_DMA_CH10 (57 + IH2_BASE) | ||
176 | #define INT_1610_DMA_CH11 (58 + IH2_BASE) | ||
177 | #define INT_1610_DMA_CH12 (59 + IH2_BASE) | ||
178 | #define INT_1610_DMA_CH13 (60 + IH2_BASE) | ||
179 | #define INT_1610_DMA_CH14 (61 + IH2_BASE) | ||
180 | #define INT_1610_DMA_CH15 (62 + IH2_BASE) | ||
181 | #define INT_1610_NAND (63 + IH2_BASE) | ||
182 | #define INT_1610_SHA1MD5 (91 + IH2_BASE) | ||
183 | |||
184 | /* | ||
185 | * OMAP-7xx specific IRQ numbers for interrupt handler 2 | ||
186 | */ | ||
187 | #define INT_7XX_HW_ERRORS (0 + IH2_BASE) | ||
188 | #define INT_7XX_NFIQ_PWR_FAIL (1 + IH2_BASE) | ||
189 | #define INT_7XX_CFCD (2 + IH2_BASE) | ||
190 | #define INT_7XX_CFIREQ (3 + IH2_BASE) | ||
191 | #define INT_7XX_I2C (4 + IH2_BASE) | ||
192 | #define INT_7XX_PCC (5 + IH2_BASE) | ||
193 | #define INT_7XX_MPU_EXT_NIRQ (6 + IH2_BASE) | ||
194 | #define INT_7XX_SPI_100K_1 (7 + IH2_BASE) | ||
195 | #define INT_7XX_SYREN_SPI (8 + IH2_BASE) | ||
196 | #define INT_7XX_VLYNQ (9 + IH2_BASE) | ||
197 | #define INT_7XX_GPIO_BANK4 (10 + IH2_BASE) | ||
198 | #define INT_7XX_McBSP1TX (11 + IH2_BASE) | ||
199 | #define INT_7XX_McBSP1RX (12 + IH2_BASE) | ||
200 | #define INT_7XX_McBSP1RX_OF (13 + IH2_BASE) | ||
201 | #define INT_7XX_UART_MODEM_IRDA_2 (14 + IH2_BASE) | ||
202 | #define INT_7XX_UART_MODEM_1 (15 + IH2_BASE) | ||
203 | #define INT_7XX_MCSI (16 + IH2_BASE) | ||
204 | #define INT_7XX_uWireTX (17 + IH2_BASE) | ||
205 | #define INT_7XX_uWireRX (18 + IH2_BASE) | ||
206 | #define INT_7XX_SMC_CD (19 + IH2_BASE) | ||
207 | #define INT_7XX_SMC_IREQ (20 + IH2_BASE) | ||
208 | #define INT_7XX_HDQ_1WIRE (21 + IH2_BASE) | ||
209 | #define INT_7XX_TIMER32K (22 + IH2_BASE) | ||
210 | #define INT_7XX_MMC_SDIO (23 + IH2_BASE) | ||
211 | #define INT_7XX_UPLD (24 + IH2_BASE) | ||
212 | #define INT_7XX_USB_HHC_1 (27 + IH2_BASE) | ||
213 | #define INT_7XX_USB_HHC_2 (28 + IH2_BASE) | ||
214 | #define INT_7XX_USB_GENI (29 + IH2_BASE) | ||
215 | #define INT_7XX_USB_OTG (30 + IH2_BASE) | ||
216 | #define INT_7XX_CAMERA_IF (31 + IH2_BASE) | ||
217 | #define INT_7XX_RNG (32 + IH2_BASE) | ||
218 | #define INT_7XX_DUAL_MODE_TIMER (33 + IH2_BASE) | ||
219 | #define INT_7XX_DBB_RF_EN (34 + IH2_BASE) | ||
220 | #define INT_7XX_MPUIO_KEYPAD (35 + IH2_BASE) | ||
221 | #define INT_7XX_SHA1_MD5 (36 + IH2_BASE) | ||
222 | #define INT_7XX_SPI_100K_2 (37 + IH2_BASE) | ||
223 | #define INT_7XX_RNG_IDLE (38 + IH2_BASE) | ||
224 | #define INT_7XX_MPUIO (39 + IH2_BASE) | ||
225 | #define INT_7XX_LLPC_LCD_CTRL_CAN_BE_OFF (40 + IH2_BASE) | ||
226 | #define INT_7XX_LLPC_OE_FALLING (41 + IH2_BASE) | ||
227 | #define INT_7XX_LLPC_OE_RISING (42 + IH2_BASE) | ||
228 | #define INT_7XX_LLPC_VSYNC (43 + IH2_BASE) | ||
229 | #define INT_7XX_WAKE_UP_REQ (46 + IH2_BASE) | ||
230 | #define INT_7XX_DMA_CH6 (53 + IH2_BASE) | ||
231 | #define INT_7XX_DMA_CH7 (54 + IH2_BASE) | ||
232 | #define INT_7XX_DMA_CH8 (55 + IH2_BASE) | ||
233 | #define INT_7XX_DMA_CH9 (56 + IH2_BASE) | ||
234 | #define INT_7XX_DMA_CH10 (57 + IH2_BASE) | ||
235 | #define INT_7XX_DMA_CH11 (58 + IH2_BASE) | ||
236 | #define INT_7XX_DMA_CH12 (59 + IH2_BASE) | ||
237 | #define INT_7XX_DMA_CH13 (60 + IH2_BASE) | ||
238 | #define INT_7XX_DMA_CH14 (61 + IH2_BASE) | ||
239 | #define INT_7XX_DMA_CH15 (62 + IH2_BASE) | ||
240 | #define INT_7XX_NAND (63 + IH2_BASE) | ||
241 | |||
242 | /* Max. 128 level 2 IRQs (OMAP1610), 192 GPIOs (OMAP730/850) and | ||
243 | * 16 MPUIO lines */ | ||
244 | #define OMAP_MAX_GPIO_LINES 192 | ||
245 | #define IH_GPIO_BASE (128 + IH2_BASE) | ||
246 | #define IH_MPUIO_BASE (OMAP_MAX_GPIO_LINES + IH_GPIO_BASE) | ||
247 | #define OMAP_IRQ_END (IH_MPUIO_BASE + 16) | ||
248 | |||
249 | /* External FPGA handles interrupts on Innovator boards */ | ||
250 | #define OMAP_FPGA_IRQ_BASE (OMAP_IRQ_END) | ||
251 | #ifdef CONFIG_MACH_OMAP_INNOVATOR | ||
252 | #define OMAP_FPGA_NR_IRQS 24 | ||
253 | #else | ||
254 | #define OMAP_FPGA_NR_IRQS 0 | ||
255 | #endif | ||
256 | #define OMAP_FPGA_IRQ_END (OMAP_FPGA_IRQ_BASE + OMAP_FPGA_NR_IRQS) | ||
257 | |||
258 | #define NR_IRQS OMAP_FPGA_IRQ_END | ||
259 | |||
260 | #define OMAP_IRQ_BIT(irq) (1 << ((irq) % 32)) | ||
261 | |||
262 | #include <mach/hardware.h> | ||
263 | |||
264 | #ifdef CONFIG_FIQ | ||
265 | #define FIQ_START 1024 | ||
266 | #endif | ||
267 | |||
268 | #endif | ||
diff --git a/arch/arm/mach-omap1/include/mach/mux.h b/arch/arm/mach-omap1/include/mach/mux.h new file mode 100644 index 000000000000..323948959200 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/mux.h | |||
@@ -0,0 +1,454 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/mach/mux.h | ||
3 | * | ||
4 | * Table of the Omap register configurations for the FUNC_MUX and | ||
5 | * PULL_DWN combinations. | ||
6 | * | ||
7 | * Copyright (C) 2004 - 2008 Texas Instruments Inc. | ||
8 | * Copyright (C) 2003 - 2008 Nokia Corporation | ||
9 | * | ||
10 | * Written by Tony Lindgren | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License as published by | ||
14 | * the Free Software Foundation; either version 2 of the License, or | ||
15 | * (at your option) any later version. | ||
16 | * | ||
17 | * This program is distributed in the hope that it will be useful, | ||
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
20 | * GNU General Public License for more details. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License | ||
23 | * along with this program; if not, write to the Free Software | ||
24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
25 | * | ||
26 | * NOTE: Please use the following naming style for new pin entries. | ||
27 | * For example, W8_1610_MMC2_DAT0, where: | ||
28 | * - W8 = ball | ||
29 | * - 1610 = 1510 or 1610, none if common for both 1510 and 1610 | ||
30 | * - MMC2_DAT0 = function | ||
31 | */ | ||
32 | |||
33 | #ifndef __ASM_ARCH_MUX_H | ||
34 | #define __ASM_ARCH_MUX_H | ||
35 | |||
36 | #define PU_PD_SEL_NA 0 /* No pu_pd reg available */ | ||
37 | #define PULL_DWN_CTRL_NA 0 /* No pull-down control needed */ | ||
38 | |||
39 | #ifdef CONFIG_OMAP_MUX_DEBUG | ||
40 | #define MUX_REG(reg, mode_offset, mode) .mux_reg_name = "FUNC_MUX_CTRL_"#reg, \ | ||
41 | .mux_reg = FUNC_MUX_CTRL_##reg, \ | ||
42 | .mask_offset = mode_offset, \ | ||
43 | .mask = mode, | ||
44 | |||
45 | #define PULL_REG(reg, bit, status) .pull_name = "PULL_DWN_CTRL_"#reg, \ | ||
46 | .pull_reg = PULL_DWN_CTRL_##reg, \ | ||
47 | .pull_bit = bit, \ | ||
48 | .pull_val = status, | ||
49 | |||
50 | #define PU_PD_REG(reg, status) .pu_pd_name = "PU_PD_SEL_"#reg, \ | ||
51 | .pu_pd_reg = PU_PD_SEL_##reg, \ | ||
52 | .pu_pd_val = status, | ||
53 | |||
54 | #define MUX_REG_7XX(reg, mode_offset, mode) .mux_reg_name = "OMAP7XX_IO_CONF_"#reg, \ | ||
55 | .mux_reg = OMAP7XX_IO_CONF_##reg, \ | ||
56 | .mask_offset = mode_offset, \ | ||
57 | .mask = mode, | ||
58 | |||
59 | #define PULL_REG_7XX(reg, bit, status) .pull_name = "OMAP7XX_IO_CONF_"#reg, \ | ||
60 | .pull_reg = OMAP7XX_IO_CONF_##reg, \ | ||
61 | .pull_bit = bit, \ | ||
62 | .pull_val = status, | ||
63 | |||
64 | #else | ||
65 | |||
66 | #define MUX_REG(reg, mode_offset, mode) .mux_reg = FUNC_MUX_CTRL_##reg, \ | ||
67 | .mask_offset = mode_offset, \ | ||
68 | .mask = mode, | ||
69 | |||
70 | #define PULL_REG(reg, bit, status) .pull_reg = PULL_DWN_CTRL_##reg, \ | ||
71 | .pull_bit = bit, \ | ||
72 | .pull_val = status, | ||
73 | |||
74 | #define PU_PD_REG(reg, status) .pu_pd_reg = PU_PD_SEL_##reg, \ | ||
75 | .pu_pd_val = status, | ||
76 | |||
77 | #define MUX_REG_7XX(reg, mode_offset, mode) \ | ||
78 | .mux_reg = OMAP7XX_IO_CONF_##reg, \ | ||
79 | .mask_offset = mode_offset, \ | ||
80 | .mask = mode, | ||
81 | |||
82 | #define PULL_REG_7XX(reg, bit, status) .pull_reg = OMAP7XX_IO_CONF_##reg, \ | ||
83 | .pull_bit = bit, \ | ||
84 | .pull_val = status, | ||
85 | |||
86 | #endif /* CONFIG_OMAP_MUX_DEBUG */ | ||
87 | |||
88 | #define MUX_CFG(desc, mux_reg, mode_offset, mode, \ | ||
89 | pull_reg, pull_bit, pull_status, \ | ||
90 | pu_pd_reg, pu_pd_status, debug_status) \ | ||
91 | { \ | ||
92 | .name = desc, \ | ||
93 | .debug = debug_status, \ | ||
94 | MUX_REG(mux_reg, mode_offset, mode) \ | ||
95 | PULL_REG(pull_reg, pull_bit, pull_status) \ | ||
96 | PU_PD_REG(pu_pd_reg, pu_pd_status) \ | ||
97 | }, | ||
98 | |||
99 | |||
100 | /* | ||
101 | * OMAP730/850 has a slightly different config for the pin mux. | ||
102 | * - config regs are the OMAP7XX_IO_CONF_x regs (see omap7xx.h) regs and | ||
103 | * not the FUNC_MUX_CTRL_x regs from hardware.h | ||
104 | * - for pull-up/down, only has one enable bit which is is in the same register | ||
105 | * as mux config | ||
106 | */ | ||
107 | #define MUX_CFG_7XX(desc, mux_reg, mode_offset, mode, \ | ||
108 | pull_bit, pull_status, debug_status)\ | ||
109 | { \ | ||
110 | .name = desc, \ | ||
111 | .debug = debug_status, \ | ||
112 | MUX_REG_7XX(mux_reg, mode_offset, mode) \ | ||
113 | PULL_REG_7XX(mux_reg, pull_bit, pull_status) \ | ||
114 | PU_PD_REG(NA, 0) \ | ||
115 | }, | ||
116 | |||
117 | struct pin_config { | ||
118 | char *name; | ||
119 | const unsigned int mux_reg; | ||
120 | unsigned char debug; | ||
121 | |||
122 | const unsigned char mask_offset; | ||
123 | const unsigned char mask; | ||
124 | |||
125 | const char *pull_name; | ||
126 | const unsigned int pull_reg; | ||
127 | const unsigned char pull_val; | ||
128 | const unsigned char pull_bit; | ||
129 | |||
130 | const char *pu_pd_name; | ||
131 | const unsigned int pu_pd_reg; | ||
132 | const unsigned char pu_pd_val; | ||
133 | |||
134 | #if defined(CONFIG_OMAP_MUX_DEBUG) || defined(CONFIG_OMAP_MUX_WARNINGS) | ||
135 | const char *mux_reg_name; | ||
136 | #endif | ||
137 | |||
138 | }; | ||
139 | |||
140 | enum omap7xx_index { | ||
141 | /* OMAP 730 keyboard */ | ||
142 | E2_7XX_KBR0, | ||
143 | J7_7XX_KBR1, | ||
144 | E1_7XX_KBR2, | ||
145 | F3_7XX_KBR3, | ||
146 | D2_7XX_KBR4, | ||
147 | C2_7XX_KBC0, | ||
148 | D3_7XX_KBC1, | ||
149 | E4_7XX_KBC2, | ||
150 | F4_7XX_KBC3, | ||
151 | E3_7XX_KBC4, | ||
152 | |||
153 | /* USB */ | ||
154 | AA17_7XX_USB_DM, | ||
155 | W16_7XX_USB_PU_EN, | ||
156 | W17_7XX_USB_VBUSI, | ||
157 | W18_7XX_USB_DMCK_OUT, | ||
158 | W19_7XX_USB_DCRST, | ||
159 | |||
160 | /* MMC */ | ||
161 | MMC_7XX_CMD, | ||
162 | MMC_7XX_CLK, | ||
163 | MMC_7XX_DAT0, | ||
164 | |||
165 | /* I2C */ | ||
166 | I2C_7XX_SCL, | ||
167 | I2C_7XX_SDA, | ||
168 | |||
169 | /* SPI */ | ||
170 | SPI_7XX_1, | ||
171 | SPI_7XX_2, | ||
172 | SPI_7XX_3, | ||
173 | SPI_7XX_4, | ||
174 | SPI_7XX_5, | ||
175 | SPI_7XX_6, | ||
176 | |||
177 | /* UART */ | ||
178 | UART_7XX_1, | ||
179 | UART_7XX_2, | ||
180 | }; | ||
181 | |||
182 | enum omap1xxx_index { | ||
183 | /* UART1 (BT_UART_GATING)*/ | ||
184 | UART1_TX = 0, | ||
185 | UART1_RTS, | ||
186 | |||
187 | /* UART2 (COM_UART_GATING)*/ | ||
188 | UART2_TX, | ||
189 | UART2_RX, | ||
190 | UART2_CTS, | ||
191 | UART2_RTS, | ||
192 | |||
193 | /* UART3 (GIGA_UART_GATING) */ | ||
194 | UART3_TX, | ||
195 | UART3_RX, | ||
196 | UART3_CTS, | ||
197 | UART3_RTS, | ||
198 | UART3_CLKREQ, | ||
199 | UART3_BCLK, /* 12MHz clock out */ | ||
200 | Y15_1610_UART3_RTS, | ||
201 | |||
202 | /* PWT & PWL */ | ||
203 | PWT, | ||
204 | PWL, | ||
205 | |||
206 | /* USB master generic */ | ||
207 | R18_USB_VBUS, | ||
208 | R18_1510_USB_GPIO0, | ||
209 | W4_USB_PUEN, | ||
210 | W4_USB_CLKO, | ||
211 | W4_USB_HIGHZ, | ||
212 | W4_GPIO58, | ||
213 | |||
214 | /* USB1 master */ | ||
215 | USB1_SUSP, | ||
216 | USB1_SEO, | ||
217 | W13_1610_USB1_SE0, | ||
218 | USB1_TXEN, | ||
219 | USB1_TXD, | ||
220 | USB1_VP, | ||
221 | USB1_VM, | ||
222 | USB1_RCV, | ||
223 | USB1_SPEED, | ||
224 | R13_1610_USB1_SPEED, | ||
225 | R13_1710_USB1_SE0, | ||
226 | |||
227 | /* USB2 master */ | ||
228 | USB2_SUSP, | ||
229 | USB2_VP, | ||
230 | USB2_TXEN, | ||
231 | USB2_VM, | ||
232 | USB2_RCV, | ||
233 | USB2_SEO, | ||
234 | USB2_TXD, | ||
235 | |||
236 | /* OMAP-1510 GPIO */ | ||
237 | R18_1510_GPIO0, | ||
238 | R19_1510_GPIO1, | ||
239 | M14_1510_GPIO2, | ||
240 | |||
241 | /* OMAP1610 GPIO */ | ||
242 | P18_1610_GPIO3, | ||
243 | Y15_1610_GPIO17, | ||
244 | |||
245 | /* OMAP-1710 GPIO */ | ||
246 | R18_1710_GPIO0, | ||
247 | V2_1710_GPIO10, | ||
248 | N21_1710_GPIO14, | ||
249 | W15_1710_GPIO40, | ||
250 | |||
251 | /* MPUIO */ | ||
252 | MPUIO2, | ||
253 | N15_1610_MPUIO2, | ||
254 | MPUIO4, | ||
255 | MPUIO5, | ||
256 | T20_1610_MPUIO5, | ||
257 | W11_1610_MPUIO6, | ||
258 | V10_1610_MPUIO7, | ||
259 | W11_1610_MPUIO9, | ||
260 | V10_1610_MPUIO10, | ||
261 | W10_1610_MPUIO11, | ||
262 | E20_1610_MPUIO13, | ||
263 | U20_1610_MPUIO14, | ||
264 | E19_1610_MPUIO15, | ||
265 | |||
266 | /* MCBSP2 */ | ||
267 | MCBSP2_CLKR, | ||
268 | MCBSP2_CLKX, | ||
269 | MCBSP2_DR, | ||
270 | MCBSP2_DX, | ||
271 | MCBSP2_FSR, | ||
272 | MCBSP2_FSX, | ||
273 | |||
274 | /* MCBSP3 */ | ||
275 | MCBSP3_CLKX, | ||
276 | |||
277 | /* Misc ballouts */ | ||
278 | BALLOUT_V8_ARMIO3, | ||
279 | N20_HDQ, | ||
280 | |||
281 | /* OMAP-1610 MMC2 */ | ||
282 | W8_1610_MMC2_DAT0, | ||
283 | V8_1610_MMC2_DAT1, | ||
284 | W15_1610_MMC2_DAT2, | ||
285 | R10_1610_MMC2_DAT3, | ||
286 | Y10_1610_MMC2_CLK, | ||
287 | Y8_1610_MMC2_CMD, | ||
288 | V9_1610_MMC2_CMDDIR, | ||
289 | V5_1610_MMC2_DATDIR0, | ||
290 | W19_1610_MMC2_DATDIR1, | ||
291 | R18_1610_MMC2_CLKIN, | ||
292 | |||
293 | /* OMAP-1610 External Trace Interface */ | ||
294 | M19_1610_ETM_PSTAT0, | ||
295 | L15_1610_ETM_PSTAT1, | ||
296 | L18_1610_ETM_PSTAT2, | ||
297 | L19_1610_ETM_D0, | ||
298 | J19_1610_ETM_D6, | ||
299 | J18_1610_ETM_D7, | ||
300 | |||
301 | /* OMAP16XX GPIO */ | ||
302 | P20_1610_GPIO4, | ||
303 | V9_1610_GPIO7, | ||
304 | W8_1610_GPIO9, | ||
305 | N20_1610_GPIO11, | ||
306 | N19_1610_GPIO13, | ||
307 | P10_1610_GPIO22, | ||
308 | V5_1610_GPIO24, | ||
309 | AA20_1610_GPIO_41, | ||
310 | W19_1610_GPIO48, | ||
311 | M7_1610_GPIO62, | ||
312 | V14_16XX_GPIO37, | ||
313 | R9_16XX_GPIO18, | ||
314 | L14_16XX_GPIO49, | ||
315 | |||
316 | /* OMAP-1610 uWire */ | ||
317 | V19_1610_UWIRE_SCLK, | ||
318 | U18_1610_UWIRE_SDI, | ||
319 | W21_1610_UWIRE_SDO, | ||
320 | N14_1610_UWIRE_CS0, | ||
321 | P15_1610_UWIRE_CS3, | ||
322 | N15_1610_UWIRE_CS1, | ||
323 | |||
324 | /* OMAP-1610 SPI */ | ||
325 | U19_1610_SPIF_SCK, | ||
326 | U18_1610_SPIF_DIN, | ||
327 | P20_1610_SPIF_DIN, | ||
328 | W21_1610_SPIF_DOUT, | ||
329 | R18_1610_SPIF_DOUT, | ||
330 | N14_1610_SPIF_CS0, | ||
331 | N15_1610_SPIF_CS1, | ||
332 | T19_1610_SPIF_CS2, | ||
333 | P15_1610_SPIF_CS3, | ||
334 | |||
335 | /* OMAP-1610 Flash */ | ||
336 | L3_1610_FLASH_CS2B_OE, | ||
337 | M8_1610_FLASH_CS2B_WE, | ||
338 | |||
339 | /* First MMC */ | ||
340 | MMC_CMD, | ||
341 | MMC_DAT1, | ||
342 | MMC_DAT2, | ||
343 | MMC_DAT0, | ||
344 | MMC_CLK, | ||
345 | MMC_DAT3, | ||
346 | |||
347 | /* OMAP-1710 MMC CMDDIR and DATDIR0 */ | ||
348 | M15_1710_MMC_CLKI, | ||
349 | P19_1710_MMC_CMDDIR, | ||
350 | P20_1710_MMC_DATDIR0, | ||
351 | |||
352 | /* OMAP-1610 USB0 alternate pin configuration */ | ||
353 | W9_USB0_TXEN, | ||
354 | AA9_USB0_VP, | ||
355 | Y5_USB0_RCV, | ||
356 | R9_USB0_VM, | ||
357 | V6_USB0_TXD, | ||
358 | W5_USB0_SE0, | ||
359 | V9_USB0_SPEED, | ||
360 | V9_USB0_SUSP, | ||
361 | |||
362 | /* USB2 */ | ||
363 | W9_USB2_TXEN, | ||
364 | AA9_USB2_VP, | ||
365 | Y5_USB2_RCV, | ||
366 | R9_USB2_VM, | ||
367 | V6_USB2_TXD, | ||
368 | W5_USB2_SE0, | ||
369 | |||
370 | /* 16XX UART */ | ||
371 | R13_1610_UART1_TX, | ||
372 | V14_16XX_UART1_RX, | ||
373 | R14_1610_UART1_CTS, | ||
374 | AA15_1610_UART1_RTS, | ||
375 | R9_16XX_UART2_RX, | ||
376 | L14_16XX_UART3_RX, | ||
377 | |||
378 | /* I2C OMAP-1610 */ | ||
379 | I2C_SCL, | ||
380 | I2C_SDA, | ||
381 | |||
382 | /* Keypad */ | ||
383 | F18_1610_KBC0, | ||
384 | D20_1610_KBC1, | ||
385 | D19_1610_KBC2, | ||
386 | E18_1610_KBC3, | ||
387 | C21_1610_KBC4, | ||
388 | G18_1610_KBR0, | ||
389 | F19_1610_KBR1, | ||
390 | H14_1610_KBR2, | ||
391 | E20_1610_KBR3, | ||
392 | E19_1610_KBR4, | ||
393 | N19_1610_KBR5, | ||
394 | |||
395 | /* Power management */ | ||
396 | T20_1610_LOW_PWR, | ||
397 | |||
398 | /* MCLK Settings */ | ||
399 | V5_1710_MCLK_ON, | ||
400 | V5_1710_MCLK_OFF, | ||
401 | R10_1610_MCLK_ON, | ||
402 | R10_1610_MCLK_OFF, | ||
403 | |||
404 | /* CompactFlash controller */ | ||
405 | P11_1610_CF_CD2, | ||
406 | R11_1610_CF_IOIS16, | ||
407 | V10_1610_CF_IREQ, | ||
408 | W10_1610_CF_RESET, | ||
409 | W11_1610_CF_CD1, | ||
410 | |||
411 | /* parallel camera */ | ||
412 | J15_1610_CAM_LCLK, | ||
413 | J18_1610_CAM_D7, | ||
414 | J19_1610_CAM_D6, | ||
415 | J14_1610_CAM_D5, | ||
416 | K18_1610_CAM_D4, | ||
417 | K19_1610_CAM_D3, | ||
418 | K15_1610_CAM_D2, | ||
419 | K14_1610_CAM_D1, | ||
420 | L19_1610_CAM_D0, | ||
421 | L18_1610_CAM_VS, | ||
422 | L15_1610_CAM_HS, | ||
423 | M19_1610_CAM_RSTZ, | ||
424 | Y15_1610_CAM_OUTCLK, | ||
425 | |||
426 | /* serial camera */ | ||
427 | H19_1610_CAM_EXCLK, | ||
428 | Y12_1610_CCP_CLKP, | ||
429 | W13_1610_CCP_CLKM, | ||
430 | W14_1610_CCP_DATAP, | ||
431 | Y14_1610_CCP_DATAM, | ||
432 | |||
433 | }; | ||
434 | |||
435 | struct omap_mux_cfg { | ||
436 | struct pin_config *pins; | ||
437 | unsigned long size; | ||
438 | int (*cfg_reg)(const struct pin_config *cfg); | ||
439 | }; | ||
440 | |||
441 | #ifdef CONFIG_OMAP_MUX | ||
442 | /* setup pin muxing in Linux */ | ||
443 | extern int omap1_mux_init(void); | ||
444 | extern int omap_mux_register(struct omap_mux_cfg *); | ||
445 | extern int omap_cfg_reg(unsigned long reg_cfg); | ||
446 | #else | ||
447 | /* boot loader does it all (no warnings from CONFIG_OMAP_MUX_WARNINGS) */ | ||
448 | static inline int omap1_mux_init(void) { return 0; } | ||
449 | static inline int omap_cfg_reg(unsigned long reg_cfg) { return 0; } | ||
450 | #endif | ||
451 | |||
452 | extern int omap2_mux_init(void); | ||
453 | |||
454 | #endif | ||
diff --git a/arch/arm/mach-omap1/include/mach/omap1510.h b/arch/arm/mach-omap1/include/mach/omap1510.h new file mode 100644 index 000000000000..8fe05d6137c0 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/omap1510.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Hardware definitions for TI OMAP1510 processor. | ||
3 | * | ||
4 | * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation; either version 2 of the License, or (at your | ||
9 | * option) any later version. | ||
10 | * | ||
11 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
12 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
13 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
14 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
15 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
16 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
17 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
18 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
19 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
20 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License along | ||
23 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
24 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
25 | */ | ||
26 | |||
27 | #ifndef __ASM_ARCH_OMAP15XX_H | ||
28 | #define __ASM_ARCH_OMAP15XX_H | ||
29 | |||
30 | /* | ||
31 | * ---------------------------------------------------------------------------- | ||
32 | * Base addresses | ||
33 | * ---------------------------------------------------------------------------- | ||
34 | */ | ||
35 | |||
36 | /* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */ | ||
37 | |||
38 | #define OMAP1510_DSP_BASE 0xE0000000 | ||
39 | #define OMAP1510_DSP_SIZE 0x28000 | ||
40 | #define OMAP1510_DSP_START 0xE0000000 | ||
41 | |||
42 | #define OMAP1510_DSPREG_BASE 0xE1000000 | ||
43 | #define OMAP1510_DSPREG_SIZE SZ_128K | ||
44 | #define OMAP1510_DSPREG_START 0xE1000000 | ||
45 | |||
46 | #define OMAP1510_DSP_MMU_BASE (0xfffed200) | ||
47 | |||
48 | #endif /* __ASM_ARCH_OMAP15XX_H */ | ||
49 | |||
diff --git a/arch/arm/mach-omap1/include/mach/omap16xx.h b/arch/arm/mach-omap1/include/mach/omap16xx.h new file mode 100644 index 000000000000..cd1c724869c7 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/omap16xx.h | |||
@@ -0,0 +1,201 @@ | |||
1 | /* | ||
2 | * Hardware definitions for TI OMAP1610/5912/1710 processors. | ||
3 | * | ||
4 | * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation; either version 2 of the License, or (at your | ||
9 | * option) any later version. | ||
10 | * | ||
11 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
12 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
13 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
14 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
15 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
16 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
17 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
18 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
19 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
20 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License along | ||
23 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
24 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
25 | */ | ||
26 | |||
27 | #ifndef __ASM_ARCH_OMAP16XX_H | ||
28 | #define __ASM_ARCH_OMAP16XX_H | ||
29 | |||
30 | /* | ||
31 | * ---------------------------------------------------------------------------- | ||
32 | * Base addresses | ||
33 | * ---------------------------------------------------------------------------- | ||
34 | */ | ||
35 | |||
36 | /* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */ | ||
37 | |||
38 | #define OMAP16XX_DSP_BASE 0xE0000000 | ||
39 | #define OMAP16XX_DSP_SIZE 0x28000 | ||
40 | #define OMAP16XX_DSP_START 0xE0000000 | ||
41 | |||
42 | #define OMAP16XX_DSPREG_BASE 0xE1000000 | ||
43 | #define OMAP16XX_DSPREG_SIZE SZ_128K | ||
44 | #define OMAP16XX_DSPREG_START 0xE1000000 | ||
45 | |||
46 | #define OMAP16XX_SEC_BASE 0xFFFE4000 | ||
47 | #define OMAP16XX_SEC_DES (OMAP16XX_SEC_BASE + 0x0000) | ||
48 | #define OMAP16XX_SEC_SHA1MD5 (OMAP16XX_SEC_BASE + 0x0800) | ||
49 | #define OMAP16XX_SEC_RNG (OMAP16XX_SEC_BASE + 0x1000) | ||
50 | |||
51 | /* | ||
52 | * --------------------------------------------------------------------------- | ||
53 | * Interrupts | ||
54 | * --------------------------------------------------------------------------- | ||
55 | */ | ||
56 | #define OMAP_IH2_0_BASE (0xfffe0000) | ||
57 | #define OMAP_IH2_1_BASE (0xfffe0100) | ||
58 | #define OMAP_IH2_2_BASE (0xfffe0200) | ||
59 | #define OMAP_IH2_3_BASE (0xfffe0300) | ||
60 | |||
61 | #define OMAP_IH2_0_ITR (OMAP_IH2_0_BASE + 0x00) | ||
62 | #define OMAP_IH2_0_MIR (OMAP_IH2_0_BASE + 0x04) | ||
63 | #define OMAP_IH2_0_SIR_IRQ (OMAP_IH2_0_BASE + 0x10) | ||
64 | #define OMAP_IH2_0_SIR_FIQ (OMAP_IH2_0_BASE + 0x14) | ||
65 | #define OMAP_IH2_0_CONTROL (OMAP_IH2_0_BASE + 0x18) | ||
66 | #define OMAP_IH2_0_ILR0 (OMAP_IH2_0_BASE + 0x1c) | ||
67 | #define OMAP_IH2_0_ISR (OMAP_IH2_0_BASE + 0x9c) | ||
68 | |||
69 | #define OMAP_IH2_1_ITR (OMAP_IH2_1_BASE + 0x00) | ||
70 | #define OMAP_IH2_1_MIR (OMAP_IH2_1_BASE + 0x04) | ||
71 | #define OMAP_IH2_1_SIR_IRQ (OMAP_IH2_1_BASE + 0x10) | ||
72 | #define OMAP_IH2_1_SIR_FIQ (OMAP_IH2_1_BASE + 0x14) | ||
73 | #define OMAP_IH2_1_CONTROL (OMAP_IH2_1_BASE + 0x18) | ||
74 | #define OMAP_IH2_1_ILR1 (OMAP_IH2_1_BASE + 0x1c) | ||
75 | #define OMAP_IH2_1_ISR (OMAP_IH2_1_BASE + 0x9c) | ||
76 | |||
77 | #define OMAP_IH2_2_ITR (OMAP_IH2_2_BASE + 0x00) | ||
78 | #define OMAP_IH2_2_MIR (OMAP_IH2_2_BASE + 0x04) | ||
79 | #define OMAP_IH2_2_SIR_IRQ (OMAP_IH2_2_BASE + 0x10) | ||
80 | #define OMAP_IH2_2_SIR_FIQ (OMAP_IH2_2_BASE + 0x14) | ||
81 | #define OMAP_IH2_2_CONTROL (OMAP_IH2_2_BASE + 0x18) | ||
82 | #define OMAP_IH2_2_ILR2 (OMAP_IH2_2_BASE + 0x1c) | ||
83 | #define OMAP_IH2_2_ISR (OMAP_IH2_2_BASE + 0x9c) | ||
84 | |||
85 | #define OMAP_IH2_3_ITR (OMAP_IH2_3_BASE + 0x00) | ||
86 | #define OMAP_IH2_3_MIR (OMAP_IH2_3_BASE + 0x04) | ||
87 | #define OMAP_IH2_3_SIR_IRQ (OMAP_IH2_3_BASE + 0x10) | ||
88 | #define OMAP_IH2_3_SIR_FIQ (OMAP_IH2_3_BASE + 0x14) | ||
89 | #define OMAP_IH2_3_CONTROL (OMAP_IH2_3_BASE + 0x18) | ||
90 | #define OMAP_IH2_3_ILR3 (OMAP_IH2_3_BASE + 0x1c) | ||
91 | #define OMAP_IH2_3_ISR (OMAP_IH2_3_BASE + 0x9c) | ||
92 | |||
93 | /* | ||
94 | * ---------------------------------------------------------------------------- | ||
95 | * Clocks | ||
96 | * ---------------------------------------------------------------------------- | ||
97 | */ | ||
98 | #define OMAP16XX_ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24) | ||
99 | |||
100 | /* | ||
101 | * ---------------------------------------------------------------------------- | ||
102 | * Pin configuration registers | ||
103 | * ---------------------------------------------------------------------------- | ||
104 | */ | ||
105 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV6 (1 << 8) | ||
106 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV7 (1 << 9) | ||
107 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV8 (1 << 10) | ||
108 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV9 (1 << 11) | ||
109 | #define OMAP16XX_SUBLVDS_CONF_VALID (1 << 13) | ||
110 | |||
111 | /* | ||
112 | * ---------------------------------------------------------------------------- | ||
113 | * System control registers | ||
114 | * ---------------------------------------------------------------------------- | ||
115 | */ | ||
116 | #define OMAP1610_RESET_CONTROL 0xfffe1140 | ||
117 | |||
118 | /* | ||
119 | * --------------------------------------------------------------------------- | ||
120 | * TIPB bus interface | ||
121 | * --------------------------------------------------------------------------- | ||
122 | */ | ||
123 | #define TIPB_SWITCH_BASE (0xfffbc800) | ||
124 | #define OMAP16XX_MMCSD2_SSW_MPU_CONF (TIPB_SWITCH_BASE + 0x160) | ||
125 | |||
126 | /* UART3 Registers Mapping through MPU bus */ | ||
127 | #define UART3_RHR (OMAP1_UART3_BASE + 0) | ||
128 | #define UART3_THR (OMAP1_UART3_BASE + 0) | ||
129 | #define UART3_DLL (OMAP1_UART3_BASE + 0) | ||
130 | #define UART3_IER (OMAP1_UART3_BASE + 4) | ||
131 | #define UART3_DLH (OMAP1_UART3_BASE + 4) | ||
132 | #define UART3_IIR (OMAP1_UART3_BASE + 8) | ||
133 | #define UART3_FCR (OMAP1_UART3_BASE + 8) | ||
134 | #define UART3_EFR (OMAP1_UART3_BASE + 8) | ||
135 | #define UART3_LCR (OMAP1_UART3_BASE + 0x0C) | ||
136 | #define UART3_MCR (OMAP1_UART3_BASE + 0x10) | ||
137 | #define UART3_XON1_ADDR1 (OMAP1_UART3_BASE + 0x10) | ||
138 | #define UART3_XON2_ADDR2 (OMAP1_UART3_BASE + 0x14) | ||
139 | #define UART3_LSR (OMAP1_UART3_BASE + 0x14) | ||
140 | #define UART3_TCR (OMAP1_UART3_BASE + 0x18) | ||
141 | #define UART3_MSR (OMAP1_UART3_BASE + 0x18) | ||
142 | #define UART3_XOFF1 (OMAP1_UART3_BASE + 0x18) | ||
143 | #define UART3_XOFF2 (OMAP1_UART3_BASE + 0x1C) | ||
144 | #define UART3_SPR (OMAP1_UART3_BASE + 0x1C) | ||
145 | #define UART3_TLR (OMAP1_UART3_BASE + 0x1C) | ||
146 | #define UART3_MDR1 (OMAP1_UART3_BASE + 0x20) | ||
147 | #define UART3_MDR2 (OMAP1_UART3_BASE + 0x24) | ||
148 | #define UART3_SFLSR (OMAP1_UART3_BASE + 0x28) | ||
149 | #define UART3_TXFLL (OMAP1_UART3_BASE + 0x28) | ||
150 | #define UART3_RESUME (OMAP1_UART3_BASE + 0x2C) | ||
151 | #define UART3_TXFLH (OMAP1_UART3_BASE + 0x2C) | ||
152 | #define UART3_SFREGL (OMAP1_UART3_BASE + 0x30) | ||
153 | #define UART3_RXFLL (OMAP1_UART3_BASE + 0x30) | ||
154 | #define UART3_SFREGH (OMAP1_UART3_BASE + 0x34) | ||
155 | #define UART3_RXFLH (OMAP1_UART3_BASE + 0x34) | ||
156 | #define UART3_BLR (OMAP1_UART3_BASE + 0x38) | ||
157 | #define UART3_ACREG (OMAP1_UART3_BASE + 0x3C) | ||
158 | #define UART3_DIV16 (OMAP1_UART3_BASE + 0x3C) | ||
159 | #define UART3_SCR (OMAP1_UART3_BASE + 0x40) | ||
160 | #define UART3_SSR (OMAP1_UART3_BASE + 0x44) | ||
161 | #define UART3_EBLR (OMAP1_UART3_BASE + 0x48) | ||
162 | #define UART3_OSC_12M_SEL (OMAP1_UART3_BASE + 0x4C) | ||
163 | #define UART3_MVR (OMAP1_UART3_BASE + 0x50) | ||
164 | |||
165 | /* | ||
166 | * --------------------------------------------------------------------------- | ||
167 | * Watchdog timer | ||
168 | * --------------------------------------------------------------------------- | ||
169 | */ | ||
170 | |||
171 | /* 32-bit Watchdog timer in OMAP 16XX */ | ||
172 | #define OMAP_16XX_WATCHDOG_BASE (0xfffeb000) | ||
173 | #define OMAP_16XX_WIDR (OMAP_16XX_WATCHDOG_BASE + 0x00) | ||
174 | #define OMAP_16XX_WD_SYSCONFIG (OMAP_16XX_WATCHDOG_BASE + 0x10) | ||
175 | #define OMAP_16XX_WD_SYSSTATUS (OMAP_16XX_WATCHDOG_BASE + 0x14) | ||
176 | #define OMAP_16XX_WCLR (OMAP_16XX_WATCHDOG_BASE + 0x24) | ||
177 | #define OMAP_16XX_WCRR (OMAP_16XX_WATCHDOG_BASE + 0x28) | ||
178 | #define OMAP_16XX_WLDR (OMAP_16XX_WATCHDOG_BASE + 0x2c) | ||
179 | #define OMAP_16XX_WTGR (OMAP_16XX_WATCHDOG_BASE + 0x30) | ||
180 | #define OMAP_16XX_WWPS (OMAP_16XX_WATCHDOG_BASE + 0x34) | ||
181 | #define OMAP_16XX_WSPR (OMAP_16XX_WATCHDOG_BASE + 0x48) | ||
182 | |||
183 | #define WCLR_PRE_SHIFT 5 | ||
184 | #define WCLR_PTV_SHIFT 2 | ||
185 | |||
186 | #define WWPS_W_PEND_WSPR (1 << 4) | ||
187 | #define WWPS_W_PEND_WTGR (1 << 3) | ||
188 | #define WWPS_W_PEND_WLDR (1 << 2) | ||
189 | #define WWPS_W_PEND_WCRR (1 << 1) | ||
190 | #define WWPS_W_PEND_WCLR (1 << 0) | ||
191 | |||
192 | #define WSPR_ENABLE_0 (0x0000bbbb) | ||
193 | #define WSPR_ENABLE_1 (0x00004444) | ||
194 | #define WSPR_DISABLE_0 (0x0000aaaa) | ||
195 | #define WSPR_DISABLE_1 (0x00005555) | ||
196 | |||
197 | #define OMAP16XX_DSP_MMU_BASE (0xfffed200) | ||
198 | #define OMAP16XX_MAILBOX_BASE (0xfffcf000) | ||
199 | |||
200 | #endif /* __ASM_ARCH_OMAP16XX_H */ | ||
201 | |||
diff --git a/arch/arm/mach-omap1/include/mach/omap7xx.h b/arch/arm/mach-omap1/include/mach/omap7xx.h new file mode 100644 index 000000000000..63da994bc609 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/omap7xx.h | |||
@@ -0,0 +1,106 @@ | |||
1 | /* | ||
2 | * Hardware definitions for TI OMAP7XX processor. | ||
3 | * | ||
4 | * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com> | ||
5 | * Adapted for omap850 by Zebediah C. McClure <zmc@lurian.net> | ||
6 | * Adapted for omap7xx by Alistair Buxton <a.j.buxton@gmail.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License as published by the | ||
10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
11 | * option) any later version. | ||
12 | * | ||
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
14 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
15 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
16 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
17 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
18 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
19 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
20 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
23 | * | ||
24 | * You should have received a copy of the GNU General Public License along | ||
25 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
26 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
27 | */ | ||
28 | |||
29 | #ifndef __ASM_ARCH_OMAP7XX_H | ||
30 | #define __ASM_ARCH_OMAP7XX_H | ||
31 | |||
32 | /* | ||
33 | * ---------------------------------------------------------------------------- | ||
34 | * Base addresses | ||
35 | * ---------------------------------------------------------------------------- | ||
36 | */ | ||
37 | |||
38 | /* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */ | ||
39 | |||
40 | #define OMAP7XX_DSP_BASE 0xE0000000 | ||
41 | #define OMAP7XX_DSP_SIZE 0x50000 | ||
42 | #define OMAP7XX_DSP_START 0xE0000000 | ||
43 | |||
44 | #define OMAP7XX_DSPREG_BASE 0xE1000000 | ||
45 | #define OMAP7XX_DSPREG_SIZE SZ_128K | ||
46 | #define OMAP7XX_DSPREG_START 0xE1000000 | ||
47 | |||
48 | #define OMAP7XX_SPI1_BASE 0xfffc0800 | ||
49 | #define OMAP7XX_SPI2_BASE 0xfffc1000 | ||
50 | |||
51 | /* | ||
52 | * ---------------------------------------------------------------------------- | ||
53 | * OMAP7XX specific configuration registers | ||
54 | * ---------------------------------------------------------------------------- | ||
55 | */ | ||
56 | #define OMAP7XX_CONFIG_BASE 0xfffe1000 | ||
57 | #define OMAP7XX_IO_CONF_0 0xfffe1070 | ||
58 | #define OMAP7XX_IO_CONF_1 0xfffe1074 | ||
59 | #define OMAP7XX_IO_CONF_2 0xfffe1078 | ||
60 | #define OMAP7XX_IO_CONF_3 0xfffe107c | ||
61 | #define OMAP7XX_IO_CONF_4 0xfffe1080 | ||
62 | #define OMAP7XX_IO_CONF_5 0xfffe1084 | ||
63 | #define OMAP7XX_IO_CONF_6 0xfffe1088 | ||
64 | #define OMAP7XX_IO_CONF_7 0xfffe108c | ||
65 | #define OMAP7XX_IO_CONF_8 0xfffe1090 | ||
66 | #define OMAP7XX_IO_CONF_9 0xfffe1094 | ||
67 | #define OMAP7XX_IO_CONF_10 0xfffe1098 | ||
68 | #define OMAP7XX_IO_CONF_11 0xfffe109c | ||
69 | #define OMAP7XX_IO_CONF_12 0xfffe10a0 | ||
70 | #define OMAP7XX_IO_CONF_13 0xfffe10a4 | ||
71 | |||
72 | #define OMAP7XX_MODE_1 0xfffe1010 | ||
73 | #define OMAP7XX_MODE_2 0xfffe1014 | ||
74 | |||
75 | /* CSMI specials: in terms of base + offset */ | ||
76 | #define OMAP7XX_MODE2_OFFSET 0x14 | ||
77 | |||
78 | /* | ||
79 | * ---------------------------------------------------------------------------- | ||
80 | * OMAP7XX traffic controller configuration registers | ||
81 | * ---------------------------------------------------------------------------- | ||
82 | */ | ||
83 | #define OMAP7XX_FLASH_CFG_0 0xfffecc10 | ||
84 | #define OMAP7XX_FLASH_ACFG_0 0xfffecc50 | ||
85 | #define OMAP7XX_FLASH_CFG_1 0xfffecc14 | ||
86 | #define OMAP7XX_FLASH_ACFG_1 0xfffecc54 | ||
87 | |||
88 | /* | ||
89 | * ---------------------------------------------------------------------------- | ||
90 | * OMAP7XX DSP control registers | ||
91 | * ---------------------------------------------------------------------------- | ||
92 | */ | ||
93 | #define OMAP7XX_ICR_BASE 0xfffbb800 | ||
94 | #define OMAP7XX_DSP_M_CTL 0xfffbb804 | ||
95 | #define OMAP7XX_DSP_MMU_BASE 0xfffed200 | ||
96 | |||
97 | /* | ||
98 | * ---------------------------------------------------------------------------- | ||
99 | * OMAP7XX PCC_UPLD configuration registers | ||
100 | * ---------------------------------------------------------------------------- | ||
101 | */ | ||
102 | #define OMAP7XX_PCC_UPLD_CTRL_BASE (0xfffe0900) | ||
103 | #define OMAP7XX_PCC_UPLD_CTRL (OMAP7XX_PCC_UPLD_CTRL_BASE + 0x00) | ||
104 | |||
105 | #endif /* __ASM_ARCH_OMAP7XX_H */ | ||
106 | |||
diff --git a/arch/arm/mach-omap1/include/mach/smp.h b/arch/arm/mach-omap1/include/mach/smp.h deleted file mode 100644 index 80a371c06e59..000000000000 --- a/arch/arm/mach-omap1/include/mach/smp.h +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-omap1/include/mach/smp.h | ||
3 | */ | ||
4 | |||
5 | #include <plat/smp.h> | ||
diff --git a/arch/arm/mach-omap1/io.c b/arch/arm/mach-omap1/io.c index 6c95a59f0f16..6a5baab1f4cb 100644 --- a/arch/arm/mach-omap1/io.c +++ b/arch/arm/mach-omap1/io.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <asm/tlb.h> | 16 | #include <asm/tlb.h> |
17 | #include <asm/mach/map.h> | 17 | #include <asm/mach/map.h> |
18 | 18 | ||
19 | #include <plat/mux.h> | 19 | #include <mach/mux.h> |
20 | #include <plat/tc.h> | 20 | #include <plat/tc.h> |
21 | #include <plat/dma.h> | 21 | #include <plat/dma.h> |
22 | 22 | ||
diff --git a/arch/arm/mach-omap1/lcd_dma.c b/arch/arm/mach-omap1/lcd_dma.c index 5769c71815b2..ed42628611bc 100644 --- a/arch/arm/mach-omap1/lcd_dma.c +++ b/arch/arm/mach-omap1/lcd_dma.c | |||
@@ -113,8 +113,7 @@ EXPORT_SYMBOL(omap_set_lcd_dma_b1_mirror); | |||
113 | void omap_set_lcd_dma_b1_vxres(unsigned long vxres) | 113 | void omap_set_lcd_dma_b1_vxres(unsigned long vxres) |
114 | { | 114 | { |
115 | if (cpu_is_omap15xx()) { | 115 | if (cpu_is_omap15xx()) { |
116 | printk(KERN_ERR "DMA virtual resolution is not supported " | 116 | pr_err("DMA virtual resolution is not supported in 1510 mode\n"); |
117 | "in 1510 mode\n"); | ||
118 | BUG(); | 117 | BUG(); |
119 | } | 118 | } |
120 | lcd_dma.vxres = vxres; | 119 | lcd_dma.vxres = vxres; |
@@ -437,8 +436,7 @@ static int __init omap_init_lcd_dma(void) | |||
437 | r = request_irq(INT_DMA_LCD, lcd_dma_irq_handler, 0, | 436 | r = request_irq(INT_DMA_LCD, lcd_dma_irq_handler, 0, |
438 | "LCD DMA", NULL); | 437 | "LCD DMA", NULL); |
439 | if (r != 0) | 438 | if (r != 0) |
440 | printk(KERN_ERR "unable to request IRQ for LCD DMA " | 439 | pr_err("unable to request IRQ for LCD DMA (error %d)\n", r); |
441 | "(error %d)\n", r); | ||
442 | 440 | ||
443 | return r; | 441 | return r; |
444 | } | 442 | } |
diff --git a/arch/arm/mach-omap1/leds-h2p2-debug.c b/arch/arm/mach-omap1/leds-h2p2-debug.c deleted file mode 100644 index f6b14a14a957..000000000000 --- a/arch/arm/mach-omap1/leds-h2p2-debug.c +++ /dev/null | |||
@@ -1,166 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-omap1/leds-h2p2-debug.c | ||
3 | * | ||
4 | * Copyright 2003 by Texas Instruments Incorporated | ||
5 | * | ||
6 | * There are 16 LEDs on the debug board (all green); four may be used | ||
7 | * for logical 'green', 'amber', 'red', and 'blue' (after "claiming"). | ||
8 | * | ||
9 | * The "surfer" expansion board and H2 sample board also have two-color | ||
10 | * green+red LEDs (in parallel), used here for timer and idle indicators. | ||
11 | */ | ||
12 | #include <linux/gpio.h> | ||
13 | #include <linux/init.h> | ||
14 | #include <linux/kernel_stat.h> | ||
15 | #include <linux/sched.h> | ||
16 | #include <linux/io.h> | ||
17 | |||
18 | #include <mach/hardware.h> | ||
19 | #include <asm/leds.h> | ||
20 | #include <asm/mach-types.h> | ||
21 | |||
22 | #include <plat/fpga.h> | ||
23 | |||
24 | #include "leds.h" | ||
25 | |||
26 | |||
27 | #define GPIO_LED_RED 3 | ||
28 | #define GPIO_LED_GREEN OMAP_MPUIO(4) | ||
29 | |||
30 | |||
31 | #define LED_STATE_ENABLED 0x01 | ||
32 | #define LED_STATE_CLAIMED 0x02 | ||
33 | #define LED_TIMER_ON 0x04 | ||
34 | |||
35 | #define GPIO_IDLE GPIO_LED_GREEN | ||
36 | #define GPIO_TIMER GPIO_LED_RED | ||
37 | |||
38 | |||
39 | void h2p2_dbg_leds_event(led_event_t evt) | ||
40 | { | ||
41 | unsigned long flags; | ||
42 | |||
43 | static struct h2p2_dbg_fpga __iomem *fpga; | ||
44 | static u16 led_state, hw_led_state; | ||
45 | |||
46 | local_irq_save(flags); | ||
47 | |||
48 | if (!(led_state & LED_STATE_ENABLED) && evt != led_start) | ||
49 | goto done; | ||
50 | |||
51 | switch (evt) { | ||
52 | case led_start: | ||
53 | if (!fpga) | ||
54 | fpga = ioremap(H2P2_DBG_FPGA_START, | ||
55 | H2P2_DBG_FPGA_SIZE); | ||
56 | if (fpga) { | ||
57 | led_state |= LED_STATE_ENABLED; | ||
58 | __raw_writew(~0, &fpga->leds); | ||
59 | } | ||
60 | break; | ||
61 | |||
62 | case led_stop: | ||
63 | case led_halted: | ||
64 | /* all leds off during suspend or shutdown */ | ||
65 | |||
66 | if (! machine_is_omap_perseus2()) { | ||
67 | gpio_set_value(GPIO_TIMER, 0); | ||
68 | gpio_set_value(GPIO_IDLE, 0); | ||
69 | } | ||
70 | |||
71 | __raw_writew(~0, &fpga->leds); | ||
72 | led_state &= ~LED_STATE_ENABLED; | ||
73 | if (evt == led_halted) { | ||
74 | iounmap(fpga); | ||
75 | fpga = NULL; | ||
76 | } | ||
77 | |||
78 | goto done; | ||
79 | |||
80 | case led_claim: | ||
81 | led_state |= LED_STATE_CLAIMED; | ||
82 | hw_led_state = 0; | ||
83 | break; | ||
84 | |||
85 | case led_release: | ||
86 | led_state &= ~LED_STATE_CLAIMED; | ||
87 | break; | ||
88 | |||
89 | #ifdef CONFIG_LEDS_TIMER | ||
90 | case led_timer: | ||
91 | led_state ^= LED_TIMER_ON; | ||
92 | |||
93 | if (machine_is_omap_perseus2()) | ||
94 | hw_led_state ^= H2P2_DBG_FPGA_P2_LED_TIMER; | ||
95 | else { | ||
96 | gpio_set_value(GPIO_TIMER, led_state & LED_TIMER_ON); | ||
97 | goto done; | ||
98 | } | ||
99 | |||
100 | break; | ||
101 | #endif | ||
102 | |||
103 | #ifdef CONFIG_LEDS_CPU | ||
104 | case led_idle_start: | ||
105 | if (machine_is_omap_perseus2()) | ||
106 | hw_led_state |= H2P2_DBG_FPGA_P2_LED_IDLE; | ||
107 | else { | ||
108 | gpio_set_value(GPIO_IDLE, 1); | ||
109 | goto done; | ||
110 | } | ||
111 | |||
112 | break; | ||
113 | |||
114 | case led_idle_end: | ||
115 | if (machine_is_omap_perseus2()) | ||
116 | hw_led_state &= ~H2P2_DBG_FPGA_P2_LED_IDLE; | ||
117 | else { | ||
118 | gpio_set_value(GPIO_IDLE, 0); | ||
119 | goto done; | ||
120 | } | ||
121 | |||
122 | break; | ||
123 | #endif | ||
124 | |||
125 | case led_green_on: | ||
126 | hw_led_state |= H2P2_DBG_FPGA_LED_GREEN; | ||
127 | break; | ||
128 | case led_green_off: | ||
129 | hw_led_state &= ~H2P2_DBG_FPGA_LED_GREEN; | ||
130 | break; | ||
131 | |||
132 | case led_amber_on: | ||
133 | hw_led_state |= H2P2_DBG_FPGA_LED_AMBER; | ||
134 | break; | ||
135 | case led_amber_off: | ||
136 | hw_led_state &= ~H2P2_DBG_FPGA_LED_AMBER; | ||
137 | break; | ||
138 | |||
139 | case led_red_on: | ||
140 | hw_led_state |= H2P2_DBG_FPGA_LED_RED; | ||
141 | break; | ||
142 | case led_red_off: | ||
143 | hw_led_state &= ~H2P2_DBG_FPGA_LED_RED; | ||
144 | break; | ||
145 | |||
146 | case led_blue_on: | ||
147 | hw_led_state |= H2P2_DBG_FPGA_LED_BLUE; | ||
148 | break; | ||
149 | case led_blue_off: | ||
150 | hw_led_state &= ~H2P2_DBG_FPGA_LED_BLUE; | ||
151 | break; | ||
152 | |||
153 | default: | ||
154 | break; | ||
155 | } | ||
156 | |||
157 | |||
158 | /* | ||
159 | * Actually burn the LEDs | ||
160 | */ | ||
161 | if (led_state & LED_STATE_ENABLED) | ||
162 | __raw_writew(~hw_led_state, &fpga->leds); | ||
163 | |||
164 | done: | ||
165 | local_irq_restore(flags); | ||
166 | } | ||
diff --git a/arch/arm/mach-omap1/leds-innovator.c b/arch/arm/mach-omap1/leds-innovator.c deleted file mode 100644 index 3a066ee8d02c..000000000000 --- a/arch/arm/mach-omap1/leds-innovator.c +++ /dev/null | |||
@@ -1,98 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-omap1/leds-innovator.c | ||
3 | */ | ||
4 | #include <linux/init.h> | ||
5 | |||
6 | #include <mach/hardware.h> | ||
7 | #include <asm/leds.h> | ||
8 | |||
9 | #include "leds.h" | ||
10 | |||
11 | |||
12 | #define LED_STATE_ENABLED 1 | ||
13 | #define LED_STATE_CLAIMED 2 | ||
14 | |||
15 | static unsigned int led_state; | ||
16 | static unsigned int hw_led_state; | ||
17 | |||
18 | void innovator_leds_event(led_event_t evt) | ||
19 | { | ||
20 | unsigned long flags; | ||
21 | |||
22 | local_irq_save(flags); | ||
23 | |||
24 | switch (evt) { | ||
25 | case led_start: | ||
26 | hw_led_state = 0; | ||
27 | led_state = LED_STATE_ENABLED; | ||
28 | break; | ||
29 | |||
30 | case led_stop: | ||
31 | led_state &= ~LED_STATE_ENABLED; | ||
32 | hw_led_state = 0; | ||
33 | break; | ||
34 | |||
35 | case led_claim: | ||
36 | led_state |= LED_STATE_CLAIMED; | ||
37 | hw_led_state = 0; | ||
38 | break; | ||
39 | |||
40 | case led_release: | ||
41 | led_state &= ~LED_STATE_CLAIMED; | ||
42 | hw_led_state = 0; | ||
43 | break; | ||
44 | |||
45 | #ifdef CONFIG_LEDS_TIMER | ||
46 | case led_timer: | ||
47 | if (!(led_state & LED_STATE_CLAIMED)) | ||
48 | hw_led_state ^= 0; | ||
49 | break; | ||
50 | #endif | ||
51 | |||
52 | #ifdef CONFIG_LEDS_CPU | ||
53 | case led_idle_start: | ||
54 | if (!(led_state & LED_STATE_CLAIMED)) | ||
55 | hw_led_state |= 0; | ||
56 | break; | ||
57 | |||
58 | case led_idle_end: | ||
59 | if (!(led_state & LED_STATE_CLAIMED)) | ||
60 | hw_led_state &= ~0; | ||
61 | break; | ||
62 | #endif | ||
63 | |||
64 | case led_halted: | ||
65 | break; | ||
66 | |||
67 | case led_green_on: | ||
68 | if (led_state & LED_STATE_CLAIMED) | ||
69 | hw_led_state &= ~0; | ||
70 | break; | ||
71 | |||
72 | case led_green_off: | ||
73 | if (led_state & LED_STATE_CLAIMED) | ||
74 | hw_led_state |= 0; | ||
75 | break; | ||
76 | |||
77 | case led_amber_on: | ||
78 | break; | ||
79 | |||
80 | case led_amber_off: | ||
81 | break; | ||
82 | |||
83 | case led_red_on: | ||
84 | if (led_state & LED_STATE_CLAIMED) | ||
85 | hw_led_state &= ~0; | ||
86 | break; | ||
87 | |||
88 | case led_red_off: | ||
89 | if (led_state & LED_STATE_CLAIMED) | ||
90 | hw_led_state |= 0; | ||
91 | break; | ||
92 | |||
93 | default: | ||
94 | break; | ||
95 | } | ||
96 | |||
97 | local_irq_restore(flags); | ||
98 | } | ||
diff --git a/arch/arm/mach-omap1/leds-osk.c b/arch/arm/mach-omap1/leds-osk.c deleted file mode 100644 index 936ed426b84f..000000000000 --- a/arch/arm/mach-omap1/leds-osk.c +++ /dev/null | |||
@@ -1,113 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-omap1/leds-osk.c | ||
3 | * | ||
4 | * LED driver for OSK with optional Mistral QVGA board | ||
5 | */ | ||
6 | #include <linux/gpio.h> | ||
7 | #include <linux/init.h> | ||
8 | |||
9 | #include <mach/hardware.h> | ||
10 | #include <asm/leds.h> | ||
11 | |||
12 | #include "leds.h" | ||
13 | |||
14 | |||
15 | #define LED_STATE_ENABLED (1 << 0) | ||
16 | #define LED_STATE_CLAIMED (1 << 1) | ||
17 | static u8 led_state; | ||
18 | |||
19 | #define TIMER_LED (1 << 3) /* Mistral board */ | ||
20 | #define IDLE_LED (1 << 4) /* Mistral board */ | ||
21 | static u8 hw_led_state; | ||
22 | |||
23 | |||
24 | #ifdef CONFIG_OMAP_OSK_MISTRAL | ||
25 | |||
26 | /* For now, all system indicators require the Mistral board, since that | ||
27 | * LED can be manipulated without a task context. This LED is either red, | ||
28 | * or green, but not both; it can't give the full "disco led" effect. | ||
29 | */ | ||
30 | |||
31 | #define GPIO_LED_RED 3 | ||
32 | #define GPIO_LED_GREEN OMAP_MPUIO(4) | ||
33 | |||
34 | static void mistral_setled(void) | ||
35 | { | ||
36 | int red = 0; | ||
37 | int green = 0; | ||
38 | |||
39 | if (hw_led_state & TIMER_LED) | ||
40 | red = 1; | ||
41 | else if (hw_led_state & IDLE_LED) | ||
42 | green = 1; | ||
43 | /* else both sides are disabled */ | ||
44 | |||
45 | gpio_set_value(GPIO_LED_GREEN, green); | ||
46 | gpio_set_value(GPIO_LED_RED, red); | ||
47 | } | ||
48 | |||
49 | #endif | ||
50 | |||
51 | void osk_leds_event(led_event_t evt) | ||
52 | { | ||
53 | unsigned long flags; | ||
54 | u16 leds; | ||
55 | |||
56 | local_irq_save(flags); | ||
57 | |||
58 | if (!(led_state & LED_STATE_ENABLED) && evt != led_start) | ||
59 | goto done; | ||
60 | |||
61 | leds = hw_led_state; | ||
62 | switch (evt) { | ||
63 | case led_start: | ||
64 | led_state |= LED_STATE_ENABLED; | ||
65 | hw_led_state = 0; | ||
66 | leds = ~0; | ||
67 | break; | ||
68 | |||
69 | case led_halted: | ||
70 | case led_stop: | ||
71 | led_state &= ~LED_STATE_ENABLED; | ||
72 | hw_led_state = 0; | ||
73 | break; | ||
74 | |||
75 | case led_claim: | ||
76 | led_state |= LED_STATE_CLAIMED; | ||
77 | hw_led_state = 0; | ||
78 | leds = ~0; | ||
79 | break; | ||
80 | |||
81 | case led_release: | ||
82 | led_state &= ~LED_STATE_CLAIMED; | ||
83 | hw_led_state = 0; | ||
84 | break; | ||
85 | |||
86 | #ifdef CONFIG_OMAP_OSK_MISTRAL | ||
87 | |||
88 | case led_timer: | ||
89 | hw_led_state ^= TIMER_LED; | ||
90 | mistral_setled(); | ||
91 | break; | ||
92 | |||
93 | case led_idle_start: /* idle == off */ | ||
94 | hw_led_state &= ~IDLE_LED; | ||
95 | mistral_setled(); | ||
96 | break; | ||
97 | |||
98 | case led_idle_end: | ||
99 | hw_led_state |= IDLE_LED; | ||
100 | mistral_setled(); | ||
101 | break; | ||
102 | |||
103 | #endif /* CONFIG_OMAP_OSK_MISTRAL */ | ||
104 | |||
105 | default: | ||
106 | break; | ||
107 | } | ||
108 | |||
109 | leds ^= hw_led_state; | ||
110 | |||
111 | done: | ||
112 | local_irq_restore(flags); | ||
113 | } | ||
diff --git a/arch/arm/mach-omap1/leds.c b/arch/arm/mach-omap1/leds.c deleted file mode 100644 index ae6dd93b8ddc..000000000000 --- a/arch/arm/mach-omap1/leds.c +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-omap1/leds.c | ||
3 | * | ||
4 | * OMAP LEDs dispatcher | ||
5 | */ | ||
6 | #include <linux/gpio.h> | ||
7 | #include <linux/kernel.h> | ||
8 | #include <linux/init.h> | ||
9 | |||
10 | #include <asm/leds.h> | ||
11 | #include <asm/mach-types.h> | ||
12 | |||
13 | #include <plat/mux.h> | ||
14 | |||
15 | #include "leds.h" | ||
16 | |||
17 | static int __init | ||
18 | omap_leds_init(void) | ||
19 | { | ||
20 | if (!cpu_class_is_omap1()) | ||
21 | return -ENODEV; | ||
22 | |||
23 | if (machine_is_omap_innovator()) | ||
24 | leds_event = innovator_leds_event; | ||
25 | |||
26 | else if (machine_is_omap_h2() | ||
27 | || machine_is_omap_h3() | ||
28 | || machine_is_omap_perseus2()) | ||
29 | leds_event = h2p2_dbg_leds_event; | ||
30 | |||
31 | else if (machine_is_omap_osk()) | ||
32 | leds_event = osk_leds_event; | ||
33 | |||
34 | else | ||
35 | return -1; | ||
36 | |||
37 | if (machine_is_omap_h2() | ||
38 | || machine_is_omap_h3() | ||
39 | #ifdef CONFIG_OMAP_OSK_MISTRAL | ||
40 | || machine_is_omap_osk() | ||
41 | #endif | ||
42 | ) { | ||
43 | |||
44 | /* LED1/LED2 pins can be used as GPIO (as done here), or by | ||
45 | * the LPG (works even in deep sleep!), to drive a bicolor | ||
46 | * LED on the H2 sample board, and another on the H2/P2 | ||
47 | * "surfer" expansion board. | ||
48 | * | ||
49 | * The same pins drive a LED on the OSK Mistral board, but | ||
50 | * that's a different kind of LED (just one color at a time). | ||
51 | */ | ||
52 | omap_cfg_reg(P18_1610_GPIO3); | ||
53 | if (gpio_request(3, "LED red") == 0) | ||
54 | gpio_direction_output(3, 1); | ||
55 | else | ||
56 | printk(KERN_WARNING "LED: can't get GPIO3/red?\n"); | ||
57 | |||
58 | omap_cfg_reg(MPUIO4); | ||
59 | if (gpio_request(OMAP_MPUIO(4), "LED green") == 0) | ||
60 | gpio_direction_output(OMAP_MPUIO(4), 1); | ||
61 | else | ||
62 | printk(KERN_WARNING "LED: can't get MPUIO4/green?\n"); | ||
63 | } | ||
64 | |||
65 | leds_event(led_start); | ||
66 | return 0; | ||
67 | } | ||
68 | |||
69 | __initcall(omap_leds_init); | ||
diff --git a/arch/arm/mach-omap1/leds.h b/arch/arm/mach-omap1/leds.h deleted file mode 100644 index a1e9fedc376c..000000000000 --- a/arch/arm/mach-omap1/leds.h +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | extern void innovator_leds_event(led_event_t evt); | ||
2 | extern void h2p2_dbg_leds_event(led_event_t evt); | ||
3 | extern void osk_leds_event(led_event_t evt); | ||
diff --git a/arch/arm/mach-omap1/mcbsp.c b/arch/arm/mach-omap1/mcbsp.c index adf00975b9bb..bdc2e7541adb 100644 --- a/arch/arm/mach-omap1/mcbsp.c +++ b/arch/arm/mach-omap1/mcbsp.c | |||
@@ -20,9 +20,9 @@ | |||
20 | #include <linux/slab.h> | 20 | #include <linux/slab.h> |
21 | 21 | ||
22 | #include <plat/dma.h> | 22 | #include <plat/dma.h> |
23 | #include <plat/mux.h> | 23 | #include <mach/mux.h> |
24 | #include <plat/cpu.h> | 24 | #include <plat/cpu.h> |
25 | #include <plat/mcbsp.h> | 25 | #include <linux/platform_data/asoc-ti-mcbsp.h> |
26 | 26 | ||
27 | #include <mach/irqs.h> | 27 | #include <mach/irqs.h> |
28 | 28 | ||
diff --git a/arch/arm/mach-omap1/mux.c b/arch/arm/mach-omap1/mux.c index e9cc52d4cb28..667ce5027f63 100644 --- a/arch/arm/mach-omap1/mux.c +++ b/arch/arm/mach-omap1/mux.c | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
31 | 31 | ||
32 | #include <plat/mux.h> | 32 | #include <mach/mux.h> |
33 | 33 | ||
34 | #ifdef CONFIG_OMAP_MUX | 34 | #ifdef CONFIG_OMAP_MUX |
35 | 35 | ||
@@ -451,6 +451,56 @@ static int __init_or_module omap1_cfg_reg(const struct pin_config *cfg) | |||
451 | #endif | 451 | #endif |
452 | } | 452 | } |
453 | 453 | ||
454 | static struct omap_mux_cfg *mux_cfg; | ||
455 | |||
456 | int __init omap_mux_register(struct omap_mux_cfg *arch_mux_cfg) | ||
457 | { | ||
458 | if (!arch_mux_cfg || !arch_mux_cfg->pins || arch_mux_cfg->size == 0 | ||
459 | || !arch_mux_cfg->cfg_reg) { | ||
460 | printk(KERN_ERR "Invalid pin table\n"); | ||
461 | return -EINVAL; | ||
462 | } | ||
463 | |||
464 | mux_cfg = arch_mux_cfg; | ||
465 | |||
466 | return 0; | ||
467 | } | ||
468 | |||
469 | /* | ||
470 | * Sets the Omap MUX and PULL_DWN registers based on the table | ||
471 | */ | ||
472 | int __init_or_module omap_cfg_reg(const unsigned long index) | ||
473 | { | ||
474 | struct pin_config *reg; | ||
475 | |||
476 | if (!cpu_class_is_omap1()) { | ||
477 | printk(KERN_ERR "mux: Broken omap_cfg_reg(%lu) entry\n", | ||
478 | index); | ||
479 | WARN_ON(1); | ||
480 | return -EINVAL; | ||
481 | } | ||
482 | |||
483 | if (mux_cfg == NULL) { | ||
484 | printk(KERN_ERR "Pin mux table not initialized\n"); | ||
485 | return -ENODEV; | ||
486 | } | ||
487 | |||
488 | if (index >= mux_cfg->size) { | ||
489 | printk(KERN_ERR "Invalid pin mux index: %lu (%lu)\n", | ||
490 | index, mux_cfg->size); | ||
491 | dump_stack(); | ||
492 | return -ENODEV; | ||
493 | } | ||
494 | |||
495 | reg = &mux_cfg->pins[index]; | ||
496 | |||
497 | if (!mux_cfg->cfg_reg) | ||
498 | return -ENODEV; | ||
499 | |||
500 | return mux_cfg->cfg_reg(reg); | ||
501 | } | ||
502 | EXPORT_SYMBOL(omap_cfg_reg); | ||
503 | |||
454 | int __init omap1_mux_init(void) | 504 | int __init omap1_mux_init(void) |
455 | { | 505 | { |
456 | if (cpu_is_omap7xx()) { | 506 | if (cpu_is_omap7xx()) { |
@@ -468,4 +518,8 @@ int __init omap1_mux_init(void) | |||
468 | return omap_mux_register(&arch_mux_cfg); | 518 | return omap_mux_register(&arch_mux_cfg); |
469 | } | 519 | } |
470 | 520 | ||
471 | #endif | 521 | #else |
522 | #define omap_mux_init() do {} while(0) | ||
523 | #define omap_cfg_reg(x) do {} while(0) | ||
524 | #endif /* CONFIG_OMAP_MUX */ | ||
525 | |||
diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c index b2560d32b3a0..47ec16155483 100644 --- a/arch/arm/mach-omap1/pm.c +++ b/arch/arm/mach-omap1/pm.c | |||
@@ -53,7 +53,7 @@ | |||
53 | #include <plat/clock.h> | 53 | #include <plat/clock.h> |
54 | #include <plat/sram.h> | 54 | #include <plat/sram.h> |
55 | #include <plat/tc.h> | 55 | #include <plat/tc.h> |
56 | #include <plat/mux.h> | 56 | #include <mach/mux.h> |
57 | #include <plat/dma.h> | 57 | #include <plat/dma.h> |
58 | #include <plat/dmtimer.h> | 58 | #include <plat/dmtimer.h> |
59 | 59 | ||
diff --git a/arch/arm/mach-omap1/serial.c b/arch/arm/mach-omap1/serial.c index 6809c9e56c93..b9d6834af835 100644 --- a/arch/arm/mach-omap1/serial.c +++ b/arch/arm/mach-omap1/serial.c | |||
@@ -22,8 +22,7 @@ | |||
22 | 22 | ||
23 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
24 | 24 | ||
25 | #include <plat/board.h> | 25 | #include <mach/mux.h> |
26 | #include <plat/mux.h> | ||
27 | #include <plat/fpga.h> | 26 | #include <plat/fpga.h> |
28 | 27 | ||
29 | #include "pm.h" | 28 | #include "pm.h" |
diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c index 4062480bfec7..4d4816fd6fc9 100644 --- a/arch/arm/mach-omap1/time.c +++ b/arch/arm/mach-omap1/time.c | |||
@@ -44,7 +44,6 @@ | |||
44 | #include <linux/clockchips.h> | 44 | #include <linux/clockchips.h> |
45 | #include <linux/io.h> | 45 | #include <linux/io.h> |
46 | 46 | ||
47 | #include <asm/leds.h> | ||
48 | #include <asm/irq.h> | 47 | #include <asm/irq.h> |
49 | #include <asm/sched_clock.h> | 48 | #include <asm/sched_clock.h> |
50 | 49 | ||
diff --git a/arch/arm/mach-omap1/timer32k.c b/arch/arm/mach-omap1/timer32k.c index eae49c3980c9..74529549130c 100644 --- a/arch/arm/mach-omap1/timer32k.c +++ b/arch/arm/mach-omap1/timer32k.c | |||
@@ -46,7 +46,6 @@ | |||
46 | #include <linux/clockchips.h> | 46 | #include <linux/clockchips.h> |
47 | #include <linux/io.h> | 47 | #include <linux/io.h> |
48 | 48 | ||
49 | #include <asm/leds.h> | ||
50 | #include <asm/irq.h> | 49 | #include <asm/irq.h> |
51 | #include <asm/mach/irq.h> | 50 | #include <asm/mach/irq.h> |
52 | #include <asm/mach/time.h> | 51 | #include <asm/mach/time.h> |
diff --git a/arch/arm/mach-omap1/usb.c b/arch/arm/mach-omap1/usb.c index 65f88176fba8..84267edd9421 100644 --- a/arch/arm/mach-omap1/usb.c +++ b/arch/arm/mach-omap1/usb.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | #include <asm/irq.h> | 27 | #include <asm/irq.h> |
28 | 28 | ||
29 | #include <plat/mux.h> | 29 | #include <mach/mux.h> |
30 | 30 | ||
31 | #include <mach/usb.h> | 31 | #include <mach/usb.h> |
32 | 32 | ||