diff options
author | Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> | 2012-04-12 23:14:03 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-04-17 03:17:33 -0400 |
commit | e00e7cb3b70e8aec5aa732b51394b841c7b4b571 (patch) | |
tree | 477dbda2ab334a1c727cb5a2d4d82099daaeb2d2 /arch/sh/kernel/cpu | |
parent | 545f3bcf32b6d43d9ac89998e9e72fcdf7accca3 (diff) |
sh: sh2: Change the specification method of IRQ to SCIx_IRQ_MUXED
Some SCIF devices specify the same IRQ. We can use SCIx_IRQ_MUXED for this.
This is correction to the SH2/SH2A series.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu')
-rw-r--r-- | arch/sh/kernel/cpu/sh2/setup-sh7619.c | 6 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh2a/setup-mxg.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh2a/setup-sh7201.c | 16 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh2a/setup-sh7203.c | 8 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh2a/setup-sh7206.c | 8 |
5 files changed, 20 insertions, 20 deletions
diff --git a/arch/sh/kernel/cpu/sh2/setup-sh7619.c b/arch/sh/kernel/cpu/sh2/setup-sh7619.c index 0f8befccf9fa..e0b740c831c7 100644 --- a/arch/sh/kernel/cpu/sh2/setup-sh7619.c +++ b/arch/sh/kernel/cpu/sh2/setup-sh7619.c | |||
@@ -65,7 +65,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
65 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 65 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
66 | .scbrr_algo_id = SCBRR_ALGO_2, | 66 | .scbrr_algo_id = SCBRR_ALGO_2, |
67 | .type = PORT_SCIF, | 67 | .type = PORT_SCIF, |
68 | .irqs = { 88, 88, 88, 88 }, | 68 | .irqs = SCIx_IRQ_MUXED(88), |
69 | }; | 69 | }; |
70 | 70 | ||
71 | static struct platform_device scif0_device = { | 71 | static struct platform_device scif0_device = { |
@@ -82,7 +82,7 @@ static struct plat_sci_port scif1_platform_data = { | |||
82 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 82 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
83 | .scbrr_algo_id = SCBRR_ALGO_2, | 83 | .scbrr_algo_id = SCBRR_ALGO_2, |
84 | .type = PORT_SCIF, | 84 | .type = PORT_SCIF, |
85 | .irqs = { 92, 92, 92, 92 }, | 85 | .irqs = SCIx_IRQ_MUXED(92), |
86 | }; | 86 | }; |
87 | 87 | ||
88 | static struct platform_device scif1_device = { | 88 | static struct platform_device scif1_device = { |
@@ -99,7 +99,7 @@ static struct plat_sci_port scif2_platform_data = { | |||
99 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 99 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
100 | .scbrr_algo_id = SCBRR_ALGO_2, | 100 | .scbrr_algo_id = SCBRR_ALGO_2, |
101 | .type = PORT_SCIF, | 101 | .type = PORT_SCIF, |
102 | .irqs = { 96, 96, 96, 96 }, | 102 | .irqs = SCIx_IRQ_MUXED(96), |
103 | }; | 103 | }; |
104 | 104 | ||
105 | static struct platform_device scif2_device = { | 105 | static struct platform_device scif2_device = { |
diff --git a/arch/sh/kernel/cpu/sh2a/setup-mxg.c b/arch/sh/kernel/cpu/sh2a/setup-mxg.c index 949bf2bac28c..f7f1cf2af302 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-mxg.c +++ b/arch/sh/kernel/cpu/sh2a/setup-mxg.c | |||
@@ -204,7 +204,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
204 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 204 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
205 | .scbrr_algo_id = SCBRR_ALGO_2, | 205 | .scbrr_algo_id = SCBRR_ALGO_2, |
206 | .type = PORT_SCIF, | 206 | .type = PORT_SCIF, |
207 | .irqs = { 220, 220, 220, 220 }, | 207 | .irqs = SCIx_IRQ_MUXED(220), |
208 | }; | 208 | }; |
209 | 209 | ||
210 | static struct platform_device scif0_device = { | 210 | static struct platform_device scif0_device = { |
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7201.c b/arch/sh/kernel/cpu/sh2a/setup-sh7201.c index 9df558dcdb86..7b84785b8962 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-sh7201.c +++ b/arch/sh/kernel/cpu/sh2a/setup-sh7201.c | |||
@@ -183,7 +183,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
183 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 183 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
184 | .scbrr_algo_id = SCBRR_ALGO_2, | 184 | .scbrr_algo_id = SCBRR_ALGO_2, |
185 | .type = PORT_SCIF, | 185 | .type = PORT_SCIF, |
186 | .irqs = { 180, 180, 180, 180 } | 186 | .irqs = SCIx_IRQ_MUXED(180), |
187 | }; | 187 | }; |
188 | 188 | ||
189 | static struct platform_device scif0_device = { | 189 | static struct platform_device scif0_device = { |
@@ -200,7 +200,7 @@ static struct plat_sci_port scif1_platform_data = { | |||
200 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 200 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
201 | .scbrr_algo_id = SCBRR_ALGO_2, | 201 | .scbrr_algo_id = SCBRR_ALGO_2, |
202 | .type = PORT_SCIF, | 202 | .type = PORT_SCIF, |
203 | .irqs = { 184, 184, 184, 184 } | 203 | .irqs = SCIx_IRQ_MUXED(184), |
204 | }; | 204 | }; |
205 | 205 | ||
206 | static struct platform_device scif1_device = { | 206 | static struct platform_device scif1_device = { |
@@ -217,7 +217,7 @@ static struct plat_sci_port scif2_platform_data = { | |||
217 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 217 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
218 | .scbrr_algo_id = SCBRR_ALGO_2, | 218 | .scbrr_algo_id = SCBRR_ALGO_2, |
219 | .type = PORT_SCIF, | 219 | .type = PORT_SCIF, |
220 | .irqs = { 188, 188, 188, 188 } | 220 | .irqs = SCIx_IRQ_MUXED(188), |
221 | }; | 221 | }; |
222 | 222 | ||
223 | static struct platform_device scif2_device = { | 223 | static struct platform_device scif2_device = { |
@@ -234,7 +234,7 @@ static struct plat_sci_port scif3_platform_data = { | |||
234 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 234 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
235 | .scbrr_algo_id = SCBRR_ALGO_2, | 235 | .scbrr_algo_id = SCBRR_ALGO_2, |
236 | .type = PORT_SCIF, | 236 | .type = PORT_SCIF, |
237 | .irqs = { 192, 192, 192, 192 } | 237 | .irqs = SCIx_IRQ_MUXED(192), |
238 | }; | 238 | }; |
239 | 239 | ||
240 | static struct platform_device scif3_device = { | 240 | static struct platform_device scif3_device = { |
@@ -251,7 +251,7 @@ static struct plat_sci_port scif4_platform_data = { | |||
251 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 251 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
252 | .scbrr_algo_id = SCBRR_ALGO_2, | 252 | .scbrr_algo_id = SCBRR_ALGO_2, |
253 | .type = PORT_SCIF, | 253 | .type = PORT_SCIF, |
254 | .irqs = { 196, 196, 196, 196 } | 254 | .irqs = SCIx_IRQ_MUXED(196), |
255 | }; | 255 | }; |
256 | 256 | ||
257 | static struct platform_device scif4_device = { | 257 | static struct platform_device scif4_device = { |
@@ -268,7 +268,7 @@ static struct plat_sci_port scif5_platform_data = { | |||
268 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 268 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
269 | .scbrr_algo_id = SCBRR_ALGO_2, | 269 | .scbrr_algo_id = SCBRR_ALGO_2, |
270 | .type = PORT_SCIF, | 270 | .type = PORT_SCIF, |
271 | .irqs = { 200, 200, 200, 200 } | 271 | .irqs = SCIx_IRQ_MUXED(200), |
272 | }; | 272 | }; |
273 | 273 | ||
274 | static struct platform_device scif5_device = { | 274 | static struct platform_device scif5_device = { |
@@ -285,7 +285,7 @@ static struct plat_sci_port scif6_platform_data = { | |||
285 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 285 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
286 | .scbrr_algo_id = SCBRR_ALGO_2, | 286 | .scbrr_algo_id = SCBRR_ALGO_2, |
287 | .type = PORT_SCIF, | 287 | .type = PORT_SCIF, |
288 | .irqs = { 204, 204, 204, 204 } | 288 | .irqs = SCIx_IRQ_MUXED(204), |
289 | }; | 289 | }; |
290 | 290 | ||
291 | static struct platform_device scif6_device = { | 291 | static struct platform_device scif6_device = { |
@@ -302,7 +302,7 @@ static struct plat_sci_port scif7_platform_data = { | |||
302 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 302 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
303 | .scbrr_algo_id = SCBRR_ALGO_2, | 303 | .scbrr_algo_id = SCBRR_ALGO_2, |
304 | .type = PORT_SCIF, | 304 | .type = PORT_SCIF, |
305 | .irqs = { 208, 208, 208, 208 } | 305 | .irqs = SCIx_IRQ_MUXED(208), |
306 | }; | 306 | }; |
307 | 307 | ||
308 | static struct platform_device scif7_device = { | 308 | static struct platform_device scif7_device = { |
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7203.c b/arch/sh/kernel/cpu/sh2a/setup-sh7203.c index 0bd744f9a3b7..bfc33f6a28c3 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-sh7203.c +++ b/arch/sh/kernel/cpu/sh2a/setup-sh7203.c | |||
@@ -180,7 +180,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
180 | SCSCR_REIE, | 180 | SCSCR_REIE, |
181 | .scbrr_algo_id = SCBRR_ALGO_2, | 181 | .scbrr_algo_id = SCBRR_ALGO_2, |
182 | .type = PORT_SCIF, | 182 | .type = PORT_SCIF, |
183 | .irqs = { 192, 192, 192, 192 }, | 183 | .irqs = SCIx_IRQ_MUXED(192), |
184 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, | 184 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, |
185 | }; | 185 | }; |
186 | 186 | ||
@@ -199,7 +199,7 @@ static struct plat_sci_port scif1_platform_data = { | |||
199 | SCSCR_REIE, | 199 | SCSCR_REIE, |
200 | .scbrr_algo_id = SCBRR_ALGO_2, | 200 | .scbrr_algo_id = SCBRR_ALGO_2, |
201 | .type = PORT_SCIF, | 201 | .type = PORT_SCIF, |
202 | .irqs = { 196, 196, 196, 196 }, | 202 | .irqs = SCIx_IRQ_MUXED(196), |
203 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, | 203 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, |
204 | }; | 204 | }; |
205 | 205 | ||
@@ -218,7 +218,7 @@ static struct plat_sci_port scif2_platform_data = { | |||
218 | SCSCR_REIE, | 218 | SCSCR_REIE, |
219 | .scbrr_algo_id = SCBRR_ALGO_2, | 219 | .scbrr_algo_id = SCBRR_ALGO_2, |
220 | .type = PORT_SCIF, | 220 | .type = PORT_SCIF, |
221 | .irqs = { 200, 200, 200, 200 }, | 221 | .irqs = SCIx_IRQ_MUXED(200), |
222 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, | 222 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, |
223 | }; | 223 | }; |
224 | 224 | ||
@@ -237,7 +237,7 @@ static struct plat_sci_port scif3_platform_data = { | |||
237 | SCSCR_REIE, | 237 | SCSCR_REIE, |
238 | .scbrr_algo_id = SCBRR_ALGO_2, | 238 | .scbrr_algo_id = SCBRR_ALGO_2, |
239 | .type = PORT_SCIF, | 239 | .type = PORT_SCIF, |
240 | .irqs = { 204, 204, 204, 204 }, | 240 | .irqs = SCIx_IRQ_MUXED(204), |
241 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, | 241 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, |
242 | }; | 242 | }; |
243 | 243 | ||
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7206.c b/arch/sh/kernel/cpu/sh2a/setup-sh7206.c index 5d14f849aea3..a5010741de85 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-sh7206.c +++ b/arch/sh/kernel/cpu/sh2a/setup-sh7206.c | |||
@@ -139,7 +139,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
139 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 139 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
140 | .scbrr_algo_id = SCBRR_ALGO_2, | 140 | .scbrr_algo_id = SCBRR_ALGO_2, |
141 | .type = PORT_SCIF, | 141 | .type = PORT_SCIF, |
142 | .irqs = { 240, 240, 240, 240 }, | 142 | .irqs = SCIx_IRQ_MUXED(240), |
143 | }; | 143 | }; |
144 | 144 | ||
145 | static struct platform_device scif0_device = { | 145 | static struct platform_device scif0_device = { |
@@ -156,7 +156,7 @@ static struct plat_sci_port scif1_platform_data = { | |||
156 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 156 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
157 | .scbrr_algo_id = SCBRR_ALGO_2, | 157 | .scbrr_algo_id = SCBRR_ALGO_2, |
158 | .type = PORT_SCIF, | 158 | .type = PORT_SCIF, |
159 | .irqs = { 244, 244, 244, 244 }, | 159 | .irqs = SCIx_IRQ_MUXED(244), |
160 | }; | 160 | }; |
161 | 161 | ||
162 | static struct platform_device scif1_device = { | 162 | static struct platform_device scif1_device = { |
@@ -173,7 +173,7 @@ static struct plat_sci_port scif2_platform_data = { | |||
173 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 173 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
174 | .scbrr_algo_id = SCBRR_ALGO_2, | 174 | .scbrr_algo_id = SCBRR_ALGO_2, |
175 | .type = PORT_SCIF, | 175 | .type = PORT_SCIF, |
176 | .irqs = { 248, 248, 248, 248 }, | 176 | .irqs = SCIx_IRQ_MUXED(248), |
177 | }; | 177 | }; |
178 | 178 | ||
179 | static struct platform_device scif2_device = { | 179 | static struct platform_device scif2_device = { |
@@ -190,7 +190,7 @@ static struct plat_sci_port scif3_platform_data = { | |||
190 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 190 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
191 | .scbrr_algo_id = SCBRR_ALGO_2, | 191 | .scbrr_algo_id = SCBRR_ALGO_2, |
192 | .type = PORT_SCIF, | 192 | .type = PORT_SCIF, |
193 | .irqs = { 252, 252, 252, 252 }, | 193 | .irqs = SCIx_IRQ_MUXED(252), |
194 | }; | 194 | }; |
195 | 195 | ||
196 | static struct platform_device scif3_device = { | 196 | static struct platform_device scif3_device = { |