aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_2430_data.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2012-08-27 20:43:01 -0400
committerTony Lindgren <tony@atomide.com>2012-09-12 21:06:30 -0400
commit7d7e1eba7e92c2f9c76db80adc24836e7a114bfb (patch)
tree9b258eaa8236d9ec15fd6a000c0ad5ef5820ff4c /arch/arm/mach-omap2/omap_hwmod_2430_data.c
parentaefaf7be498b9cfbd16e42932cdc52ab334241e0 (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/mach-omap2/omap_hwmod_2430_data.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_2430_data.c71
1 files changed, 36 insertions, 35 deletions
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 */
134static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = { 135static 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
139static struct omap_hwmod omap2430_gpio5_hwmod = { 140static struct omap_hwmod omap2430_gpio5_hwmod = {
@@ -172,8 +173,8 @@ static struct omap_hwmod omap2430_dma_system_hwmod = {
172 173
173/* mailbox */ 174/* mailbox */
174static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = { 175static 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
179static struct omap_hwmod omap2430_mailbox_hwmod = { 180static struct omap_hwmod omap2430_mailbox_hwmod = {
@@ -194,8 +195,8 @@ static struct omap_hwmod omap2430_mailbox_hwmod = {
194 195
195/* mcspi3 */ 196/* mcspi3 */
196static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = { 197static 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
201static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = { 202static 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 */
250static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = { 251static 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
257static struct omap_hwmod omap2430_usbhsotg_hwmod = { 258static 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 */
304static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = { 305static 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
312static struct omap_hwmod omap2430_mcbsp1_hwmod = { 313static struct omap_hwmod omap2430_mcbsp1_hwmod = {
@@ -330,10 +331,10 @@ static struct omap_hwmod omap2430_mcbsp1_hwmod = {
330 331
331/* mcbsp2 */ 332/* mcbsp2 */
332static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = { 333static 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
339static struct omap_hwmod omap2430_mcbsp2_hwmod = { 340static struct omap_hwmod omap2430_mcbsp2_hwmod = {
@@ -357,10 +358,10 @@ static struct omap_hwmod omap2430_mcbsp2_hwmod = {
357 358
358/* mcbsp3 */ 359/* mcbsp3 */
359static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = { 360static 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
366static struct omap_hwmod omap2430_mcbsp3_hwmod = { 367static struct omap_hwmod omap2430_mcbsp3_hwmod = {
@@ -384,10 +385,10 @@ static struct omap_hwmod omap2430_mcbsp3_hwmod = {
384 385
385/* mcbsp4 */ 386/* mcbsp4 */
386static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = { 387static 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
393static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = { 394static 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 */
419static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = { 420static 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
426static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = { 427static 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 */
469static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = { 470static 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
474static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = { 475static 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 */
510static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = { 511static 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
515static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = { 516static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {