diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:34:48 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:34:48 -0400 |
commit | a9302a64d440ff60c917b33fe47dbeab2e3e7e94 (patch) | |
tree | 9b77614793e2af00434e4409c4b9869e9420e50b /arch | |
parent | e91b2a40a1a440a80a073d952de421ae7d188802 (diff) |
sh: sh7706/sh7707/sh7709/sh7709 evt2irq migration.
Migrate SH770x to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/cpu/sh3/setup-sh770x.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh770x.c b/arch/sh/kernel/cpu/sh3/setup-sh770x.c index 3f3d5fe5892d..ba26cd9ce69b 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh770x.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh770x.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/serial.h> | 19 | #include <linux/serial.h> |
20 | #include <linux/serial_sci.h> | 20 | #include <linux/serial_sci.h> |
21 | #include <linux/sh_timer.h> | 21 | #include <linux/sh_timer.h> |
22 | #include <linux/sh_intc.h> | ||
22 | #include <cpu/serial.h> | 23 | #include <cpu/serial.h> |
23 | 24 | ||
24 | enum { | 25 | enum { |
@@ -95,7 +96,7 @@ static struct resource rtc_resources[] = { | |||
95 | .flags = IORESOURCE_IO, | 96 | .flags = IORESOURCE_IO, |
96 | }, | 97 | }, |
97 | [1] = { | 98 | [1] = { |
98 | .start = 20, | 99 | .start = evt2irq(0x480), |
99 | .flags = IORESOURCE_IRQ, | 100 | .flags = IORESOURCE_IRQ, |
100 | }, | 101 | }, |
101 | }; | 102 | }; |
@@ -114,7 +115,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
114 | .scscr = SCSCR_TE | SCSCR_RE, | 115 | .scscr = SCSCR_TE | SCSCR_RE, |
115 | .scbrr_algo_id = SCBRR_ALGO_2, | 116 | .scbrr_algo_id = SCBRR_ALGO_2, |
116 | .type = PORT_SCI, | 117 | .type = PORT_SCI, |
117 | .irqs = { 23, 23, 23, 0 }, | 118 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x4e0)), |
118 | .ops = &sh770x_sci_port_ops, | 119 | .ops = &sh770x_sci_port_ops, |
119 | .regshift = 1, | 120 | .regshift = 1, |
120 | }; | 121 | }; |
@@ -135,7 +136,7 @@ static struct plat_sci_port scif1_platform_data = { | |||
135 | .scscr = SCSCR_TE | SCSCR_RE, | 136 | .scscr = SCSCR_TE | SCSCR_RE, |
136 | .scbrr_algo_id = SCBRR_ALGO_2, | 137 | .scbrr_algo_id = SCBRR_ALGO_2, |
137 | .type = PORT_SCIF, | 138 | .type = PORT_SCIF, |
138 | .irqs = { 56, 56, 56, 56 }, | 139 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x900)), |
139 | .ops = &sh770x_sci_port_ops, | 140 | .ops = &sh770x_sci_port_ops, |
140 | .regtype = SCIx_SH3_SCIF_REGTYPE, | 141 | .regtype = SCIx_SH3_SCIF_REGTYPE, |
141 | }; | 142 | }; |
@@ -157,7 +158,7 @@ static struct plat_sci_port scif2_platform_data = { | |||
157 | .scscr = SCSCR_TE | SCSCR_RE, | 158 | .scscr = SCSCR_TE | SCSCR_RE, |
158 | .scbrr_algo_id = SCBRR_ALGO_2, | 159 | .scbrr_algo_id = SCBRR_ALGO_2, |
159 | .type = PORT_IRDA, | 160 | .type = PORT_IRDA, |
160 | .irqs = { 52, 52, 52, 52 }, | 161 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x880)), |
161 | .ops = &sh770x_sci_port_ops, | 162 | .ops = &sh770x_sci_port_ops, |
162 | .regshift = 1, | 163 | .regshift = 1, |
163 | }; | 164 | }; |
@@ -184,7 +185,7 @@ static struct resource tmu0_resources[] = { | |||
184 | .flags = IORESOURCE_MEM, | 185 | .flags = IORESOURCE_MEM, |
185 | }, | 186 | }, |
186 | [1] = { | 187 | [1] = { |
187 | .start = 16, | 188 | .start = evt2irq(0x400), |
188 | .flags = IORESOURCE_IRQ, | 189 | .flags = IORESOURCE_IRQ, |
189 | }, | 190 | }, |
190 | }; | 191 | }; |
@@ -212,7 +213,7 @@ static struct resource tmu1_resources[] = { | |||
212 | .flags = IORESOURCE_MEM, | 213 | .flags = IORESOURCE_MEM, |
213 | }, | 214 | }, |
214 | [1] = { | 215 | [1] = { |
215 | .start = 17, | 216 | .start = evt2irq(0x420), |
216 | .flags = IORESOURCE_IRQ, | 217 | .flags = IORESOURCE_IRQ, |
217 | }, | 218 | }, |
218 | }; | 219 | }; |
@@ -239,7 +240,7 @@ static struct resource tmu2_resources[] = { | |||
239 | .flags = IORESOURCE_MEM, | 240 | .flags = IORESOURCE_MEM, |
240 | }, | 241 | }, |
241 | [1] = { | 242 | [1] = { |
242 | .start = 18, | 243 | .start = evt2irq(0x440), |
243 | .flags = IORESOURCE_IRQ, | 244 | .flags = IORESOURCE_IRQ, |
244 | }, | 245 | }, |
245 | }; | 246 | }; |