sh: sh7757lcr evt2irq migration.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 18 May 2012 06:18:10 +0000 (15:18 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 18 May 2012 06:18:10 +0000 (15:18 +0900)
Migrate sh7757lcr to evt2irq() backed hwirq lookups.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/board-sh7757lcr.c

index 24b1ee410daaccd74eff9ee601ef8c87a077d0d7..5087f8bb4cffd64aed276f0d2d3f10c34c324498 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/mmc/sh_mmcif.h>
 #include <linux/mmc/sh_mobile_sdhi.h>
 #include <linux/sh_eth.h>
+#include <linux/sh_intc.h>
 #include <linux/usb/renesas_usbhs.h>
 #include <cpu/sh7757.h>
 #include <asm/heartbeat.h>
@@ -65,8 +66,8 @@ static struct resource sh_eth0_resources[] = {
                .end    = 0xfef001ff,
                .flags  = IORESOURCE_MEM,
        }, {
-               .start  = 84,
-               .end    = 84,
+               .start  = evt2irq(0xc80),
+               .end    = evt2irq(0xc80),
                .flags  = IORESOURCE_IRQ,
        },
 };
@@ -94,8 +95,8 @@ static struct resource sh_eth1_resources[] = {
                .end    = 0xfef009ff,
                .flags  = IORESOURCE_MEM,
        }, {
-               .start  = 84,
-               .end    = 84,
+               .start  = evt2irq(0xc80),
+               .end    = evt2irq(0xc80),
                .flags  = IORESOURCE_IRQ,
        },
 };
@@ -139,8 +140,8 @@ static struct resource sh_eth_giga0_resources[] = {
                .end    = 0xfee01fff,
                .flags  = IORESOURCE_MEM,
        }, {
-               .start  = 315,
-               .end    = 315,
+               .start  = evt2irq(0x2960),
+               .end    = evt2irq(0x2960),
                .flags  = IORESOURCE_IRQ,
        },
 };
@@ -174,8 +175,8 @@ static struct resource sh_eth_giga1_resources[] = {
                .end    = 0xfee01fff,
                .flags  = IORESOURCE_MEM,
        }, {
-               .start  = 316,
-               .end    = 316,
+               .start  = evt2irq(0x2980),
+               .end    = evt2irq(0x2980),
                .flags  = IORESOURCE_IRQ,
        },
 };
@@ -206,11 +207,11 @@ static struct resource sh_mmcif_resources[] = {
                .flags  = IORESOURCE_MEM,
        },
        [1] = {
-               .start  = 211,
+               .start  = evt2irq(0x1c60),
                .flags  = IORESOURCE_IRQ,
        },
        [2] = {
-               .start  = 212,
+               .start  = evt2irq(0x1c80),
                .flags  = IORESOURCE_IRQ,
        },
 };
@@ -248,7 +249,7 @@ static struct resource sdhi_resources[] = {
                .flags  = IORESOURCE_MEM,
        },
        [1] = {
-               .start  = 20,
+               .start  = evt2irq(0x480),
                .flags  = IORESOURCE_IRQ,
        },
 };
@@ -284,8 +285,8 @@ static struct resource usb0_resources[] = {
                .flags  = IORESOURCE_MEM,
        },
        [1] = {
-               .start  = 50,
-               .end    = 50,
+               .start  = evt2irq(0x840),
+               .end    = evt2irq(0x840),
                .flags  = IORESOURCE_IRQ,
        },
 };