Commit 03c5713c authored by Paul Mundt's avatar Paul Mundt

sh: edosk7760 evt2irq migration.

Migrate edosk7760 to evt2irq() backed hwirq lookups.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 0fa4c391
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/smc91x.h> #include <linux/smc91x.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/sh_intc.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/mtd/physmap.h> #include <linux/mtd/physmap.h>
#include <asm/machvec.h> #include <asm/machvec.h>
...@@ -40,8 +41,6 @@ ...@@ -40,8 +41,6 @@
#define SMC_IO_OFFSET 0x300 #define SMC_IO_OFFSET 0x300
#define SMC_IOADDR (SMC_IOBASE + SMC_IO_OFFSET) #define SMC_IOADDR (SMC_IOBASE + SMC_IO_OFFSET)
#define ETHERNET_IRQ 5
/* NOR flash */ /* NOR flash */
static struct mtd_partition edosk7760_nor_flash_partitions[] = { static struct mtd_partition edosk7760_nor_flash_partitions[] = {
{ {
...@@ -99,8 +98,8 @@ static struct resource sh7760_i2c1_res[] = { ...@@ -99,8 +98,8 @@ static struct resource sh7760_i2c1_res[] = {
.end = SH7760_I2C1_MMIOEND, .end = SH7760_I2C1_MMIOEND,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
},{ },{
.start = SH7760_I2C1_IRQ, .start = evt2irq(0x9e0),
.end = SH7760_I2C1_IRQ, .end = evt2irq(0x9e0),
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -122,8 +121,8 @@ static struct resource sh7760_i2c0_res[] = { ...@@ -122,8 +121,8 @@ static struct resource sh7760_i2c0_res[] = {
.end = SH7760_I2C0_MMIOEND, .end = SH7760_I2C0_MMIOEND,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, { }, {
.start = SH7760_I2C0_IRQ, .start = evt2irq(0x9c0),
.end = SH7760_I2C0_IRQ, .end = evt2irq(0x9c0),
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -150,8 +149,8 @@ static struct resource smc91x_res[] = { ...@@ -150,8 +149,8 @@ static struct resource smc91x_res[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = ETHERNET_IRQ, .start = evt2irq(0x2a0),
.end = ETHERNET_IRQ, .end = evt2irq(0x2a0),
.flags = IORESOURCE_IRQ , .flags = IORESOURCE_IRQ ,
} }
}; };
......
...@@ -9,11 +9,9 @@ ...@@ -9,11 +9,9 @@
#define SH7760_I2C0_MMIO 0xFE140000 #define SH7760_I2C0_MMIO 0xFE140000
#define SH7760_I2C0_MMIOEND 0xFE14003B #define SH7760_I2C0_MMIOEND 0xFE14003B
#define SH7760_I2C0_IRQ 62
#define SH7760_I2C1_MMIO 0xFE150000 #define SH7760_I2C1_MMIO 0xFE150000
#define SH7760_I2C1_MMIOEND 0xFE15003B #define SH7760_I2C1_MMIOEND 0xFE15003B
#define SH7760_I2C1_IRQ 63
struct sh7760_i2c_platdata { struct sh7760_i2c_platdata {
unsigned int speed_khz; unsigned int speed_khz;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment