diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:52:31 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:52:31 -0400 |
commit | 03c5713c96755c6ade73feb27558d214a3e0e546 (patch) | |
tree | 8b7eac44ecc03d4a1227cb7986ac1f4e2e1c5567 /arch/sh | |
parent | 0fa4c3912cd8e257a4648d6982f0bfe1a48bd8c2 (diff) |
sh: edosk7760 evt2irq migration.
Migrate edosk7760 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/board-edosk7760.c | 15 | ||||
-rw-r--r-- | arch/sh/include/asm/i2c-sh7760.h | 2 |
2 files changed, 7 insertions, 10 deletions
diff --git a/arch/sh/boards/board-edosk7760.c b/arch/sh/boards/board-edosk7760.c index e9656a2cc4cc..d4871d274fb9 100644 --- a/arch/sh/boards/board-edosk7760.c +++ b/arch/sh/boards/board-edosk7760.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | #include <linux/smc91x.h> | 24 | #include <linux/smc91x.h> |
25 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
26 | #include <linux/sh_intc.h> | ||
26 | #include <linux/i2c.h> | 27 | #include <linux/i2c.h> |
27 | #include <linux/mtd/physmap.h> | 28 | #include <linux/mtd/physmap.h> |
28 | #include <asm/machvec.h> | 29 | #include <asm/machvec.h> |
@@ -40,8 +41,6 @@ | |||
40 | #define SMC_IO_OFFSET 0x300 | 41 | #define SMC_IO_OFFSET 0x300 |
41 | #define SMC_IOADDR (SMC_IOBASE + SMC_IO_OFFSET) | 42 | #define SMC_IOADDR (SMC_IOBASE + SMC_IO_OFFSET) |
42 | 43 | ||
43 | #define ETHERNET_IRQ 5 | ||
44 | |||
45 | /* NOR flash */ | 44 | /* NOR flash */ |
46 | static struct mtd_partition edosk7760_nor_flash_partitions[] = { | 45 | static struct mtd_partition edosk7760_nor_flash_partitions[] = { |
47 | { | 46 | { |
@@ -99,8 +98,8 @@ static struct resource sh7760_i2c1_res[] = { | |||
99 | .end = SH7760_I2C1_MMIOEND, | 98 | .end = SH7760_I2C1_MMIOEND, |
100 | .flags = IORESOURCE_MEM, | 99 | .flags = IORESOURCE_MEM, |
101 | },{ | 100 | },{ |
102 | .start = SH7760_I2C1_IRQ, | 101 | .start = evt2irq(0x9e0), |
103 | .end = SH7760_I2C1_IRQ, | 102 | .end = evt2irq(0x9e0), |
104 | .flags = IORESOURCE_IRQ, | 103 | .flags = IORESOURCE_IRQ, |
105 | }, | 104 | }, |
106 | }; | 105 | }; |
@@ -122,8 +121,8 @@ static struct resource sh7760_i2c0_res[] = { | |||
122 | .end = SH7760_I2C0_MMIOEND, | 121 | .end = SH7760_I2C0_MMIOEND, |
123 | .flags = IORESOURCE_MEM, | 122 | .flags = IORESOURCE_MEM, |
124 | }, { | 123 | }, { |
125 | .start = SH7760_I2C0_IRQ, | 124 | .start = evt2irq(0x9c0), |
126 | .end = SH7760_I2C0_IRQ, | 125 | .end = evt2irq(0x9c0), |
127 | .flags = IORESOURCE_IRQ, | 126 | .flags = IORESOURCE_IRQ, |
128 | }, | 127 | }, |
129 | }; | 128 | }; |
@@ -150,8 +149,8 @@ static struct resource smc91x_res[] = { | |||
150 | .flags = IORESOURCE_MEM, | 149 | .flags = IORESOURCE_MEM, |
151 | }, | 150 | }, |
152 | [1] = { | 151 | [1] = { |
153 | .start = ETHERNET_IRQ, | 152 | .start = evt2irq(0x2a0), |
154 | .end = ETHERNET_IRQ, | 153 | .end = evt2irq(0x2a0), |
155 | .flags = IORESOURCE_IRQ , | 154 | .flags = IORESOURCE_IRQ , |
156 | } | 155 | } |
157 | }; | 156 | }; |
diff --git a/arch/sh/include/asm/i2c-sh7760.h b/arch/sh/include/asm/i2c-sh7760.h index 24182116711f..69fee1239b03 100644 --- a/arch/sh/include/asm/i2c-sh7760.h +++ b/arch/sh/include/asm/i2c-sh7760.h | |||
@@ -9,11 +9,9 @@ | |||
9 | 9 | ||
10 | #define SH7760_I2C0_MMIO 0xFE140000 | 10 | #define SH7760_I2C0_MMIO 0xFE140000 |
11 | #define SH7760_I2C0_MMIOEND 0xFE14003B | 11 | #define SH7760_I2C0_MMIOEND 0xFE14003B |
12 | #define SH7760_I2C0_IRQ 62 | ||
13 | 12 | ||
14 | #define SH7760_I2C1_MMIO 0xFE150000 | 13 | #define SH7760_I2C1_MMIO 0xFE150000 |
15 | #define SH7760_I2C1_MMIOEND 0xFE15003B | 14 | #define SH7760_I2C1_MMIOEND 0xFE15003B |
16 | #define SH7760_I2C1_IRQ 63 | ||
17 | 15 | ||
18 | struct sh7760_i2c_platdata { | 16 | struct sh7760_i2c_platdata { |
19 | unsigned int speed_khz; | 17 | unsigned int speed_khz; |