diff options
author | Tony Lindgren <tony@atomide.com> | 2012-08-27 20:43:01 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-09-12 21:06:30 -0400 |
commit | 7d7e1eba7e92c2f9c76db80adc24836e7a114bfb (patch) | |
tree | 9b258eaa8236d9ec15fd6a000c0ad5ef5820ff4c /arch/arm | |
parent | aefaf7be498b9cfbd16e42932cdc52ab334241e0 (diff) |
ARM: OMAP2+: Prepare for irqs.h removal
As the interrupts should only be defined in the platform_data, and
eventually coming from device tree, there's no need to define them
in header files.
Let's remove the hardcoded references to irqs.h and fix up the includes
so we don't rely on headers included in irqs.h. Note that we're
defining OMAP_INTC_START as 0 to the interrupts. This will be needed
when we enable SPARSE_IRQ. For some drivers we need to add
#include <plat/cpu.h> for now until these drivers are fixed to
remove cpu_is_omapxxxx() usage.
While at it, sort som of the includes the standard way, and add
the trailing commas where they are missing in the related data
structures.
Note that for drivers/staging/tidspbridge we just define things
locally.
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
46 files changed, 252 insertions, 238 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index cacc49889129..0900eac57d56 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -231,7 +231,7 @@ static int __init omap2430_i2c_init(void) | |||
231 | sdp2430_i2c1_boardinfo[0].irq = gpio_to_irq(78); | 231 | sdp2430_i2c1_boardinfo[0].irq = gpio_to_irq(78); |
232 | omap_register_i2c_bus(1, 100, sdp2430_i2c1_boardinfo, | 232 | omap_register_i2c_bus(1, 100, sdp2430_i2c1_boardinfo, |
233 | ARRAY_SIZE(sdp2430_i2c1_boardinfo)); | 233 | ARRAY_SIZE(sdp2430_i2c1_boardinfo)); |
234 | omap_pmic_init(2, 100, "twl4030", INT_24XX_SYS_NIRQ, | 234 | omap_pmic_init(2, 100, "twl4030", 7 + OMAP_INTC_START, |
235 | &sdp2430_twldata); | 235 | &sdp2430_twldata); |
236 | return 0; | 236 | return 0; |
237 | } | 237 | } |
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index ee8260481273..31456eae7808 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -579,7 +579,7 @@ static int __init omap4_i2c_init(void) | |||
579 | TWL_COMMON_REGULATOR_V1V8 | | 579 | TWL_COMMON_REGULATOR_V1V8 | |
580 | TWL_COMMON_REGULATOR_V2V1); | 580 | TWL_COMMON_REGULATOR_V2V1); |
581 | omap4_pmic_init("twl6030", &sdp4430_twldata, | 581 | omap4_pmic_init("twl6030", &sdp4430_twldata, |
582 | &twl6040_data, OMAP44XX_IRQ_SYS_2N); | 582 | &twl6040_data, 119 + OMAP44XX_IRQ_GIC_START); |
583 | omap_register_i2c_bus(2, 400, NULL, 0); | 583 | omap_register_i2c_bus(2, 400, NULL, 0); |
584 | omap_register_i2c_bus(3, 400, sdp4430_i2c_3_boardinfo, | 584 | omap_register_i2c_bus(3, 400, sdp4430_i2c_3_boardinfo, |
585 | ARRAY_SIZE(sdp4430_i2c_3_boardinfo)); | 585 | ARRAY_SIZE(sdp4430_i2c_3_boardinfo)); |
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 029ebdf70c43..f8bc86029bdc 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -296,8 +296,7 @@ static struct resource am3517_hecc_resources[] = { | |||
296 | .flags = IORESOURCE_MEM, | 296 | .flags = IORESOURCE_MEM, |
297 | }, | 297 | }, |
298 | { | 298 | { |
299 | .start = INT_35XX_HECC0_IRQ, | 299 | .start = 24 + OMAP_INTC_START, |
300 | .end = INT_35XX_HECC0_IRQ, | ||
301 | .flags = IORESOURCE_IRQ, | 300 | .flags = IORESOURCE_IRQ, |
302 | }, | 301 | }, |
303 | }; | 302 | }; |
diff --git a/arch/arm/mach-omap2/board-cm-t3517.c b/arch/arm/mach-omap2/board-cm-t3517.c index 57204f81ce2c..20fe233924ed 100644 --- a/arch/arm/mach-omap2/board-cm-t3517.c +++ b/arch/arm/mach-omap2/board-cm-t3517.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <plat/usb.h> | 42 | #include <plat/usb.h> |
43 | #include <plat/nand.h> | 43 | #include <plat/nand.h> |
44 | #include <plat/gpmc.h> | 44 | #include <plat/gpmc.h> |
45 | #include <plat/serial.h> | ||
45 | 46 | ||
46 | #include <mach/am35xx.h> | 47 | #include <mach/am35xx.h> |
47 | 48 | ||
@@ -89,8 +90,7 @@ static struct resource cm_t3517_hecc_resources[] = { | |||
89 | .flags = IORESOURCE_MEM, | 90 | .flags = IORESOURCE_MEM, |
90 | }, | 91 | }, |
91 | { | 92 | { |
92 | .start = INT_35XX_HECC0_IRQ, | 93 | .start = 24 + OMAP_INTC_START, |
93 | .end = INT_35XX_HECC0_IRQ, | ||
94 | .flags = IORESOURCE_IRQ, | 94 | .flags = IORESOURCE_IRQ, |
95 | }, | 95 | }, |
96 | }; | 96 | }; |
diff --git a/arch/arm/mach-omap2/board-flash.c b/arch/arm/mach-omap2/board-flash.c index 9ceec38610d5..901fa1f12409 100644 --- a/arch/arm/mach-omap2/board-flash.c +++ b/arch/arm/mach-omap2/board-flash.c | |||
@@ -16,8 +16,8 @@ | |||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/mtd/physmap.h> | 17 | #include <linux/mtd/physmap.h> |
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | #include <plat/irqs.h> | ||
20 | 19 | ||
20 | #include <plat/cpu.h> | ||
21 | #include <plat/gpmc.h> | 21 | #include <plat/gpmc.h> |
22 | #include <plat/nand.h> | 22 | #include <plat/nand.h> |
23 | #include <plat/onenand.h> | 23 | #include <plat/onenand.h> |
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 577554933862..bacb917191d1 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -32,6 +32,8 @@ | |||
32 | #include "common.h" | 32 | #include "common.h" |
33 | #include <plat/gpmc.h> | 33 | #include <plat/gpmc.h> |
34 | #include <plat/usb.h> | 34 | #include <plat/usb.h> |
35 | #include <plat/serial.h> | ||
36 | |||
35 | #include <video/omapdss.h> | 37 | #include <video/omapdss.h> |
36 | #include <video/omap-panel-tfp410.h> | 38 | #include <video/omap-panel-tfp410.h> |
37 | #include <plat/onenand.h> | 39 | #include <plat/onenand.h> |
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index 5397209c0b09..6e6b1755c956 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -27,7 +27,6 @@ | |||
27 | 27 | ||
28 | #include "common.h" | 28 | #include "common.h" |
29 | #include <plat/menelaus.h> | 29 | #include <plat/menelaus.h> |
30 | #include <mach/irqs.h> | ||
31 | #include <plat/mcspi.h> | 30 | #include <plat/mcspi.h> |
32 | #include <plat/onenand.h> | 31 | #include <plat/onenand.h> |
33 | #include <plat/mmc.h> | 32 | #include <plat/mmc.h> |
@@ -599,7 +598,7 @@ static struct menelaus_platform_data n8x0_menelaus_platform_data __initdata = { | |||
599 | static struct i2c_board_info __initdata n8x0_i2c_board_info_1[] __initdata = { | 598 | static struct i2c_board_info __initdata n8x0_i2c_board_info_1[] __initdata = { |
600 | { | 599 | { |
601 | I2C_BOARD_INFO("menelaus", 0x72), | 600 | I2C_BOARD_INFO("menelaus", 0x72), |
602 | .irq = INT_24XX_SYS_NIRQ, | 601 | .irq = 7 + OMAP_INTC_START, |
603 | .platform_data = &n8x0_menelaus_platform_data, | 602 | .platform_data = &n8x0_menelaus_platform_data, |
604 | }, | 603 | }, |
605 | }; | 604 | }; |
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index e37ee6749bed..cbf6fd56a9ee 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c | |||
@@ -292,7 +292,7 @@ static int __init omap4_panda_i2c_init(void) | |||
292 | TWL_COMMON_REGULATOR_V1V8 | | 292 | TWL_COMMON_REGULATOR_V1V8 | |
293 | TWL_COMMON_REGULATOR_V2V1); | 293 | TWL_COMMON_REGULATOR_V2V1); |
294 | omap4_pmic_init("twl6030", &omap4_panda_twldata, | 294 | omap4_pmic_init("twl6030", &omap4_panda_twldata, |
295 | &twl6040_data, OMAP44XX_IRQ_SYS_2N); | 295 | &twl6040_data, 119 + OMAP44XX_IRQ_GIC_START); |
296 | omap_register_i2c_bus(2, 400, NULL, 0); | 296 | omap_register_i2c_bus(2, 400, NULL, 0); |
297 | /* | 297 | /* |
298 | * Bus 3 is attached to the DVI port where devices like the pico DLP | 298 | * Bus 3 is attached to the DVI port where devices like the pico DLP |
diff --git a/arch/arm/mach-omap2/board-rm680.c b/arch/arm/mach-omap2/board-rm680.c index 12411b9fa88c..00773a32524a 100644 --- a/arch/arm/mach-omap2/board-rm680.c +++ b/arch/arm/mach-omap2/board-rm680.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <plat/gpmc.h> | 27 | #include <plat/gpmc.h> |
28 | #include "common.h" | 28 | #include "common.h" |
29 | #include <plat/onenand.h> | 29 | #include <plat/onenand.h> |
30 | #include <plat/serial.h> | ||
30 | 31 | ||
31 | #include "mux.h" | 32 | #include "mux.h" |
32 | #include "hsmmc.h" | 33 | #include "hsmmc.h" |
@@ -84,7 +85,7 @@ static struct twl4030_platform_data rm680_twl_data = { | |||
84 | static void __init rm680_i2c_init(void) | 85 | static void __init rm680_i2c_init(void) |
85 | { | 86 | { |
86 | omap3_pmic_get_config(&rm680_twl_data, TWL_COMMON_PDATA_USB, 0); | 87 | omap3_pmic_get_config(&rm680_twl_data, TWL_COMMON_PDATA_USB, 0); |
87 | omap_pmic_init(1, 2900, "twl5031", INT_34XX_SYS_NIRQ, &rm680_twl_data); | 88 | omap_pmic_init(1, 2900, "twl5031", 7 + OMAP_INTC_START, &rm680_twl_data); |
88 | omap_register_i2c_bus(2, 400, NULL, 0); | 89 | omap_register_i2c_bus(2, 400, NULL, 0); |
89 | omap_register_i2c_bus(3, 400, NULL, 0); | 90 | omap_register_i2c_bus(3, 400, NULL, 0); |
90 | } | 91 | } |
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index e8b6dda85945..456049055daa 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -1047,7 +1047,7 @@ static int __init rx51_i2c_init(void) | |||
1047 | rx51_twldata.vdac->constraints.apply_uV = true; | 1047 | rx51_twldata.vdac->constraints.apply_uV = true; |
1048 | rx51_twldata.vdac->constraints.name = "VDAC"; | 1048 | rx51_twldata.vdac->constraints.name = "VDAC"; |
1049 | 1049 | ||
1050 | omap_pmic_init(1, 2200, "twl5030", INT_34XX_SYS_NIRQ, &rx51_twldata); | 1050 | omap_pmic_init(1, 2200, "twl5030", 7 + OMAP_INTC_START, &rx51_twldata); |
1051 | omap_register_i2c_bus(2, 100, rx51_peripherals_i2c_board_info_2, | 1051 | omap_register_i2c_bus(2, 100, rx51_peripherals_i2c_board_info_2, |
1052 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_2)); | 1052 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_2)); |
1053 | #if defined(CONFIG_SENSORS_LIS3_I2C) || defined(CONFIG_SENSORS_LIS3_I2C_MODULE) | 1053 | #if defined(CONFIG_SENSORS_LIS3_I2C) || defined(CONFIG_SENSORS_LIS3_I2C_MODULE) |
diff --git a/arch/arm/mach-omap2/board-ti8168evm.c b/arch/arm/mach-omap2/board-ti8168evm.c index da4679d5d1fa..4ca16e3752b2 100644 --- a/arch/arm/mach-omap2/board-ti8168evm.c +++ b/arch/arm/mach-omap2/board-ti8168evm.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <asm/mach/arch.h> | 20 | #include <asm/mach/arch.h> |
21 | #include <asm/mach/map.h> | 21 | #include <asm/mach/map.h> |
22 | 22 | ||
23 | #include <plat/irqs.h> | ||
24 | #include "common.h" | 23 | #include "common.h" |
25 | #include <plat/usb.h> | 24 | #include <plat/usb.h> |
26 | 25 | ||
diff --git a/arch/arm/mach-omap2/board-zoom-debugboard.c b/arch/arm/mach-omap2/board-zoom-debugboard.c index f64f44173061..f1100c2bd5cd 100644 --- a/arch/arm/mach-omap2/board-zoom-debugboard.c +++ b/arch/arm/mach-omap2/board-zoom-debugboard.c | |||
@@ -19,6 +19,7 @@ | |||
19 | 19 | ||
20 | #include <plat/gpmc.h> | 20 | #include <plat/gpmc.h> |
21 | #include <plat/gpmc-smsc911x.h> | 21 | #include <plat/gpmc-smsc911x.h> |
22 | #include <plat/serial.h> | ||
22 | 23 | ||
23 | #include <mach/board-zoom.h> | 24 | #include <mach/board-zoom.h> |
24 | 25 | ||
diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c index ae5d36bc443f..089024c1dfbb 100644 --- a/arch/arm/mach-omap2/board-zoom-peripherals.c +++ b/arch/arm/mach-omap2/board-zoom-peripherals.c | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include "common.h" | 28 | #include "common.h" |
29 | #include <plat/usb.h> | 29 | #include <plat/usb.h> |
30 | #include <plat/serial.h> | ||
30 | 31 | ||
31 | #include <mach/board-zoom.h> | 32 | #include <mach/board-zoom.h> |
32 | 33 | ||
@@ -279,7 +280,7 @@ static int __init omap_i2c_init(void) | |||
279 | codec_data->hs_extmute = 1; | 280 | codec_data->hs_extmute = 1; |
280 | codec_data->set_hs_extmute = zoom2_set_hs_extmute; | 281 | codec_data->set_hs_extmute = zoom2_set_hs_extmute; |
281 | } | 282 | } |
282 | omap_pmic_init(1, 2400, "twl5030", INT_34XX_SYS_NIRQ, &zoom_twldata); | 283 | omap_pmic_init(1, 2400, "twl5030", 7 + OMAP_INTC_START, &zoom_twldata); |
283 | omap_register_i2c_bus(2, 400, NULL, 0); | 284 | omap_register_i2c_bus(2, 400, NULL, 0); |
284 | omap_register_i2c_bus(3, 400, NULL, 0); | 285 | omap_register_i2c_bus(3, 400, NULL, 0); |
285 | return 0; | 286 | return 0; |
diff --git a/arch/arm/mach-omap2/common-board-devices.c b/arch/arm/mach-omap2/common-board-devices.c index c1875862679f..013fedc9e131 100644 --- a/arch/arm/mach-omap2/common-board-devices.c +++ b/arch/arm/mach-omap2/common-board-devices.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <plat/mcspi.h> | 27 | #include <plat/mcspi.h> |
28 | #include <plat/nand.h> | 28 | #include <plat/nand.h> |
29 | 29 | ||
30 | #include "common.h" | ||
30 | #include "common-board-devices.h" | 31 | #include "common-board-devices.h" |
31 | 32 | ||
32 | #if defined(CONFIG_TOUCHSCREEN_ADS7846) || \ | 33 | #if defined(CONFIG_TOUCHSCREEN_ADS7846) || \ |
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 1f65b1871c23..7e60a69bfe61 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <plat/common.h> | 31 | #include <plat/common.h> |
32 | #include <asm/proc-fns.h> | 32 | #include <asm/proc-fns.h> |
33 | 33 | ||
34 | #define OMAP_INTC_START 0 | ||
35 | |||
34 | #ifdef CONFIG_SOC_OMAP2420 | 36 | #ifdef CONFIG_SOC_OMAP2420 |
35 | extern void omap242x_map_common_io(void); | 37 | extern void omap242x_map_common_io(void); |
36 | #else | 38 | #else |
diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c index f2a49a48ef59..bc2756959be5 100644 --- a/arch/arm/mach-omap2/cpuidle34xx.c +++ b/arch/arm/mach-omap2/cpuidle34xx.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/cpu_pm.h> | 28 | #include <linux/cpu_pm.h> |
29 | 29 | ||
30 | #include <plat/prcm.h> | 30 | #include <plat/prcm.h> |
31 | #include <plat/irqs.h> | ||
32 | #include "powerdomain.h" | 31 | #include "powerdomain.h" |
33 | #include "clockdomain.h" | 32 | #include "clockdomain.h" |
34 | 33 | ||
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 56dfa2df6e78..626e98e538c5 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <linux/platform_data/omap4-keypad.h> | 20 | #include <linux/platform_data/omap4-keypad.h> |
21 | 21 | ||
22 | #include <mach/hardware.h> | 22 | #include <mach/hardware.h> |
23 | #include <mach/irqs.h> | ||
24 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
25 | #include <asm/mach/map.h> | 24 | #include <asm/mach/map.h> |
26 | #include <asm/pmu.h> | 25 | #include <asm/pmu.h> |
@@ -31,6 +30,8 @@ | |||
31 | #include <plat/omap_device.h> | 30 | #include <plat/omap_device.h> |
32 | #include <plat/omap4-keypad.h> | 31 | #include <plat/omap4-keypad.h> |
33 | 32 | ||
33 | #include "soc.h" | ||
34 | #include "common.h" | ||
34 | #include "mux.h" | 35 | #include "mux.h" |
35 | #include "control.h" | 36 | #include "control.h" |
36 | #include "devices.h" | 37 | #include "devices.h" |
@@ -111,7 +112,7 @@ static struct resource omap2cam_resources[] = { | |||
111 | .flags = IORESOURCE_MEM, | 112 | .flags = IORESOURCE_MEM, |
112 | }, | 113 | }, |
113 | { | 114 | { |
114 | .start = INT_24XX_CAM_IRQ, | 115 | .start = 24 + OMAP_INTC_START, |
115 | .flags = IORESOURCE_IRQ, | 116 | .flags = IORESOURCE_IRQ, |
116 | } | 117 | } |
117 | }; | 118 | }; |
@@ -200,7 +201,7 @@ static struct resource omap3isp_resources[] = { | |||
200 | .flags = IORESOURCE_MEM, | 201 | .flags = IORESOURCE_MEM, |
201 | }, | 202 | }, |
202 | { | 203 | { |
203 | .start = INT_34XX_CAM_IRQ, | 204 | .start = 24 + OMAP_INTC_START, |
204 | .flags = IORESOURCE_IRQ, | 205 | .flags = IORESOURCE_IRQ, |
205 | } | 206 | } |
206 | }; | 207 | }; |
@@ -434,14 +435,12 @@ static inline void omap_init_mcspi(void) {} | |||
434 | #endif | 435 | #endif |
435 | 436 | ||
436 | static struct resource omap2_pmu_resource = { | 437 | static struct resource omap2_pmu_resource = { |
437 | .start = 3, | 438 | .start = 3 + OMAP_INTC_START, |
438 | .end = 3, | ||
439 | .flags = IORESOURCE_IRQ, | 439 | .flags = IORESOURCE_IRQ, |
440 | }; | 440 | }; |
441 | 441 | ||
442 | static struct resource omap3_pmu_resource = { | 442 | static struct resource omap3_pmu_resource = { |
443 | .start = INT_34XX_BENCH_MPU_EMUL, | 443 | .start = 3 + OMAP_INTC_START, |
444 | .end = INT_34XX_BENCH_MPU_EMUL, | ||
445 | .flags = IORESOURCE_IRQ, | 444 | .flags = IORESOURCE_IRQ, |
446 | }; | 445 | }; |
447 | 446 | ||
@@ -474,7 +473,7 @@ static struct resource omap2_sham_resources[] = { | |||
474 | .flags = IORESOURCE_MEM, | 473 | .flags = IORESOURCE_MEM, |
475 | }, | 474 | }, |
476 | { | 475 | { |
477 | .start = INT_24XX_SHA1MD5, | 476 | .start = 51 + OMAP_INTC_START, |
478 | .flags = IORESOURCE_IRQ, | 477 | .flags = IORESOURCE_IRQ, |
479 | } | 478 | } |
480 | }; | 479 | }; |
@@ -492,7 +491,7 @@ static struct resource omap3_sham_resources[] = { | |||
492 | .flags = IORESOURCE_MEM, | 491 | .flags = IORESOURCE_MEM, |
493 | }, | 492 | }, |
494 | { | 493 | { |
495 | .start = INT_34XX_SHA1MD52_IRQ, | 494 | .start = 49 + OMAP_INTC_START, |
496 | .flags = IORESOURCE_IRQ, | 495 | .flags = IORESOURCE_IRQ, |
497 | }, | 496 | }, |
498 | { | 497 | { |
diff --git a/arch/arm/mach-omap2/gpmc-smc91x.c b/arch/arm/mach-omap2/gpmc-smc91x.c index 3f75ff0bd614..e8ff2da1be51 100644 --- a/arch/arm/mach-omap2/gpmc-smc91x.c +++ b/arch/arm/mach-omap2/gpmc-smc91x.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
18 | #include <linux/smc91x.h> | 18 | #include <linux/smc91x.h> |
19 | 19 | ||
20 | #include <plat/cpu.h> | ||
20 | #include <plat/gpmc.h> | 21 | #include <plat/gpmc.h> |
21 | #include <plat/gpmc-smc91x.h> | 22 | #include <plat/gpmc-smc91x.h> |
22 | 23 | ||
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 39c30d9bafd9..68eead8d7bcd 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c | |||
@@ -28,8 +28,13 @@ | |||
28 | #include <asm/mach-types.h> | 28 | #include <asm/mach-types.h> |
29 | #include <plat/gpmc.h> | 29 | #include <plat/gpmc.h> |
30 | 30 | ||
31 | #include <plat/cpu.h> | ||
31 | #include <plat/sdrc.h> | 32 | #include <plat/sdrc.h> |
32 | 33 | ||
34 | #include <mach/hardware.h> | ||
35 | |||
36 | #include "common.h" | ||
37 | |||
33 | /* GPMC register offsets */ | 38 | /* GPMC register offsets */ |
34 | #define GPMC_REVISION 0x00 | 39 | #define GPMC_REVISION 0x00 |
35 | #define GPMC_SYSCONFIG 0x10 | 40 | #define GPMC_SYSCONFIG 0x10 |
@@ -846,16 +851,16 @@ static int __init gpmc_init(void) | |||
846 | l = OMAP2420_GPMC_BASE; | 851 | l = OMAP2420_GPMC_BASE; |
847 | else | 852 | else |
848 | l = OMAP34XX_GPMC_BASE; | 853 | l = OMAP34XX_GPMC_BASE; |
849 | gpmc_irq = INT_34XX_GPMC_IRQ; | 854 | gpmc_irq = 20 + OMAP_INTC_START; |
850 | } else if (cpu_is_omap34xx()) { | 855 | } else if (cpu_is_omap34xx()) { |
851 | ck = "gpmc_fck"; | 856 | ck = "gpmc_fck"; |
852 | l = OMAP34XX_GPMC_BASE; | 857 | l = OMAP34XX_GPMC_BASE; |
853 | gpmc_irq = INT_34XX_GPMC_IRQ; | 858 | gpmc_irq = 20 + OMAP_INTC_START; |
854 | } else if (cpu_is_omap44xx() || soc_is_omap54xx()) { | 859 | } else if (cpu_is_omap44xx() || soc_is_omap54xx()) { |
855 | /* Base address and irq number are same for OMAP4/5 */ | 860 | /* Base address and irq number are same for OMAP4/5 */ |
856 | ck = "gpmc_ck"; | 861 | ck = "gpmc_ck"; |
857 | l = OMAP44XX_GPMC_BASE; | 862 | l = OMAP44XX_GPMC_BASE; |
858 | gpmc_irq = OMAP44XX_IRQ_GPMC; | 863 | gpmc_irq = 20 + OMAP44XX_IRQ_GIC_START; |
859 | } | 864 | } |
860 | 865 | ||
861 | if (WARN_ON(!ck)) | 866 | if (WARN_ON(!ck)) |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 4d2d981ff5c5..ff6fc5b2add5 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -33,6 +33,8 @@ | |||
33 | #include <plat/multi.h> | 33 | #include <plat/multi.h> |
34 | #include <plat/dma.h> | 34 | #include <plat/dma.h> |
35 | 35 | ||
36 | #include <mach/hardware.h> | ||
37 | |||
36 | #include "iomap.h" | 38 | #include "iomap.h" |
37 | #include "voltage.h" | 39 | #include "voltage.h" |
38 | #include "powerdomain.h" | 40 | #include "powerdomain.h" |
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index 6875be837d9f..e032a7315305 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c | |||
@@ -16,8 +16,9 @@ | |||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
18 | #include <linux/pm_runtime.h> | 18 | #include <linux/pm_runtime.h> |
19 | |||
20 | #include <plat/cpu.h> | ||
19 | #include <plat/mailbox.h> | 21 | #include <plat/mailbox.h> |
20 | #include <mach/irqs.h> | ||
21 | 22 | ||
22 | #define MAILBOX_REVISION 0x000 | 23 | #define MAILBOX_REVISION 0x000 |
23 | #define MAILBOX_MESSAGE(m) (0x040 + 4 * (m)) | 24 | #define MAILBOX_MESSAGE(m) (0x040 + 4 * (m)) |
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index 577cb77db26c..219a6e800bad 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | 20 | ||
21 | #include <mach/irqs.h> | ||
22 | #include <plat/dma.h> | 21 | #include <plat/dma.h> |
23 | #include <plat/cpu.h> | 22 | #include <plat/cpu.h> |
24 | #include <plat/mcbsp.h> | 23 | #include <plat/mcbsp.h> |
diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap-iommu.c index 1be8bcb52e93..df298d46707c 100644 --- a/arch/arm/mach-omap2/omap-iommu.c +++ b/arch/arm/mach-omap2/omap-iommu.c | |||
@@ -14,7 +14,9 @@ | |||
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | 15 | ||
16 | #include <plat/iommu.h> | 16 | #include <plat/iommu.h> |
17 | #include <plat/irqs.h> | 17 | |
18 | #include "soc.h" | ||
19 | #include "common.h" | ||
18 | 20 | ||
19 | struct iommu_device { | 21 | struct iommu_device { |
20 | resource_size_t base; | 22 | resource_size_t base; |
@@ -29,7 +31,7 @@ static int num_iommu_devices; | |||
29 | static struct iommu_device omap3_devices[] = { | 31 | static struct iommu_device omap3_devices[] = { |
30 | { | 32 | { |
31 | .base = 0x480bd400, | 33 | .base = 0x480bd400, |
32 | .irq = 24, | 34 | .irq = 24 + OMAP_INTC_START, |
33 | .pdata = { | 35 | .pdata = { |
34 | .name = "isp", | 36 | .name = "isp", |
35 | .nr_tlb_entries = 8, | 37 | .nr_tlb_entries = 8, |
@@ -41,7 +43,7 @@ static struct iommu_device omap3_devices[] = { | |||
41 | #if defined(CONFIG_OMAP_IOMMU_IVA2) | 43 | #if defined(CONFIG_OMAP_IOMMU_IVA2) |
42 | { | 44 | { |
43 | .base = 0x5d000000, | 45 | .base = 0x5d000000, |
44 | .irq = 28, | 46 | .irq = 28 + OMAP_INTC_START, |
45 | .pdata = { | 47 | .pdata = { |
46 | .name = "iva2", | 48 | .name = "iva2", |
47 | .nr_tlb_entries = 32, | 49 | .nr_tlb_entries = 32, |
@@ -64,7 +66,7 @@ static struct platform_device *omap3_iommu_pdev[NR_OMAP3_IOMMU_DEVICES]; | |||
64 | static struct iommu_device omap4_devices[] = { | 66 | static struct iommu_device omap4_devices[] = { |
65 | { | 67 | { |
66 | .base = OMAP4_MMU1_BASE, | 68 | .base = OMAP4_MMU1_BASE, |
67 | .irq = OMAP44XX_IRQ_DUCATI_MMU, | 69 | .irq = 100 + OMAP44XX_IRQ_GIC_START, |
68 | .pdata = { | 70 | .pdata = { |
69 | .name = "ducati", | 71 | .name = "ducati", |
70 | .nr_tlb_entries = 32, | 72 | .nr_tlb_entries = 32, |
@@ -75,7 +77,7 @@ static struct iommu_device omap4_devices[] = { | |||
75 | }, | 77 | }, |
76 | { | 78 | { |
77 | .base = OMAP4_MMU2_BASE, | 79 | .base = OMAP4_MMU2_BASE, |
78 | .irq = OMAP44XX_IRQ_TESLA_MMU, | 80 | .irq = 28 + OMAP44XX_IRQ_GIC_START, |
79 | .pdata = { | 81 | .pdata = { |
80 | .name = "tesla", | 82 | .name = "tesla", |
81 | .nr_tlb_entries = 32, | 83 | .nr_tlb_entries = 32, |
diff --git a/arch/arm/mach-omap2/omap-wakeupgen.c b/arch/arm/mach-omap2/omap-wakeupgen.c index 05fdebfaa195..95ee7dd64297 100644 --- a/arch/arm/mach-omap2/omap-wakeupgen.c +++ b/arch/arm/mach-omap2/omap-wakeupgen.c | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include <asm/hardware/gic.h> | 28 | #include <asm/hardware/gic.h> |
29 | 29 | ||
30 | #include <mach/hardware.h> | ||
30 | #include <mach/omap-wakeupgen.h> | 31 | #include <mach/omap-wakeupgen.h> |
31 | #include <mach/omap-secure.h> | 32 | #include <mach/omap-secure.h> |
32 | 33 | ||
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index c29dee998a79..c886325c2f48 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c | |||
@@ -16,15 +16,15 @@ | |||
16 | #include <linux/io.h> | 16 | #include <linux/io.h> |
17 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
18 | #include <linux/memblock.h> | 18 | #include <linux/memblock.h> |
19 | #include <linux/of_irq.h> | ||
20 | #include <linux/of_platform.h> | ||
21 | #include <linux/export.h> | ||
19 | 22 | ||
20 | #include <asm/hardware/gic.h> | 23 | #include <asm/hardware/gic.h> |
21 | #include <asm/hardware/cache-l2x0.h> | 24 | #include <asm/hardware/cache-l2x0.h> |
22 | #include <asm/mach/map.h> | 25 | #include <asm/mach/map.h> |
23 | #include <asm/memblock.h> | 26 | #include <asm/memblock.h> |
24 | #include <linux/of_irq.h> | ||
25 | #include <linux/of_platform.h> | ||
26 | 27 | ||
27 | #include <plat/irqs.h> | ||
28 | #include <plat/sram.h> | 28 | #include <plat/sram.h> |
29 | #include <plat/omap-secure.h> | 29 | #include <plat/omap-secure.h> |
30 | #include <plat/mmc.h> | 30 | #include <plat/mmc.h> |
@@ -35,7 +35,6 @@ | |||
35 | #include "common.h" | 35 | #include "common.h" |
36 | #include "hsmmc.h" | 36 | #include "hsmmc.h" |
37 | #include "omap4-sar-layout.h" | 37 | #include "omap4-sar-layout.h" |
38 | #include <linux/export.h> | ||
39 | 38 | ||
40 | #ifdef CONFIG_CACHE_L2X0 | 39 | #ifdef CONFIG_CACHE_L2X0 |
41 | static void __iomem *l2cache_base; | 40 | static void __iomem *l2cache_base; |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2420_data.c b/arch/arm/mach-omap2/omap_hwmod_2420_data.c index 5b49ebfd4df6..1645d3f73207 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2420_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2420_data.c | |||
@@ -13,7 +13,6 @@ | |||
13 | * XXX these should be marked initdata for multi-OMAP kernels | 13 | * XXX these should be marked initdata for multi-OMAP kernels |
14 | */ | 14 | */ |
15 | #include <plat/omap_hwmod.h> | 15 | #include <plat/omap_hwmod.h> |
16 | #include <mach/irqs.h> | ||
17 | #include <plat/cpu.h> | 16 | #include <plat/cpu.h> |
18 | #include <plat/dma.h> | 17 | #include <plat/dma.h> |
19 | #include <plat/serial.h> | 18 | #include <plat/serial.h> |
@@ -161,9 +160,9 @@ static struct omap_hwmod omap2420_dma_system_hwmod = { | |||
161 | 160 | ||
162 | /* mailbox */ | 161 | /* mailbox */ |
163 | static struct omap_hwmod_irq_info omap2420_mailbox_irqs[] = { | 162 | static struct omap_hwmod_irq_info omap2420_mailbox_irqs[] = { |
164 | { .name = "dsp", .irq = 26 }, | 163 | { .name = "dsp", .irq = 26 + OMAP_INTC_START, }, |
165 | { .name = "iva", .irq = 34 }, | 164 | { .name = "iva", .irq = 34 + OMAP_INTC_START, }, |
166 | { .irq = -1 } | 165 | { .irq = -1 }, |
167 | }; | 166 | }; |
168 | 167 | ||
169 | static struct omap_hwmod omap2420_mailbox_hwmod = { | 168 | static struct omap_hwmod omap2420_mailbox_hwmod = { |
@@ -198,9 +197,9 @@ static struct omap_hwmod_opt_clk mcbsp_opt_clks[] = { | |||
198 | 197 | ||
199 | /* mcbsp1 */ | 198 | /* mcbsp1 */ |
200 | static struct omap_hwmod_irq_info omap2420_mcbsp1_irqs[] = { | 199 | static struct omap_hwmod_irq_info omap2420_mcbsp1_irqs[] = { |
201 | { .name = "tx", .irq = 59 }, | 200 | { .name = "tx", .irq = 59 + OMAP_INTC_START, }, |
202 | { .name = "rx", .irq = 60 }, | 201 | { .name = "rx", .irq = 60 + OMAP_INTC_START, }, |
203 | { .irq = -1 } | 202 | { .irq = -1 }, |
204 | }; | 203 | }; |
205 | 204 | ||
206 | static struct omap_hwmod omap2420_mcbsp1_hwmod = { | 205 | static struct omap_hwmod omap2420_mcbsp1_hwmod = { |
@@ -224,9 +223,9 @@ static struct omap_hwmod omap2420_mcbsp1_hwmod = { | |||
224 | 223 | ||
225 | /* mcbsp2 */ | 224 | /* mcbsp2 */ |
226 | static struct omap_hwmod_irq_info omap2420_mcbsp2_irqs[] = { | 225 | static struct omap_hwmod_irq_info omap2420_mcbsp2_irqs[] = { |
227 | { .name = "tx", .irq = 62 }, | 226 | { .name = "tx", .irq = 62 + OMAP_INTC_START, }, |
228 | { .name = "rx", .irq = 63 }, | 227 | { .name = "rx", .irq = 63 + OMAP_INTC_START, }, |
229 | { .irq = -1 } | 228 | { .irq = -1 }, |
230 | }; | 229 | }; |
231 | 230 | ||
232 | static struct omap_hwmod omap2420_mcbsp2_hwmod = { | 231 | static struct omap_hwmod omap2420_mcbsp2_hwmod = { |
@@ -264,8 +263,8 @@ static struct omap_hwmod_class omap2420_msdi_hwmod_class = { | |||
264 | 263 | ||
265 | /* msdi1 */ | 264 | /* msdi1 */ |
266 | static struct omap_hwmod_irq_info omap2420_msdi1_irqs[] = { | 265 | static struct omap_hwmod_irq_info omap2420_msdi1_irqs[] = { |
267 | { .irq = 83 }, | 266 | { .irq = 83 + OMAP_INTC_START, }, |
268 | { .irq = -1 } | 267 | { .irq = -1 }, |
269 | }; | 268 | }; |
270 | 269 | ||
271 | static struct omap_hwmod_dma_info omap2420_msdi1_sdma_reqs[] = { | 270 | static struct omap_hwmod_dma_info omap2420_msdi1_sdma_reqs[] = { |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm/mach-omap2/omap_hwmod_2430_data.c index 1fd66f0ba2de..23582fcb97ff 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2430_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2430_data.c | |||
@@ -13,7 +13,6 @@ | |||
13 | * XXX these should be marked initdata for multi-OMAP kernels | 13 | * XXX these should be marked initdata for multi-OMAP kernels |
14 | */ | 14 | */ |
15 | #include <plat/omap_hwmod.h> | 15 | #include <plat/omap_hwmod.h> |
16 | #include <mach/irqs.h> | ||
17 | #include <plat/cpu.h> | 16 | #include <plat/cpu.h> |
18 | #include <plat/dma.h> | 17 | #include <plat/dma.h> |
19 | #include <plat/serial.h> | 18 | #include <plat/serial.h> |
@@ -24,6 +23,8 @@ | |||
24 | #include <plat/mmc.h> | 23 | #include <plat/mmc.h> |
25 | #include <plat/l3_2xxx.h> | 24 | #include <plat/l3_2xxx.h> |
26 | 25 | ||
26 | #include <plat/hardware.h> | ||
27 | |||
27 | #include "omap_hwmod_common_data.h" | 28 | #include "omap_hwmod_common_data.h" |
28 | 29 | ||
29 | #include "prm-regbits-24xx.h" | 30 | #include "prm-regbits-24xx.h" |
@@ -132,8 +133,8 @@ static struct omap_hwmod omap2430_i2c2_hwmod = { | |||
132 | 133 | ||
133 | /* gpio5 */ | 134 | /* gpio5 */ |
134 | static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = { | 135 | static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = { |
135 | { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */ | 136 | { .irq = 33 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK5 */ |
136 | { .irq = -1 } | 137 | { .irq = -1 }, |
137 | }; | 138 | }; |
138 | 139 | ||
139 | static struct omap_hwmod omap2430_gpio5_hwmod = { | 140 | static struct omap_hwmod omap2430_gpio5_hwmod = { |
@@ -172,8 +173,8 @@ static struct omap_hwmod omap2430_dma_system_hwmod = { | |||
172 | 173 | ||
173 | /* mailbox */ | 174 | /* mailbox */ |
174 | static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = { | 175 | static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = { |
175 | { .irq = 26 }, | 176 | { .irq = 26 + OMAP_INTC_START, }, |
176 | { .irq = -1 } | 177 | { .irq = -1 }, |
177 | }; | 178 | }; |
178 | 179 | ||
179 | static struct omap_hwmod omap2430_mailbox_hwmod = { | 180 | static struct omap_hwmod omap2430_mailbox_hwmod = { |
@@ -194,8 +195,8 @@ static struct omap_hwmod omap2430_mailbox_hwmod = { | |||
194 | 195 | ||
195 | /* mcspi3 */ | 196 | /* mcspi3 */ |
196 | static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = { | 197 | static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = { |
197 | { .irq = 91 }, | 198 | { .irq = 91 + OMAP_INTC_START, }, |
198 | { .irq = -1 } | 199 | { .irq = -1 }, |
199 | }; | 200 | }; |
200 | 201 | ||
201 | static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = { | 202 | static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = { |
@@ -249,9 +250,9 @@ static struct omap_hwmod_class usbotg_class = { | |||
249 | /* usb_otg_hs */ | 250 | /* usb_otg_hs */ |
250 | static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = { | 251 | static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = { |
251 | 252 | ||
252 | { .name = "mc", .irq = 92 }, | 253 | { .name = "mc", .irq = 92 + OMAP_INTC_START, }, |
253 | { .name = "dma", .irq = 93 }, | 254 | { .name = "dma", .irq = 93 + OMAP_INTC_START, }, |
254 | { .irq = -1 } | 255 | { .irq = -1 }, |
255 | }; | 256 | }; |
256 | 257 | ||
257 | static struct omap_hwmod omap2430_usbhsotg_hwmod = { | 258 | static struct omap_hwmod omap2430_usbhsotg_hwmod = { |
@@ -302,11 +303,11 @@ static struct omap_hwmod_opt_clk mcbsp_opt_clks[] = { | |||
302 | 303 | ||
303 | /* mcbsp1 */ | 304 | /* mcbsp1 */ |
304 | static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = { | 305 | static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = { |
305 | { .name = "tx", .irq = 59 }, | 306 | { .name = "tx", .irq = 59 + OMAP_INTC_START, }, |
306 | { .name = "rx", .irq = 60 }, | 307 | { .name = "rx", .irq = 60 + OMAP_INTC_START, }, |
307 | { .name = "ovr", .irq = 61 }, | 308 | { .name = "ovr", .irq = 61 + OMAP_INTC_START, }, |
308 | { .name = "common", .irq = 64 }, | 309 | { .name = "common", .irq = 64 + OMAP_INTC_START, }, |
309 | { .irq = -1 } | 310 | { .irq = -1 }, |
310 | }; | 311 | }; |
311 | 312 | ||
312 | static struct omap_hwmod omap2430_mcbsp1_hwmod = { | 313 | static struct omap_hwmod omap2430_mcbsp1_hwmod = { |
@@ -330,10 +331,10 @@ static struct omap_hwmod omap2430_mcbsp1_hwmod = { | |||
330 | 331 | ||
331 | /* mcbsp2 */ | 332 | /* mcbsp2 */ |
332 | static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = { | 333 | static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = { |
333 | { .name = "tx", .irq = 62 }, | 334 | { .name = "tx", .irq = 62 + OMAP_INTC_START, }, |
334 | { .name = "rx", .irq = 63 }, | 335 | { .name = "rx", .irq = 63 + OMAP_INTC_START, }, |
335 | { .name = "common", .irq = 16 }, | 336 | { .name = "common", .irq = 16 + OMAP_INTC_START, }, |
336 | { .irq = -1 } | 337 | { .irq = -1 }, |
337 | }; | 338 | }; |
338 | 339 | ||
339 | static struct omap_hwmod omap2430_mcbsp2_hwmod = { | 340 | static struct omap_hwmod omap2430_mcbsp2_hwmod = { |
@@ -357,10 +358,10 @@ static struct omap_hwmod omap2430_mcbsp2_hwmod = { | |||
357 | 358 | ||
358 | /* mcbsp3 */ | 359 | /* mcbsp3 */ |
359 | static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = { | 360 | static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = { |
360 | { .name = "tx", .irq = 89 }, | 361 | { .name = "tx", .irq = 89 + OMAP_INTC_START, }, |
361 | { .name = "rx", .irq = 90 }, | 362 | { .name = "rx", .irq = 90 + OMAP_INTC_START, }, |
362 | { .name = "common", .irq = 17 }, | 363 | { .name = "common", .irq = 17 + OMAP_INTC_START, }, |
363 | { .irq = -1 } | 364 | { .irq = -1 }, |
364 | }; | 365 | }; |
365 | 366 | ||
366 | static struct omap_hwmod omap2430_mcbsp3_hwmod = { | 367 | static struct omap_hwmod omap2430_mcbsp3_hwmod = { |
@@ -384,10 +385,10 @@ static struct omap_hwmod omap2430_mcbsp3_hwmod = { | |||
384 | 385 | ||
385 | /* mcbsp4 */ | 386 | /* mcbsp4 */ |
386 | static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = { | 387 | static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = { |
387 | { .name = "tx", .irq = 54 }, | 388 | { .name = "tx", .irq = 54 + OMAP_INTC_START, }, |
388 | { .name = "rx", .irq = 55 }, | 389 | { .name = "rx", .irq = 55 + OMAP_INTC_START, }, |
389 | { .name = "common", .irq = 18 }, | 390 | { .name = "common", .irq = 18 + OMAP_INTC_START, }, |
390 | { .irq = -1 } | 391 | { .irq = -1 }, |
391 | }; | 392 | }; |
392 | 393 | ||
393 | static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = { | 394 | static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = { |
@@ -417,10 +418,10 @@ static struct omap_hwmod omap2430_mcbsp4_hwmod = { | |||
417 | 418 | ||
418 | /* mcbsp5 */ | 419 | /* mcbsp5 */ |
419 | static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = { | 420 | static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = { |
420 | { .name = "tx", .irq = 81 }, | 421 | { .name = "tx", .irq = 81 + OMAP_INTC_START, }, |
421 | { .name = "rx", .irq = 82 }, | 422 | { .name = "rx", .irq = 82 + OMAP_INTC_START, }, |
422 | { .name = "common", .irq = 19 }, | 423 | { .name = "common", .irq = 19 + OMAP_INTC_START, }, |
423 | { .irq = -1 } | 424 | { .irq = -1 }, |
424 | }; | 425 | }; |
425 | 426 | ||
426 | static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = { | 427 | static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = { |
@@ -467,8 +468,8 @@ static struct omap_hwmod_class omap2430_mmc_class = { | |||
467 | 468 | ||
468 | /* MMC/SD/SDIO1 */ | 469 | /* MMC/SD/SDIO1 */ |
469 | static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = { | 470 | static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = { |
470 | { .irq = 83 }, | 471 | { .irq = 83 + OMAP_INTC_START, }, |
471 | { .irq = -1 } | 472 | { .irq = -1 }, |
472 | }; | 473 | }; |
473 | 474 | ||
474 | static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = { | 475 | static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = { |
@@ -508,8 +509,8 @@ static struct omap_hwmod omap2430_mmc1_hwmod = { | |||
508 | 509 | ||
509 | /* MMC/SD/SDIO2 */ | 510 | /* MMC/SD/SDIO2 */ |
510 | static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = { | 511 | static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = { |
511 | { .irq = 86 }, | 512 | { .irq = 86 + OMAP_INTC_START, }, |
512 | { .irq = -1 } | 513 | { .irq = -1 }, |
513 | }; | 514 | }; |
514 | 515 | ||
515 | static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = { | 516 | static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = { |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_ipblock_data.c index 102d76e9e9ea..bea700e928e7 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_ipblock_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_ipblock_data.c | |||
@@ -15,8 +15,6 @@ | |||
15 | #include <plat/common.h> | 15 | #include <plat/common.h> |
16 | #include <plat/hdq1w.h> | 16 | #include <plat/hdq1w.h> |
17 | 17 | ||
18 | #include <mach/irqs.h> | ||
19 | |||
20 | #include "omap_hwmod_common_data.h" | 18 | #include "omap_hwmod_common_data.h" |
21 | 19 | ||
22 | /* UART */ | 20 | /* UART */ |
@@ -182,126 +180,126 @@ struct omap_hwmod_class iva_hwmod_class = { | |||
182 | /* Common MPU IRQ line data */ | 180 | /* Common MPU IRQ line data */ |
183 | 181 | ||
184 | struct omap_hwmod_irq_info omap2_timer1_mpu_irqs[] = { | 182 | struct omap_hwmod_irq_info omap2_timer1_mpu_irqs[] = { |
185 | { .irq = 37, }, | 183 | { .irq = 37 + OMAP_INTC_START, }, |
186 | { .irq = -1 } | 184 | { .irq = -1 }, |
187 | }; | 185 | }; |
188 | 186 | ||
189 | struct omap_hwmod_irq_info omap2_timer2_mpu_irqs[] = { | 187 | struct omap_hwmod_irq_info omap2_timer2_mpu_irqs[] = { |
190 | { .irq = 38, }, | 188 | { .irq = 38 + OMAP_INTC_START, }, |
191 | { .irq = -1 } | 189 | { .irq = -1 }, |
192 | }; | 190 | }; |
193 | 191 | ||
194 | struct omap_hwmod_irq_info omap2_timer3_mpu_irqs[] = { | 192 | struct omap_hwmod_irq_info omap2_timer3_mpu_irqs[] = { |
195 | { .irq = 39, }, | 193 | { .irq = 39 + OMAP_INTC_START, }, |
196 | { .irq = -1 } | 194 | { .irq = -1 }, |
197 | }; | 195 | }; |
198 | 196 | ||
199 | struct omap_hwmod_irq_info omap2_timer4_mpu_irqs[] = { | 197 | struct omap_hwmod_irq_info omap2_timer4_mpu_irqs[] = { |
200 | { .irq = 40, }, | 198 | { .irq = 40 + OMAP_INTC_START, }, |
201 | { .irq = -1 } | 199 | { .irq = -1 }, |
202 | }; | 200 | }; |
203 | 201 | ||
204 | struct omap_hwmod_irq_info omap2_timer5_mpu_irqs[] = { | 202 | struct omap_hwmod_irq_info omap2_timer5_mpu_irqs[] = { |
205 | { .irq = 41, }, | 203 | { .irq = 41 + OMAP_INTC_START, }, |
206 | { .irq = -1 } | 204 | { .irq = -1 }, |
207 | }; | 205 | }; |
208 | 206 | ||
209 | struct omap_hwmod_irq_info omap2_timer6_mpu_irqs[] = { | 207 | struct omap_hwmod_irq_info omap2_timer6_mpu_irqs[] = { |
210 | { .irq = 42, }, | 208 | { .irq = 42 + OMAP_INTC_START, }, |
211 | { .irq = -1 } | 209 | { .irq = -1 }, |
212 | }; | 210 | }; |
213 | 211 | ||
214 | struct omap_hwmod_irq_info omap2_timer7_mpu_irqs[] = { | 212 | struct omap_hwmod_irq_info omap2_timer7_mpu_irqs[] = { |
215 | { .irq = 43, }, | 213 | { .irq = 43 + OMAP_INTC_START, }, |
216 | { .irq = -1 } | 214 | { .irq = -1 }, |
217 | }; | 215 | }; |
218 | 216 | ||
219 | struct omap_hwmod_irq_info omap2_timer8_mpu_irqs[] = { | 217 | struct omap_hwmod_irq_info omap2_timer8_mpu_irqs[] = { |
220 | { .irq = 44, }, | 218 | { .irq = 44 + OMAP_INTC_START, }, |
221 | { .irq = -1 } | 219 | { .irq = -1 }, |
222 | }; | 220 | }; |
223 | 221 | ||
224 | struct omap_hwmod_irq_info omap2_timer9_mpu_irqs[] = { | 222 | struct omap_hwmod_irq_info omap2_timer9_mpu_irqs[] = { |
225 | { .irq = 45, }, | 223 | { .irq = 45 + OMAP_INTC_START, }, |
226 | { .irq = -1 } | 224 | { .irq = -1 }, |
227 | }; | 225 | }; |
228 | 226 | ||
229 | struct omap_hwmod_irq_info omap2_timer10_mpu_irqs[] = { | 227 | struct omap_hwmod_irq_info omap2_timer10_mpu_irqs[] = { |
230 | { .irq = 46, }, | 228 | { .irq = 46 + OMAP_INTC_START, }, |
231 | { .irq = -1 } | 229 | { .irq = -1 }, |
232 | }; | 230 | }; |
233 | 231 | ||
234 | struct omap_hwmod_irq_info omap2_timer11_mpu_irqs[] = { | 232 | struct omap_hwmod_irq_info omap2_timer11_mpu_irqs[] = { |
235 | { .irq = 47, }, | 233 | { .irq = 47 + OMAP_INTC_START, }, |
236 | { .irq = -1 } | 234 | { .irq = -1 }, |
237 | }; | 235 | }; |
238 | 236 | ||
239 | struct omap_hwmod_irq_info omap2_uart1_mpu_irqs[] = { | 237 | struct omap_hwmod_irq_info omap2_uart1_mpu_irqs[] = { |
240 | { .irq = INT_24XX_UART1_IRQ, }, | 238 | { .irq = 72 + OMAP_INTC_START, }, |
241 | { .irq = -1 } | 239 | { .irq = -1 }, |
242 | }; | 240 | }; |
243 | 241 | ||
244 | struct omap_hwmod_irq_info omap2_uart2_mpu_irqs[] = { | 242 | struct omap_hwmod_irq_info omap2_uart2_mpu_irqs[] = { |
245 | { .irq = INT_24XX_UART2_IRQ, }, | 243 | { .irq = 73 + OMAP_INTC_START, }, |
246 | { .irq = -1 } | 244 | { .irq = -1 }, |
247 | }; | 245 | }; |
248 | 246 | ||
249 | struct omap_hwmod_irq_info omap2_uart3_mpu_irqs[] = { | 247 | struct omap_hwmod_irq_info omap2_uart3_mpu_irqs[] = { |
250 | { .irq = INT_24XX_UART3_IRQ, }, | 248 | { .irq = 74 + OMAP_INTC_START, }, |
251 | { .irq = -1 } | 249 | { .irq = -1 }, |
252 | }; | 250 | }; |
253 | 251 | ||
254 | struct omap_hwmod_irq_info omap2_dispc_irqs[] = { | 252 | struct omap_hwmod_irq_info omap2_dispc_irqs[] = { |
255 | { .irq = 25 }, | 253 | { .irq = 25 + OMAP_INTC_START, }, |
256 | { .irq = -1 } | 254 | { .irq = -1 }, |
257 | }; | 255 | }; |
258 | 256 | ||
259 | struct omap_hwmod_irq_info omap2_i2c1_mpu_irqs[] = { | 257 | struct omap_hwmod_irq_info omap2_i2c1_mpu_irqs[] = { |
260 | { .irq = INT_24XX_I2C1_IRQ, }, | 258 | { .irq = 56 + OMAP_INTC_START, }, |
261 | { .irq = -1 } | 259 | { .irq = -1 }, |
262 | }; | 260 | }; |
263 | 261 | ||
264 | struct omap_hwmod_irq_info omap2_i2c2_mpu_irqs[] = { | 262 | struct omap_hwmod_irq_info omap2_i2c2_mpu_irqs[] = { |
265 | { .irq = INT_24XX_I2C2_IRQ, }, | 263 | { .irq = 57 + OMAP_INTC_START, }, |
266 | { .irq = -1 } | 264 | { .irq = -1 }, |
267 | }; | 265 | }; |
268 | 266 | ||
269 | struct omap_hwmod_irq_info omap2_gpio1_irqs[] = { | 267 | struct omap_hwmod_irq_info omap2_gpio1_irqs[] = { |
270 | { .irq = 29 }, /* INT_24XX_GPIO_BANK1 */ | 268 | { .irq = 29 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK1 */ |
271 | { .irq = -1 } | 269 | { .irq = -1 }, |
272 | }; | 270 | }; |
273 | 271 | ||
274 | struct omap_hwmod_irq_info omap2_gpio2_irqs[] = { | 272 | struct omap_hwmod_irq_info omap2_gpio2_irqs[] = { |
275 | { .irq = 30 }, /* INT_24XX_GPIO_BANK2 */ | 273 | { .irq = 30 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK2 */ |
276 | { .irq = -1 } | 274 | { .irq = -1 }, |
277 | }; | 275 | }; |
278 | 276 | ||
279 | struct omap_hwmod_irq_info omap2_gpio3_irqs[] = { | 277 | struct omap_hwmod_irq_info omap2_gpio3_irqs[] = { |
280 | { .irq = 31 }, /* INT_24XX_GPIO_BANK3 */ | 278 | { .irq = 31 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK3 */ |
281 | { .irq = -1 } | 279 | { .irq = -1 }, |
282 | }; | 280 | }; |
283 | 281 | ||
284 | struct omap_hwmod_irq_info omap2_gpio4_irqs[] = { | 282 | struct omap_hwmod_irq_info omap2_gpio4_irqs[] = { |
285 | { .irq = 32 }, /* INT_24XX_GPIO_BANK4 */ | 283 | { .irq = 32 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK4 */ |
286 | { .irq = -1 } | 284 | { .irq = -1 }, |
287 | }; | 285 | }; |
288 | 286 | ||
289 | struct omap_hwmod_irq_info omap2_dma_system_irqs[] = { | 287 | struct omap_hwmod_irq_info omap2_dma_system_irqs[] = { |
290 | { .name = "0", .irq = 12 }, /* INT_24XX_SDMA_IRQ0 */ | 288 | { .name = "0", .irq = 12 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ0 */ |
291 | { .name = "1", .irq = 13 }, /* INT_24XX_SDMA_IRQ1 */ | 289 | { .name = "1", .irq = 13 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ1 */ |
292 | { .name = "2", .irq = 14 }, /* INT_24XX_SDMA_IRQ2 */ | 290 | { .name = "2", .irq = 14 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ2 */ |
293 | { .name = "3", .irq = 15 }, /* INT_24XX_SDMA_IRQ3 */ | 291 | { .name = "3", .irq = 15 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ3 */ |
294 | { .irq = -1 } | 292 | { .irq = -1 }, |
295 | }; | 293 | }; |
296 | 294 | ||
297 | struct omap_hwmod_irq_info omap2_mcspi1_mpu_irqs[] = { | 295 | struct omap_hwmod_irq_info omap2_mcspi1_mpu_irqs[] = { |
298 | { .irq = 65 }, | 296 | { .irq = 65 + OMAP_INTC_START, }, |
299 | { .irq = -1 } | 297 | { .irq = -1 }, |
300 | }; | 298 | }; |
301 | 299 | ||
302 | struct omap_hwmod_irq_info omap2_mcspi2_mpu_irqs[] = { | 300 | struct omap_hwmod_irq_info omap2_mcspi2_mpu_irqs[] = { |
303 | { .irq = 66 }, | 301 | { .irq = 66 + OMAP_INTC_START, }, |
304 | { .irq = -1 } | 302 | { .irq = -1 }, |
305 | }; | 303 | }; |
306 | 304 | ||
307 | struct omap_hwmod_class_sysconfig omap2_hdq1w_sysc = { | 305 | struct omap_hwmod_class_sysconfig omap2_hdq1w_sysc = { |
@@ -320,7 +318,7 @@ struct omap_hwmod_class omap2_hdq1w_class = { | |||
320 | }; | 318 | }; |
321 | 319 | ||
322 | struct omap_hwmod_irq_info omap2_hdq1w_mpu_irqs[] = { | 320 | struct omap_hwmod_irq_info omap2_hdq1w_mpu_irqs[] = { |
323 | { .irq = 58, }, | 321 | { .irq = 58 + OMAP_INTC_START, }, |
324 | { .irq = -1 } | 322 | { .irq = -1 }, |
325 | }; | 323 | }; |
326 | 324 | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c index c6416c930232..ceb305242340 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | |||
@@ -15,16 +15,14 @@ | |||
15 | #include <plat/dmtimer.h> | 15 | #include <plat/dmtimer.h> |
16 | #include <plat/mcspi.h> | 16 | #include <plat/mcspi.h> |
17 | 17 | ||
18 | #include <mach/irqs.h> | ||
19 | |||
20 | #include "omap_hwmod_common_data.h" | 18 | #include "omap_hwmod_common_data.h" |
21 | #include "cm-regbits-24xx.h" | 19 | #include "cm-regbits-24xx.h" |
22 | #include "prm-regbits-24xx.h" | 20 | #include "prm-regbits-24xx.h" |
23 | #include "wd_timer.h" | 21 | #include "wd_timer.h" |
24 | 22 | ||
25 | struct omap_hwmod_irq_info omap2xxx_timer12_mpu_irqs[] = { | 23 | struct omap_hwmod_irq_info omap2xxx_timer12_mpu_irqs[] = { |
26 | { .irq = 48, }, | 24 | { .irq = 48 + OMAP_INTC_START, }, |
27 | { .irq = -1 } | 25 | { .irq = -1 }, |
28 | }; | 26 | }; |
29 | 27 | ||
30 | struct omap_hwmod_dma_info omap2xxx_dss_sdma_chs[] = { | 28 | struct omap_hwmod_dma_info omap2xxx_dss_sdma_chs[] = { |
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index 5820c737389b..9605e5fd6c9c 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/platform_data/gpio-omap.h> | 18 | #include <linux/platform_data/gpio-omap.h> |
19 | 19 | ||
20 | #include <plat/omap_hwmod.h> | 20 | #include <plat/omap_hwmod.h> |
21 | #include <mach/irqs.h> | ||
22 | #include <plat/cpu.h> | 21 | #include <plat/cpu.h> |
23 | #include <plat/dma.h> | 22 | #include <plat/dma.h> |
24 | #include <plat/serial.h> | 23 | #include <plat/serial.h> |
@@ -30,11 +29,13 @@ | |||
30 | #include <plat/mcspi.h> | 29 | #include <plat/mcspi.h> |
31 | #include <plat/dmtimer.h> | 30 | #include <plat/dmtimer.h> |
32 | 31 | ||
32 | #include <mach/hardware.h> | ||
33 | #include <mach/am35xx.h> | ||
34 | |||
33 | #include "omap_hwmod_common_data.h" | 35 | #include "omap_hwmod_common_data.h" |
34 | #include "prm-regbits-34xx.h" | 36 | #include "prm-regbits-34xx.h" |
35 | #include "cm-regbits-34xx.h" | 37 | #include "cm-regbits-34xx.h" |
36 | #include "wd_timer.h" | 38 | #include "wd_timer.h" |
37 | #include <mach/am35xx.h> | ||
38 | 39 | ||
39 | /* | 40 | /* |
40 | * OMAP3xxx hardware module integration data | 41 | * OMAP3xxx hardware module integration data |
@@ -51,9 +52,9 @@ | |||
51 | 52 | ||
52 | /* L3 */ | 53 | /* L3 */ |
53 | static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs[] = { | 54 | static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs[] = { |
54 | { .irq = INT_34XX_L3_DBG_IRQ }, | 55 | { .irq = 9 + OMAP_INTC_START, }, |
55 | { .irq = INT_34XX_L3_APP_IRQ }, | 56 | { .irq = 10 + OMAP_INTC_START, }, |
56 | { .irq = -1 } | 57 | { .irq = -1 }, |
57 | }; | 58 | }; |
58 | 59 | ||
59 | static struct omap_hwmod omap3xxx_l3_main_hwmod = { | 60 | static struct omap_hwmod omap3xxx_l3_main_hwmod = { |
@@ -355,8 +356,8 @@ static struct omap_hwmod omap3xxx_timer11_hwmod = { | |||
355 | 356 | ||
356 | /* timer12 */ | 357 | /* timer12 */ |
357 | static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs[] = { | 358 | static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs[] = { |
358 | { .irq = 95, }, | 359 | { .irq = 95 + OMAP_INTC_START, }, |
359 | { .irq = -1 } | 360 | { .irq = -1 }, |
360 | }; | 361 | }; |
361 | 362 | ||
362 | static struct omap_hwmod omap3xxx_timer12_hwmod = { | 363 | static struct omap_hwmod omap3xxx_timer12_hwmod = { |
@@ -490,8 +491,8 @@ static struct omap_hwmod omap3xxx_uart3_hwmod = { | |||
490 | 491 | ||
491 | /* UART4 */ | 492 | /* UART4 */ |
492 | static struct omap_hwmod_irq_info uart4_mpu_irqs[] = { | 493 | static struct omap_hwmod_irq_info uart4_mpu_irqs[] = { |
493 | { .irq = INT_36XX_UART4_IRQ, }, | 494 | { .irq = 80 + OMAP_INTC_START, }, |
494 | { .irq = -1 } | 495 | { .irq = -1 }, |
495 | }; | 496 | }; |
496 | 497 | ||
497 | static struct omap_hwmod_dma_info uart4_sdma_reqs[] = { | 498 | static struct omap_hwmod_dma_info uart4_sdma_reqs[] = { |
@@ -518,8 +519,8 @@ static struct omap_hwmod omap36xx_uart4_hwmod = { | |||
518 | }; | 519 | }; |
519 | 520 | ||
520 | static struct omap_hwmod_irq_info am35xx_uart4_mpu_irqs[] = { | 521 | static struct omap_hwmod_irq_info am35xx_uart4_mpu_irqs[] = { |
521 | { .irq = INT_35XX_UART4_IRQ, }, | 522 | { .irq = 84 + OMAP_INTC_START, }, |
522 | { .irq = -1 } | 523 | { .irq = -1 }, |
523 | }; | 524 | }; |
524 | 525 | ||
525 | static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs[] = { | 526 | static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs[] = { |
@@ -674,8 +675,8 @@ static struct omap_hwmod_class omap3xxx_dsi_hwmod_class = { | |||
674 | }; | 675 | }; |
675 | 676 | ||
676 | static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs[] = { | 677 | static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs[] = { |
677 | { .irq = 25 }, | 678 | { .irq = 25 + OMAP_INTC_START, }, |
678 | { .irq = -1 } | 679 | { .irq = -1 }, |
679 | }; | 680 | }; |
680 | 681 | ||
681 | /* dss_dsi1 */ | 682 | /* dss_dsi1 */ |
@@ -804,8 +805,8 @@ static struct omap_i2c_dev_attr i2c3_dev_attr = { | |||
804 | }; | 805 | }; |
805 | 806 | ||
806 | static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = { | 807 | static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = { |
807 | { .irq = INT_34XX_I2C3_IRQ, }, | 808 | { .irq = 61 + OMAP_INTC_START, }, |
808 | { .irq = -1 } | 809 | { .irq = -1 }, |
809 | }; | 810 | }; |
810 | 811 | ||
811 | static struct omap_hwmod_dma_info i2c3_sdma_reqs[] = { | 812 | static struct omap_hwmod_dma_info i2c3_sdma_reqs[] = { |
@@ -963,8 +964,8 @@ static struct omap_hwmod omap3xxx_gpio4_hwmod = { | |||
963 | 964 | ||
964 | /* gpio5 */ | 965 | /* gpio5 */ |
965 | static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs[] = { | 966 | static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs[] = { |
966 | { .irq = 33 }, /* INT_34XX_GPIO_BANK5 */ | 967 | { .irq = 33 + OMAP_INTC_START, }, /* INT_34XX_GPIO_BANK5 */ |
967 | { .irq = -1 } | 968 | { .irq = -1 }, |
968 | }; | 969 | }; |
969 | 970 | ||
970 | static struct omap_hwmod_opt_clk gpio5_opt_clks[] = { | 971 | static struct omap_hwmod_opt_clk gpio5_opt_clks[] = { |
@@ -993,8 +994,8 @@ static struct omap_hwmod omap3xxx_gpio5_hwmod = { | |||
993 | 994 | ||
994 | /* gpio6 */ | 995 | /* gpio6 */ |
995 | static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs[] = { | 996 | static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs[] = { |
996 | { .irq = 34 }, /* INT_34XX_GPIO_BANK6 */ | 997 | { .irq = 34 + OMAP_INTC_START, }, /* INT_34XX_GPIO_BANK6 */ |
997 | { .irq = -1 } | 998 | { .irq = -1 }, |
998 | }; | 999 | }; |
999 | 1000 | ||
1000 | static struct omap_hwmod_opt_clk gpio6_opt_clks[] = { | 1001 | static struct omap_hwmod_opt_clk gpio6_opt_clks[] = { |
@@ -1098,10 +1099,10 @@ static struct omap_hwmod_opt_clk mcbsp234_opt_clks[] = { | |||
1098 | 1099 | ||
1099 | /* mcbsp1 */ | 1100 | /* mcbsp1 */ |
1100 | static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs[] = { | 1101 | static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs[] = { |
1101 | { .name = "common", .irq = 16 }, | 1102 | { .name = "common", .irq = 16 + OMAP_INTC_START, }, |
1102 | { .name = "tx", .irq = 59 }, | 1103 | { .name = "tx", .irq = 59 + OMAP_INTC_START, }, |
1103 | { .name = "rx", .irq = 60 }, | 1104 | { .name = "rx", .irq = 60 + OMAP_INTC_START, }, |
1104 | { .irq = -1 } | 1105 | { .irq = -1 }, |
1105 | }; | 1106 | }; |
1106 | 1107 | ||
1107 | static struct omap_hwmod omap3xxx_mcbsp1_hwmod = { | 1108 | static struct omap_hwmod omap3xxx_mcbsp1_hwmod = { |
@@ -1125,10 +1126,10 @@ static struct omap_hwmod omap3xxx_mcbsp1_hwmod = { | |||
1125 | 1126 | ||
1126 | /* mcbsp2 */ | 1127 | /* mcbsp2 */ |
1127 | static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs[] = { | 1128 | static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs[] = { |
1128 | { .name = "common", .irq = 17 }, | 1129 | { .name = "common", .irq = 17 + OMAP_INTC_START, }, |
1129 | { .name = "tx", .irq = 62 }, | 1130 | { .name = "tx", .irq = 62 + OMAP_INTC_START, }, |
1130 | { .name = "rx", .irq = 63 }, | 1131 | { .name = "rx", .irq = 63 + OMAP_INTC_START, }, |
1131 | { .irq = -1 } | 1132 | { .irq = -1 }, |
1132 | }; | 1133 | }; |
1133 | 1134 | ||
1134 | static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr = { | 1135 | static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr = { |
@@ -1157,10 +1158,10 @@ static struct omap_hwmod omap3xxx_mcbsp2_hwmod = { | |||
1157 | 1158 | ||
1158 | /* mcbsp3 */ | 1159 | /* mcbsp3 */ |
1159 | static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs[] = { | 1160 | static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs[] = { |
1160 | { .name = "common", .irq = 22 }, | 1161 | { .name = "common", .irq = 22 + OMAP_INTC_START, }, |
1161 | { .name = "tx", .irq = 89 }, | 1162 | { .name = "tx", .irq = 89 + OMAP_INTC_START, }, |
1162 | { .name = "rx", .irq = 90 }, | 1163 | { .name = "rx", .irq = 90 + OMAP_INTC_START, }, |
1163 | { .irq = -1 } | 1164 | { .irq = -1 }, |
1164 | }; | 1165 | }; |
1165 | 1166 | ||
1166 | static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr = { | 1167 | static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr = { |
@@ -1189,10 +1190,10 @@ static struct omap_hwmod omap3xxx_mcbsp3_hwmod = { | |||
1189 | 1190 | ||
1190 | /* mcbsp4 */ | 1191 | /* mcbsp4 */ |
1191 | static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs[] = { | 1192 | static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs[] = { |
1192 | { .name = "common", .irq = 23 }, | 1193 | { .name = "common", .irq = 23 + OMAP_INTC_START, }, |
1193 | { .name = "tx", .irq = 54 }, | 1194 | { .name = "tx", .irq = 54 + OMAP_INTC_START, }, |
1194 | { .name = "rx", .irq = 55 }, | 1195 | { .name = "rx", .irq = 55 + OMAP_INTC_START, }, |
1195 | { .irq = -1 } | 1196 | { .irq = -1 }, |
1196 | }; | 1197 | }; |
1197 | 1198 | ||
1198 | static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs[] = { | 1199 | static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs[] = { |
@@ -1222,10 +1223,10 @@ static struct omap_hwmod omap3xxx_mcbsp4_hwmod = { | |||
1222 | 1223 | ||
1223 | /* mcbsp5 */ | 1224 | /* mcbsp5 */ |
1224 | static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs[] = { | 1225 | static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs[] = { |
1225 | { .name = "common", .irq = 27 }, | 1226 | { .name = "common", .irq = 27 + OMAP_INTC_START, }, |
1226 | { .name = "tx", .irq = 81 }, | 1227 | { .name = "tx", .irq = 81 + OMAP_INTC_START, }, |
1227 | { .name = "rx", .irq = 82 }, | 1228 | { .name = "rx", .irq = 82 + OMAP_INTC_START, }, |
1228 | { .irq = -1 } | 1229 | { .irq = -1 }, |
1229 | }; | 1230 | }; |
1230 | 1231 | ||
1231 | static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs[] = { | 1232 | static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs[] = { |
@@ -1267,8 +1268,8 @@ static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class = { | |||
1267 | 1268 | ||
1268 | /* mcbsp2_sidetone */ | 1269 | /* mcbsp2_sidetone */ |
1269 | static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs[] = { | 1270 | static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs[] = { |
1270 | { .name = "irq", .irq = 4 }, | 1271 | { .name = "irq", .irq = 4 + OMAP_INTC_START, }, |
1271 | { .irq = -1 } | 1272 | { .irq = -1 }, |
1272 | }; | 1273 | }; |
1273 | 1274 | ||
1274 | static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod = { | 1275 | static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod = { |
@@ -1289,8 +1290,8 @@ static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod = { | |||
1289 | 1290 | ||
1290 | /* mcbsp3_sidetone */ | 1291 | /* mcbsp3_sidetone */ |
1291 | static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs[] = { | 1292 | static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs[] = { |
1292 | { .name = "irq", .irq = 5 }, | 1293 | { .name = "irq", .irq = 5 + OMAP_INTC_START, }, |
1293 | { .irq = -1 } | 1294 | { .irq = -1 }, |
1294 | }; | 1295 | }; |
1295 | 1296 | ||
1296 | static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod = { | 1297 | static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod = { |
@@ -1352,8 +1353,8 @@ static struct omap_smartreflex_dev_attr sr1_dev_attr = { | |||
1352 | }; | 1353 | }; |
1353 | 1354 | ||
1354 | static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs[] = { | 1355 | static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs[] = { |
1355 | { .irq = 18 }, | 1356 | { .irq = 18 + OMAP_INTC_START, }, |
1356 | { .irq = -1 } | 1357 | { .irq = -1 }, |
1357 | }; | 1358 | }; |
1358 | 1359 | ||
1359 | static struct omap_hwmod omap34xx_sr1_hwmod = { | 1360 | static struct omap_hwmod omap34xx_sr1_hwmod = { |
@@ -1397,8 +1398,8 @@ static struct omap_smartreflex_dev_attr sr2_dev_attr = { | |||
1397 | }; | 1398 | }; |
1398 | 1399 | ||
1399 | static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs[] = { | 1400 | static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs[] = { |
1400 | { .irq = 19 }, | 1401 | { .irq = 19 + OMAP_INTC_START, }, |
1401 | { .irq = -1 } | 1402 | { .irq = -1 }, |
1402 | }; | 1403 | }; |
1403 | 1404 | ||
1404 | static struct omap_hwmod omap34xx_sr2_hwmod = { | 1405 | static struct omap_hwmod omap34xx_sr2_hwmod = { |
@@ -1458,8 +1459,8 @@ static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class = { | |||
1458 | }; | 1459 | }; |
1459 | 1460 | ||
1460 | static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs[] = { | 1461 | static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs[] = { |
1461 | { .irq = 26 }, | 1462 | { .irq = 26 + OMAP_INTC_START, }, |
1462 | { .irq = -1 } | 1463 | { .irq = -1 }, |
1463 | }; | 1464 | }; |
1464 | 1465 | ||
1465 | static struct omap_hwmod omap3xxx_mailbox_hwmod = { | 1466 | static struct omap_hwmod omap3xxx_mailbox_hwmod = { |
@@ -1549,8 +1550,8 @@ static struct omap_hwmod omap34xx_mcspi2 = { | |||
1549 | 1550 | ||
1550 | /* mcspi3 */ | 1551 | /* mcspi3 */ |
1551 | static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs[] = { | 1552 | static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs[] = { |
1552 | { .name = "irq", .irq = 91 }, /* 91 */ | 1553 | { .name = "irq", .irq = 91 + OMAP_INTC_START, }, /* 91 */ |
1553 | { .irq = -1 } | 1554 | { .irq = -1 }, |
1554 | }; | 1555 | }; |
1555 | 1556 | ||
1556 | static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs[] = { | 1557 | static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs[] = { |
@@ -1585,8 +1586,8 @@ static struct omap_hwmod omap34xx_mcspi3 = { | |||
1585 | 1586 | ||
1586 | /* mcspi4 */ | 1587 | /* mcspi4 */ |
1587 | static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs[] = { | 1588 | static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs[] = { |
1588 | { .name = "irq", .irq = INT_34XX_SPI4_IRQ }, /* 48 */ | 1589 | { .name = "irq", .irq = 48 + OMAP_INTC_START, }, |
1589 | { .irq = -1 } | 1590 | { .irq = -1 }, |
1590 | }; | 1591 | }; |
1591 | 1592 | ||
1592 | static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs[] = { | 1593 | static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs[] = { |
@@ -1638,9 +1639,9 @@ static struct omap_hwmod_class usbotg_class = { | |||
1638 | /* usb_otg_hs */ | 1639 | /* usb_otg_hs */ |
1639 | static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs[] = { | 1640 | static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs[] = { |
1640 | 1641 | ||
1641 | { .name = "mc", .irq = 92 }, | 1642 | { .name = "mc", .irq = 92 + OMAP_INTC_START, }, |
1642 | { .name = "dma", .irq = 93 }, | 1643 | { .name = "dma", .irq = 93 + OMAP_INTC_START, }, |
1643 | { .irq = -1 } | 1644 | { .irq = -1 }, |
1644 | }; | 1645 | }; |
1645 | 1646 | ||
1646 | static struct omap_hwmod omap3xxx_usbhsotg_hwmod = { | 1647 | static struct omap_hwmod omap3xxx_usbhsotg_hwmod = { |
@@ -1670,8 +1671,8 @@ static struct omap_hwmod omap3xxx_usbhsotg_hwmod = { | |||
1670 | 1671 | ||
1671 | /* usb_otg_hs */ | 1672 | /* usb_otg_hs */ |
1672 | static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs[] = { | 1673 | static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs[] = { |
1673 | { .name = "mc", .irq = 71 }, | 1674 | { .name = "mc", .irq = 71 + OMAP_INTC_START, }, |
1674 | { .irq = -1 } | 1675 | { .irq = -1 }, |
1675 | }; | 1676 | }; |
1676 | 1677 | ||
1677 | static struct omap_hwmod_class am35xx_usbotg_class = { | 1678 | static struct omap_hwmod_class am35xx_usbotg_class = { |
@@ -1706,8 +1707,8 @@ static struct omap_hwmod_class omap34xx_mmc_class = { | |||
1706 | /* MMC/SD/SDIO1 */ | 1707 | /* MMC/SD/SDIO1 */ |
1707 | 1708 | ||
1708 | static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs[] = { | 1709 | static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs[] = { |
1709 | { .irq = 83, }, | 1710 | { .irq = 83 + OMAP_INTC_START, }, |
1710 | { .irq = -1 } | 1711 | { .irq = -1 }, |
1711 | }; | 1712 | }; |
1712 | 1713 | ||
1713 | static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs[] = { | 1714 | static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs[] = { |
@@ -1773,8 +1774,8 @@ static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod = { | |||
1773 | /* MMC/SD/SDIO2 */ | 1774 | /* MMC/SD/SDIO2 */ |
1774 | 1775 | ||
1775 | static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs[] = { | 1776 | static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs[] = { |
1776 | { .irq = INT_24XX_MMC2_IRQ, }, | 1777 | { .irq = 86 + OMAP_INTC_START, }, |
1777 | { .irq = -1 } | 1778 | { .irq = -1 }, |
1778 | }; | 1779 | }; |
1779 | 1780 | ||
1780 | static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs[] = { | 1781 | static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs[] = { |
@@ -1834,8 +1835,8 @@ static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod = { | |||
1834 | /* MMC/SD/SDIO3 */ | 1835 | /* MMC/SD/SDIO3 */ |
1835 | 1836 | ||
1836 | static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs[] = { | 1837 | static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs[] = { |
1837 | { .irq = 94, }, | 1838 | { .irq = 94 + OMAP_INTC_START, }, |
1838 | { .irq = -1 } | 1839 | { .irq = -1 }, |
1839 | }; | 1840 | }; |
1840 | 1841 | ||
1841 | static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs[] = { | 1842 | static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs[] = { |
@@ -1893,9 +1894,9 @@ static struct omap_hwmod_opt_clk omap3xxx_usb_host_hs_opt_clks[] = { | |||
1893 | }; | 1894 | }; |
1894 | 1895 | ||
1895 | static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs[] = { | 1896 | static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs[] = { |
1896 | { .name = "ohci-irq", .irq = 76 }, | 1897 | { .name = "ohci-irq", .irq = 76 + OMAP_INTC_START, }, |
1897 | { .name = "ehci-irq", .irq = 77 }, | 1898 | { .name = "ehci-irq", .irq = 77 + OMAP_INTC_START, }, |
1898 | { .irq = -1 } | 1899 | { .irq = -1 }, |
1899 | }; | 1900 | }; |
1900 | 1901 | ||
1901 | static struct omap_hwmod omap3xxx_usb_host_hs_hwmod = { | 1902 | static struct omap_hwmod omap3xxx_usb_host_hs_hwmod = { |
@@ -1987,8 +1988,8 @@ static struct omap_hwmod_class omap3xxx_usb_tll_hs_hwmod_class = { | |||
1987 | }; | 1988 | }; |
1988 | 1989 | ||
1989 | static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs[] = { | 1990 | static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs[] = { |
1990 | { .name = "tll-irq", .irq = 78 }, | 1991 | { .name = "tll-irq", .irq = 78 + OMAP_INTC_START, }, |
1991 | { .irq = -1 } | 1992 | { .irq = -1 }, |
1992 | }; | 1993 | }; |
1993 | 1994 | ||
1994 | static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod = { | 1995 | static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod = { |
@@ -3214,11 +3215,11 @@ static struct omap_hwmod_ocp_if am35xx_l4_core__mdio = { | |||
3214 | }; | 3215 | }; |
3215 | 3216 | ||
3216 | static struct omap_hwmod_irq_info am35xx_emac_mpu_irqs[] = { | 3217 | static struct omap_hwmod_irq_info am35xx_emac_mpu_irqs[] = { |
3217 | { .name = "rxthresh", .irq = INT_35XX_EMAC_C0_RXTHRESH_IRQ }, | 3218 | { .name = "rxthresh", .irq = 67 + OMAP_INTC_START, }, |
3218 | { .name = "rx_pulse", .irq = INT_35XX_EMAC_C0_RX_PULSE_IRQ }, | 3219 | { .name = "rx_pulse", .irq = 68 + OMAP_INTC_START, }, |
3219 | { .name = "tx_pulse", .irq = INT_35XX_EMAC_C0_TX_PULSE_IRQ }, | 3220 | { .name = "tx_pulse", .irq = 69 + OMAP_INTC_START }, |
3220 | { .name = "misc_pulse", .irq = INT_35XX_EMAC_C0_MISC_PULSE_IRQ }, | 3221 | { .name = "misc_pulse", .irq = 70 + OMAP_INTC_START }, |
3221 | { .irq = -1 } | 3222 | { .irq = -1 }, |
3222 | }; | 3223 | }; |
3223 | 3224 | ||
3224 | static struct omap_hwmod_class am35xx_emac_class = { | 3225 | static struct omap_hwmod_class am35xx_emac_class = { |
diff --git a/arch/arm/mach-omap2/omap_hwmod_common_data.h b/arch/arm/mach-omap2/omap_hwmod_common_data.h index e7e8eeae95e5..dddb677fed68 100644 --- a/arch/arm/mach-omap2/omap_hwmod_common_data.h +++ b/arch/arm/mach-omap2/omap_hwmod_common_data.h | |||
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | #include <plat/omap_hwmod.h> | 17 | #include <plat/omap_hwmod.h> |
18 | 18 | ||
19 | #include "common.h" | ||
19 | #include "display.h" | 20 | #include "display.h" |
20 | 21 | ||
21 | /* Common address space across OMAP2xxx */ | 22 | /* Common address space across OMAP2xxx */ |
diff --git a/arch/arm/mach-omap2/omap_l3_noc.c b/arch/arm/mach-omap2/omap_l3_noc.c index d15225ff5c49..f0992fdefe3f 100644 --- a/arch/arm/mach-omap2/omap_l3_noc.c +++ b/arch/arm/mach-omap2/omap_l3_noc.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <linux/kernel.h> | 28 | #include <linux/kernel.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | 30 | ||
31 | #include <plat/hardware.h> | ||
32 | |||
31 | #include "omap_l3_noc.h" | 33 | #include "omap_l3_noc.h" |
32 | 34 | ||
33 | /* | 35 | /* |
@@ -190,7 +192,7 @@ static int __devinit omap4_l3_probe(struct platform_device *pdev) | |||
190 | IRQF_DISABLED, "l3-dbg-irq", l3); | 192 | IRQF_DISABLED, "l3-dbg-irq", l3); |
191 | if (ret) { | 193 | if (ret) { |
192 | pr_crit("L3: request_irq failed to register for 0x%x\n", | 194 | pr_crit("L3: request_irq failed to register for 0x%x\n", |
193 | OMAP44XX_IRQ_L3_DBG); | 195 | 9 + OMAP44XX_IRQ_GIC_START); |
194 | goto err3; | 196 | goto err3; |
195 | } | 197 | } |
196 | 198 | ||
@@ -200,7 +202,7 @@ static int __devinit omap4_l3_probe(struct platform_device *pdev) | |||
200 | IRQF_DISABLED, "l3-app-irq", l3); | 202 | IRQF_DISABLED, "l3-app-irq", l3); |
201 | if (ret) { | 203 | if (ret) { |
202 | pr_crit("L3: request_irq failed to register for 0x%x\n", | 204 | pr_crit("L3: request_irq failed to register for 0x%x\n", |
203 | OMAP44XX_IRQ_L3_APP); | 205 | 10 + OMAP44XX_IRQ_GIC_START); |
204 | goto err4; | 206 | goto err4; |
205 | } | 207 | } |
206 | 208 | ||
diff --git a/arch/arm/mach-omap2/omap_phy_internal.c b/arch/arm/mach-omap2/omap_phy_internal.c index d52651a05daa..d0b4dc759fc8 100644 --- a/arch/arm/mach-omap2/omap_phy_internal.c +++ b/arch/arm/mach-omap2/omap_phy_internal.c | |||
@@ -28,7 +28,9 @@ | |||
28 | #include <linux/err.h> | 28 | #include <linux/err.h> |
29 | #include <linux/usb.h> | 29 | #include <linux/usb.h> |
30 | 30 | ||
31 | #include <plat/hardware.h> | ||
31 | #include <plat/usb.h> | 32 | #include <plat/usb.h> |
33 | |||
32 | #include "control.h" | 34 | #include "control.h" |
33 | 35 | ||
34 | /* OMAP control module register for UTMI PHY */ | 36 | /* OMAP control module register for UTMI PHY */ |
diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c index 2708a8b7a39b..8af6cd6ac331 100644 --- a/arch/arm/mach-omap2/pm24xx.c +++ b/arch/arm/mach-omap2/pm24xx.c | |||
@@ -40,8 +40,6 @@ | |||
40 | #include <plat/sram.h> | 40 | #include <plat/sram.h> |
41 | #include <plat/dma.h> | 41 | #include <plat/dma.h> |
42 | 42 | ||
43 | #include <mach/irqs.h> | ||
44 | |||
45 | #include "common.h" | 43 | #include "common.h" |
46 | #include "prm2xxx_3xxx.h" | 44 | #include "prm2xxx_3xxx.h" |
47 | #include "prm-regbits-24xx.h" | 45 | #include "prm-regbits-24xx.h" |
diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c index 053e24ed3c48..9c9d23c10205 100644 --- a/arch/arm/mach-omap2/prcm.c +++ b/arch/arm/mach-omap2/prcm.c | |||
@@ -27,7 +27,6 @@ | |||
27 | 27 | ||
28 | #include "common.h" | 28 | #include "common.h" |
29 | #include <plat/prcm.h> | 29 | #include <plat/prcm.h> |
30 | #include <plat/irqs.h> | ||
31 | 30 | ||
32 | #include "clock.h" | 31 | #include "clock.h" |
33 | #include "clock2xxx.h" | 32 | #include "clock2xxx.h" |
diff --git a/arch/arm/mach-omap2/prm2xxx_3xxx.c b/arch/arm/mach-omap2/prm2xxx_3xxx.c index a0309dea6794..3601763ee566 100644 --- a/arch/arm/mach-omap2/prm2xxx_3xxx.c +++ b/arch/arm/mach-omap2/prm2xxx_3xxx.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include "common.h" | 20 | #include "common.h" |
21 | #include <plat/cpu.h> | 21 | #include <plat/cpu.h> |
22 | #include <plat/prcm.h> | 22 | #include <plat/prcm.h> |
23 | #include <plat/irqs.h> | ||
24 | 23 | ||
25 | #include "vp.h" | 24 | #include "vp.h" |
26 | 25 | ||
@@ -40,7 +39,7 @@ static struct omap_prcm_irq_setup omap3_prcm_irq_setup = { | |||
40 | .nr_regs = 1, | 39 | .nr_regs = 1, |
41 | .irqs = omap3_prcm_irqs, | 40 | .irqs = omap3_prcm_irqs, |
42 | .nr_irqs = ARRAY_SIZE(omap3_prcm_irqs), | 41 | .nr_irqs = ARRAY_SIZE(omap3_prcm_irqs), |
43 | .irq = INT_34XX_PRCM_MPU_IRQ, | 42 | .irq = 11 + OMAP_INTC_START, |
44 | .read_pending_irqs = &omap3xxx_prm_read_pending_irqs, | 43 | .read_pending_irqs = &omap3xxx_prm_read_pending_irqs, |
45 | .ocp_barrier = &omap3xxx_prm_ocp_barrier, | 44 | .ocp_barrier = &omap3xxx_prm_ocp_barrier, |
46 | .save_and_clear_irqen = &omap3xxx_prm_save_and_clear_irqen, | 45 | .save_and_clear_irqen = &omap3xxx_prm_save_and_clear_irqen, |
diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c index bb727c2d9337..df2cfe165a23 100644 --- a/arch/arm/mach-omap2/prm44xx.c +++ b/arch/arm/mach-omap2/prm44xx.c | |||
@@ -18,8 +18,8 @@ | |||
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | 19 | ||
20 | #include <plat/cpu.h> | 20 | #include <plat/cpu.h> |
21 | #include <plat/irqs.h> | ||
22 | #include <plat/prcm.h> | 21 | #include <plat/prcm.h> |
22 | #include <plat/hardware.h> | ||
23 | 23 | ||
24 | #include "iomap.h" | 24 | #include "iomap.h" |
25 | #include "common.h" | 25 | #include "common.h" |
@@ -40,7 +40,7 @@ static struct omap_prcm_irq_setup omap4_prcm_irq_setup = { | |||
40 | .nr_regs = 2, | 40 | .nr_regs = 2, |
41 | .irqs = omap4_prcm_irqs, | 41 | .irqs = omap4_prcm_irqs, |
42 | .nr_irqs = ARRAY_SIZE(omap4_prcm_irqs), | 42 | .nr_irqs = ARRAY_SIZE(omap4_prcm_irqs), |
43 | .irq = OMAP44XX_IRQ_PRCM, | 43 | .irq = 11 + OMAP44XX_IRQ_GIC_START, |
44 | .read_pending_irqs = &omap44xx_prm_read_pending_irqs, | 44 | .read_pending_irqs = &omap44xx_prm_read_pending_irqs, |
45 | .ocp_barrier = &omap44xx_prm_ocp_barrier, | 45 | .ocp_barrier = &omap44xx_prm_ocp_barrier, |
46 | .save_and_clear_irqen = &omap44xx_prm_save_and_clear_irqen, | 46 | .save_and_clear_irqen = &omap44xx_prm_save_and_clear_irqen, |
diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c index 03b126d9ad94..6b4d332be2f6 100644 --- a/arch/arm/mach-omap2/prm_common.c +++ b/arch/arm/mach-omap2/prm_common.c | |||
@@ -26,7 +26,6 @@ | |||
26 | 26 | ||
27 | #include <plat/common.h> | 27 | #include <plat/common.h> |
28 | #include <plat/prcm.h> | 28 | #include <plat/prcm.h> |
29 | #include <plat/irqs.h> | ||
30 | 29 | ||
31 | #include "prm2xxx_3xxx.h" | 30 | #include "prm2xxx_3xxx.h" |
32 | #include "prm44xx.h" | 31 | #include "prm44xx.h" |
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index d77f018550b8..7ca266e987f6 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <plat/omap_hwmod.h> | 33 | #include <plat/omap_hwmod.h> |
34 | #include <plat/omap_device.h> | 34 | #include <plat/omap_device.h> |
35 | #include <plat/omap-pm.h> | 35 | #include <plat/omap-pm.h> |
36 | #include <plat/serial.h> | ||
36 | 37 | ||
37 | #include "prm2xxx_3xxx.h" | 38 | #include "prm2xxx_3xxx.h" |
38 | #include "pm.h" | 39 | #include "pm.h" |
diff --git a/arch/arm/mach-omap2/soc.h b/arch/arm/mach-omap2/soc.h new file mode 100644 index 000000000000..40195f1ccdc9 --- /dev/null +++ b/arch/arm/mach-omap2/soc.h | |||
@@ -0,0 +1 @@ | |||
#include <plat/cpu.h> | |||
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 2ff6d41ec6c6..3bdaf9877e0b 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -38,14 +38,17 @@ | |||
38 | #include <linux/slab.h> | 38 | #include <linux/slab.h> |
39 | 39 | ||
40 | #include <asm/mach/time.h> | 40 | #include <asm/mach/time.h> |
41 | #include <plat/dmtimer.h> | ||
42 | #include <asm/smp_twd.h> | 41 | #include <asm/smp_twd.h> |
43 | #include <asm/sched_clock.h> | 42 | #include <asm/sched_clock.h> |
44 | #include "common.h" | 43 | |
45 | #include <plat/omap_hwmod.h> | 44 | #include <plat/omap_hwmod.h> |
46 | #include <plat/omap_device.h> | 45 | #include <plat/omap_device.h> |
46 | #include <plat/dmtimer.h> | ||
47 | #include <plat/omap-pm.h> | 47 | #include <plat/omap-pm.h> |
48 | 48 | ||
49 | #include <mach/hardware.h> | ||
50 | |||
51 | #include "common.h" | ||
49 | #include "powerdomain.h" | 52 | #include "powerdomain.h" |
50 | 53 | ||
51 | /* Parent clocks, eventually these will come from the clock framework */ | 54 | /* Parent clocks, eventually these will come from the clock framework */ |
@@ -373,8 +376,7 @@ OMAP_SYS_TIMER(3_am33xx) | |||
373 | #ifdef CONFIG_ARCH_OMAP4 | 376 | #ifdef CONFIG_ARCH_OMAP4 |
374 | #ifdef CONFIG_LOCAL_TIMERS | 377 | #ifdef CONFIG_LOCAL_TIMERS |
375 | static DEFINE_TWD_LOCAL_TIMER(twd_local_timer, | 378 | static DEFINE_TWD_LOCAL_TIMER(twd_local_timer, |
376 | OMAP44XX_LOCAL_TWD_BASE, | 379 | OMAP44XX_LOCAL_TWD_BASE, 29 + OMAP_INTC_START); |
377 | OMAP44XX_IRQ_LOCALTIMER); | ||
378 | #endif | 380 | #endif |
379 | 381 | ||
380 | static void __init omap4_timer_init(void) | 382 | static void __init omap4_timer_init(void) |
diff --git a/arch/arm/mach-omap2/twl-common.c b/arch/arm/mach-omap2/twl-common.c index db5ff6642375..b0384ce81789 100644 --- a/arch/arm/mach-omap2/twl-common.c +++ b/arch/arm/mach-omap2/twl-common.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/regulator/machine.h> | 26 | #include <linux/regulator/machine.h> |
27 | #include <linux/regulator/fixed.h> | 27 | #include <linux/regulator/fixed.h> |
28 | 28 | ||
29 | #include <plat/hardware.h> | ||
29 | #include <plat/i2c.h> | 30 | #include <plat/i2c.h> |
30 | #include <plat/usb.h> | 31 | #include <plat/usb.h> |
31 | 32 | ||
@@ -84,7 +85,7 @@ void __init omap4_pmic_init(const char *pmic_type, | |||
84 | omap_mux_init_signal("sys_nirq1", OMAP_PIN_INPUT_PULLUP | OMAP_PIN_OFF_WAKEUPENABLE); | 85 | omap_mux_init_signal("sys_nirq1", OMAP_PIN_INPUT_PULLUP | OMAP_PIN_OFF_WAKEUPENABLE); |
85 | strncpy(omap4_i2c1_board_info[0].type, pmic_type, | 86 | strncpy(omap4_i2c1_board_info[0].type, pmic_type, |
86 | sizeof(omap4_i2c1_board_info[0].type)); | 87 | sizeof(omap4_i2c1_board_info[0].type)); |
87 | omap4_i2c1_board_info[0].irq = OMAP44XX_IRQ_SYS_1N; | 88 | omap4_i2c1_board_info[0].irq = 7 + OMAP44XX_IRQ_GIC_START; |
88 | omap4_i2c1_board_info[0].platform_data = pmic_data; | 89 | omap4_i2c1_board_info[0].platform_data = pmic_data; |
89 | 90 | ||
90 | /* TWL6040 audio IC part */ | 91 | /* TWL6040 audio IC part */ |
diff --git a/arch/arm/mach-omap2/twl-common.h b/arch/arm/mach-omap2/twl-common.h index 8fe71cfd002c..d109c09ef34b 100644 --- a/arch/arm/mach-omap2/twl-common.h +++ b/arch/arm/mach-omap2/twl-common.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef __OMAP_PMIC_COMMON__ | 1 | #ifndef __OMAP_PMIC_COMMON__ |
2 | #define __OMAP_PMIC_COMMON__ | 2 | #define __OMAP_PMIC_COMMON__ |
3 | 3 | ||
4 | #include <plat/irqs.h> | 4 | #include "common.h" |
5 | 5 | ||
6 | #define TWL_COMMON_PDATA_USB (1 << 0) | 6 | #define TWL_COMMON_PDATA_USB (1 << 0) |
7 | #define TWL_COMMON_PDATA_BCI (1 << 1) | 7 | #define TWL_COMMON_PDATA_BCI (1 << 1) |
@@ -40,13 +40,13 @@ void omap_pmic_late_init(void); | |||
40 | static inline void omap2_pmic_init(const char *pmic_type, | 40 | static inline void omap2_pmic_init(const char *pmic_type, |
41 | struct twl4030_platform_data *pmic_data) | 41 | struct twl4030_platform_data *pmic_data) |
42 | { | 42 | { |
43 | omap_pmic_init(2, 2600, pmic_type, INT_24XX_SYS_NIRQ, pmic_data); | 43 | omap_pmic_init(2, 2600, pmic_type, 7 + OMAP_INTC_START, pmic_data); |
44 | } | 44 | } |
45 | 45 | ||
46 | static inline void omap3_pmic_init(const char *pmic_type, | 46 | static inline void omap3_pmic_init(const char *pmic_type, |
47 | struct twl4030_platform_data *pmic_data) | 47 | struct twl4030_platform_data *pmic_data) |
48 | { | 48 | { |
49 | omap_pmic_init(1, 2600, pmic_type, INT_34XX_SYS_NIRQ, pmic_data); | 49 | omap_pmic_init(1, 2600, pmic_type, 7 + OMAP_INTC_START, pmic_data); |
50 | } | 50 | } |
51 | 51 | ||
52 | void omap4_pmic_init(const char *pmic_type, | 52 | void omap4_pmic_init(const char *pmic_type, |
diff --git a/arch/arm/mach-omap2/usb-host.c b/arch/arm/mach-omap2/usb-host.c index dde8a11f47d5..14368c38c4d8 100644 --- a/arch/arm/mach-omap2/usb-host.c +++ b/arch/arm/mach-omap2/usb-host.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <asm/io.h> | 26 | #include <asm/io.h> |
27 | 27 | ||
28 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
29 | #include <mach/irqs.h> | ||
30 | #include <plat/usb.h> | 29 | #include <plat/usb.h> |
31 | #include <plat/omap_device.h> | 30 | #include <plat/omap_device.h> |
32 | 31 | ||
diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c index c4a576856661..3f35e6cc2da1 100644 --- a/arch/arm/mach-omap2/usb-musb.c +++ b/arch/arm/mach-omap2/usb-musb.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/usb/musb.h> | 27 | #include <linux/usb/musb.h> |
28 | 28 | ||
29 | #include <mach/hardware.h> | 29 | #include <mach/hardware.h> |
30 | #include <mach/irqs.h> | ||
31 | #include <mach/am35xx.h> | 30 | #include <mach/am35xx.h> |
32 | #include <plat/usb.h> | 31 | #include <plat/usb.h> |
33 | #include <plat/omap_device.h> | 32 | #include <plat/omap_device.h> |
diff --git a/arch/arm/plat-omap/include/plat/omap44xx.h b/arch/arm/plat-omap/include/plat/omap44xx.h index c0d478e55c84..5da9735e4849 100644 --- a/arch/arm/plat-omap/include/plat/omap44xx.h +++ b/arch/arm/plat-omap/include/plat/omap44xx.h | |||
@@ -39,6 +39,7 @@ | |||
39 | #define IRQ_SIR_IRQ 0x0040 | 39 | #define IRQ_SIR_IRQ 0x0040 |
40 | #define OMAP44XX_GIC_DIST_BASE 0x48241000 | 40 | #define OMAP44XX_GIC_DIST_BASE 0x48241000 |
41 | #define OMAP44XX_GIC_CPU_BASE 0x48240100 | 41 | #define OMAP44XX_GIC_CPU_BASE 0x48240100 |
42 | #define OMAP44XX_IRQ_GIC_START 32 | ||
42 | #define OMAP44XX_SCU_BASE 0x48240000 | 43 | #define OMAP44XX_SCU_BASE 0x48240000 |
43 | #define OMAP44XX_LOCAL_TWD_BASE 0x48240600 | 44 | #define OMAP44XX_LOCAL_TWD_BASE 0x48240600 |
44 | #define OMAP44XX_L2CACHE_BASE 0x48242000 | 45 | #define OMAP44XX_L2CACHE_BASE 0x48242000 |