aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-08-31 05:27:53 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-09-14 04:20:06 -0400
commitf989ae5b01b065b2124f5b83fffaddda07f6a38c (patch)
tree04b2455dd2a2b9f197edf7b9aeec1c5fb9765e51
parentdd8a61a739f98c2cd2fbf811b5b659433f0023f6 (diff)
ARM: mach-shmobile: Use evt2irq() for sh7372 DMAC
Use evt2irq() for DMAC resources on sh7372. This makes the code easier to read and also allows adjusting the INTC base offset without breaking platform data. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/arm/mach-shmobile/setup-sh7372.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c
index e26686c9d0b6..f6cdf76a3a3d 100644
--- a/arch/arm/mach-shmobile/setup-sh7372.c
+++ b/arch/arm/mach-shmobile/setup-sh7372.c
@@ -419,14 +419,14 @@ static struct resource sh7372_dmae0_resources[] = {
419 }, 419 },
420 { 420 {
421 /* DMA error IRQ */ 421 /* DMA error IRQ */
422 .start = 246, 422 .start = evt2irq(0x20c0),
423 .end = 246, 423 .end = evt2irq(0x20c0),
424 .flags = IORESOURCE_IRQ, 424 .flags = IORESOURCE_IRQ,
425 }, 425 },
426 { 426 {
427 /* IRQ for channels 0-5 */ 427 /* IRQ for channels 0-5 */
428 .start = 240, 428 .start = evt2irq(0x2000),
429 .end = 245, 429 .end = evt2irq(0x20a0),
430 .flags = IORESOURCE_IRQ, 430 .flags = IORESOURCE_IRQ,
431 }, 431 },
432}; 432};
@@ -447,14 +447,14 @@ static struct resource sh7372_dmae1_resources[] = {
447 }, 447 },
448 { 448 {
449 /* DMA error IRQ */ 449 /* DMA error IRQ */
450 .start = 254, 450 .start = evt2irq(0x21c0),
451 .end = 254, 451 .end = evt2irq(0x21c0),
452 .flags = IORESOURCE_IRQ, 452 .flags = IORESOURCE_IRQ,
453 }, 453 },
454 { 454 {
455 /* IRQ for channels 0-5 */ 455 /* IRQ for channels 0-5 */
456 .start = 248, 456 .start = evt2irq(0x2100),
457 .end = 253, 457 .end = evt2irq(0x21a0),
458 .flags = IORESOURCE_IRQ, 458 .flags = IORESOURCE_IRQ,
459 }, 459 },
460}; 460};
@@ -475,14 +475,14 @@ static struct resource sh7372_dmae2_resources[] = {
475 }, 475 },
476 { 476 {
477 /* DMA error IRQ */ 477 /* DMA error IRQ */
478 .start = 262, 478 .start = evt2irq(0x22c0),
479 .end = 262, 479 .end = evt2irq(0x22c0),
480 .flags = IORESOURCE_IRQ, 480 .flags = IORESOURCE_IRQ,
481 }, 481 },
482 { 482 {
483 /* IRQ for channels 0-5 */ 483 /* IRQ for channels 0-5 */
484 .start = 256, 484 .start = evt2irq(0x2200),
485 .end = 261, 485 .end = evt2irq(0x22a0),
486 .flags = IORESOURCE_IRQ, 486 .flags = IORESOURCE_IRQ,
487 }, 487 },
488}; 488};