diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-06-24 04:53:33 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-06-24 04:53:33 -0400 |
commit | 00b9de9c249f51f09c19aa41cbbb3e3eb4eea807 (patch) | |
tree | 28715dbc2472e6da8b7d670e63439172a1de9a6b /arch | |
parent | bb38c222e07cbe252cfbd99cd6a9c834b0a2639a (diff) |
serial: sh-sci: Move SCSCR_INIT in to platform data.
This moves all of the SCSCR_INIT definitions in to the platform data,
for future consolidation.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
24 files changed, 123 insertions, 26 deletions
diff --git a/arch/sh/kernel/cpu/sh2/setup-sh7619.c b/arch/sh/kernel/cpu/sh2/setup-sh7619.c index 13798733f2db..ace016b17036 100644 --- a/arch/sh/kernel/cpu/sh2/setup-sh7619.c +++ b/arch/sh/kernel/cpu/sh2/setup-sh7619.c | |||
@@ -63,16 +63,19 @@ static struct plat_sci_port sci_platform_data[] = { | |||
63 | { | 63 | { |
64 | .mapbase = 0xf8400000, | 64 | .mapbase = 0xf8400000, |
65 | .flags = UPF_BOOT_AUTOCONF, | 65 | .flags = UPF_BOOT_AUTOCONF, |
66 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
66 | .type = PORT_SCIF, | 67 | .type = PORT_SCIF, |
67 | .irqs = { 88, 88, 88, 88 }, | 68 | .irqs = { 88, 88, 88, 88 }, |
68 | }, { | 69 | }, { |
69 | .mapbase = 0xf8410000, | 70 | .mapbase = 0xf8410000, |
70 | .flags = UPF_BOOT_AUTOCONF, | 71 | .flags = UPF_BOOT_AUTOCONF, |
72 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
71 | .type = PORT_SCIF, | 73 | .type = PORT_SCIF, |
72 | .irqs = { 92, 92, 92, 92 }, | 74 | .irqs = { 92, 92, 92, 92 }, |
73 | }, { | 75 | }, { |
74 | .mapbase = 0xf8420000, | 76 | .mapbase = 0xf8420000, |
75 | .flags = UPF_BOOT_AUTOCONF, | 77 | .flags = UPF_BOOT_AUTOCONF, |
78 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
76 | .type = PORT_SCIF, | 79 | .type = PORT_SCIF, |
77 | .irqs = { 96, 96, 96, 96 }, | 80 | .irqs = { 96, 96, 96, 96 }, |
78 | }, { | 81 | }, { |
diff --git a/arch/sh/kernel/cpu/sh2a/setup-mxg.c b/arch/sh/kernel/cpu/sh2a/setup-mxg.c index 869c2da4820b..7ec658ce14f8 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-mxg.c +++ b/arch/sh/kernel/cpu/sh2a/setup-mxg.c | |||
@@ -211,6 +211,7 @@ static struct plat_sci_port sci_platform_data[] = { | |||
211 | { | 211 | { |
212 | .mapbase = 0xff804000, | 212 | .mapbase = 0xff804000, |
213 | .flags = UPF_BOOT_AUTOCONF, | 213 | .flags = UPF_BOOT_AUTOCONF, |
214 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
214 | .type = PORT_SCIF, | 215 | .type = PORT_SCIF, |
215 | .irqs = { 220, 220, 220, 220 }, | 216 | .irqs = { 220, 220, 220, 220 }, |
216 | }, { | 217 | }, { |
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7201.c b/arch/sh/kernel/cpu/sh2a/setup-sh7201.c index d8febe128066..2a2ac222f9c7 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-sh7201.c +++ b/arch/sh/kernel/cpu/sh2a/setup-sh7201.c | |||
@@ -181,41 +181,49 @@ static struct plat_sci_port sci_platform_data[] = { | |||
181 | { | 181 | { |
182 | .mapbase = 0xfffe8000, | 182 | .mapbase = 0xfffe8000, |
183 | .flags = UPF_BOOT_AUTOCONF, | 183 | .flags = UPF_BOOT_AUTOCONF, |
184 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
184 | .type = PORT_SCIF, | 185 | .type = PORT_SCIF, |
185 | .irqs = { 180, 180, 180, 180 } | 186 | .irqs = { 180, 180, 180, 180 } |
186 | }, { | 187 | }, { |
187 | .mapbase = 0xfffe8800, | 188 | .mapbase = 0xfffe8800, |
188 | .flags = UPF_BOOT_AUTOCONF, | 189 | .flags = UPF_BOOT_AUTOCONF, |
190 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
189 | .type = PORT_SCIF, | 191 | .type = PORT_SCIF, |
190 | .irqs = { 184, 184, 184, 184 } | 192 | .irqs = { 184, 184, 184, 184 } |
191 | }, { | 193 | }, { |
192 | .mapbase = 0xfffe9000, | 194 | .mapbase = 0xfffe9000, |
193 | .flags = UPF_BOOT_AUTOCONF, | 195 | .flags = UPF_BOOT_AUTOCONF, |
196 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
194 | .type = PORT_SCIF, | 197 | .type = PORT_SCIF, |
195 | .irqs = { 188, 188, 188, 188 } | 198 | .irqs = { 188, 188, 188, 188 } |
196 | }, { | 199 | }, { |
197 | .mapbase = 0xfffe9800, | 200 | .mapbase = 0xfffe9800, |
198 | .flags = UPF_BOOT_AUTOCONF, | 201 | .flags = UPF_BOOT_AUTOCONF, |
202 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
199 | .type = PORT_SCIF, | 203 | .type = PORT_SCIF, |
200 | .irqs = { 192, 192, 192, 192 } | 204 | .irqs = { 192, 192, 192, 192 } |
201 | }, { | 205 | }, { |
202 | .mapbase = 0xfffea000, | 206 | .mapbase = 0xfffea000, |
203 | .flags = UPF_BOOT_AUTOCONF, | 207 | .flags = UPF_BOOT_AUTOCONF, |
208 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
204 | .type = PORT_SCIF, | 209 | .type = PORT_SCIF, |
205 | .irqs = { 196, 196, 196, 196 } | 210 | .irqs = { 196, 196, 196, 196 } |
206 | }, { | 211 | }, { |
207 | .mapbase = 0xfffea800, | 212 | .mapbase = 0xfffea800, |
208 | .flags = UPF_BOOT_AUTOCONF, | 213 | .flags = UPF_BOOT_AUTOCONF, |
214 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
209 | .type = PORT_SCIF, | 215 | .type = PORT_SCIF, |
210 | .irqs = { 200, 200, 200, 200 } | 216 | .irqs = { 200, 200, 200, 200 } |
211 | }, { | 217 | }, { |
212 | .mapbase = 0xfffeb000, | 218 | .mapbase = 0xfffeb000, |
213 | .flags = UPF_BOOT_AUTOCONF, | 219 | .flags = UPF_BOOT_AUTOCONF, |
220 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
214 | .type = PORT_SCIF, | 221 | .type = PORT_SCIF, |
215 | .irqs = { 204, 204, 204, 204 } | 222 | .irqs = { 204, 204, 204, 204 } |
216 | }, { | 223 | }, { |
217 | .mapbase = 0xfffeb800, | 224 | .mapbase = 0xfffeb800, |
218 | .flags = UPF_BOOT_AUTOCONF, | 225 | .flags = UPF_BOOT_AUTOCONF, |
226 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
219 | .type = PORT_SCIF, | 227 | .type = PORT_SCIF, |
220 | .irqs = { 208, 208, 208, 208 } | 228 | .irqs = { 208, 208, 208, 208 } |
221 | }, { | 229 | }, { |
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7203.c b/arch/sh/kernel/cpu/sh2a/setup-sh7203.c index 62e3039d2398..2c9f3ababfd7 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-sh7203.c +++ b/arch/sh/kernel/cpu/sh2a/setup-sh7203.c | |||
@@ -177,21 +177,25 @@ static struct plat_sci_port sci_platform_data[] = { | |||
177 | { | 177 | { |
178 | .mapbase = 0xfffe8000, | 178 | .mapbase = 0xfffe8000, |
179 | .flags = UPF_BOOT_AUTOCONF, | 179 | .flags = UPF_BOOT_AUTOCONF, |
180 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
180 | .type = PORT_SCIF, | 181 | .type = PORT_SCIF, |
181 | .irqs = { 192, 192, 192, 192 }, | 182 | .irqs = { 192, 192, 192, 192 }, |
182 | }, { | 183 | }, { |
183 | .mapbase = 0xfffe8800, | 184 | .mapbase = 0xfffe8800, |
184 | .flags = UPF_BOOT_AUTOCONF, | 185 | .flags = UPF_BOOT_AUTOCONF, |
186 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
185 | .type = PORT_SCIF, | 187 | .type = PORT_SCIF, |
186 | .irqs = { 196, 196, 196, 196 }, | 188 | .irqs = { 196, 196, 196, 196 }, |
187 | }, { | 189 | }, { |
188 | .mapbase = 0xfffe9000, | 190 | .mapbase = 0xfffe9000, |
189 | .flags = UPF_BOOT_AUTOCONF, | 191 | .flags = UPF_BOOT_AUTOCONF, |
192 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
190 | .type = PORT_SCIF, | 193 | .type = PORT_SCIF, |
191 | .irqs = { 200, 200, 200, 200 }, | 194 | .irqs = { 200, 200, 200, 200 }, |
192 | }, { | 195 | }, { |
193 | .mapbase = 0xfffe9800, | 196 | .mapbase = 0xfffe9800, |
194 | .flags = UPF_BOOT_AUTOCONF, | 197 | .flags = UPF_BOOT_AUTOCONF, |
198 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
195 | .type = PORT_SCIF, | 199 | .type = PORT_SCIF, |
196 | .irqs = { 204, 204, 204, 204 }, | 200 | .irqs = { 204, 204, 204, 204 }, |
197 | }, { | 201 | }, { |
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7206.c b/arch/sh/kernel/cpu/sh2a/setup-sh7206.c index 3e6f3d7a58be..5a47987f3902 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-sh7206.c +++ b/arch/sh/kernel/cpu/sh2a/setup-sh7206.c | |||
@@ -137,21 +137,25 @@ static struct plat_sci_port sci_platform_data[] = { | |||
137 | { | 137 | { |
138 | .mapbase = 0xfffe8000, | 138 | .mapbase = 0xfffe8000, |
139 | .flags = UPF_BOOT_AUTOCONF, | 139 | .flags = UPF_BOOT_AUTOCONF, |
140 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
140 | .type = PORT_SCIF, | 141 | .type = PORT_SCIF, |
141 | .irqs = { 240, 240, 240, 240 }, | 142 | .irqs = { 240, 240, 240, 240 }, |
142 | }, { | 143 | }, { |
143 | .mapbase = 0xfffe8800, | 144 | .mapbase = 0xfffe8800, |
144 | .flags = UPF_BOOT_AUTOCONF, | 145 | .flags = UPF_BOOT_AUTOCONF, |
146 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
145 | .type = PORT_SCIF, | 147 | .type = PORT_SCIF, |
146 | .irqs = { 244, 244, 244, 244 }, | 148 | .irqs = { 244, 244, 244, 244 }, |
147 | }, { | 149 | }, { |
148 | .mapbase = 0xfffe9000, | 150 | .mapbase = 0xfffe9000, |
149 | .flags = UPF_BOOT_AUTOCONF, | 151 | .flags = UPF_BOOT_AUTOCONF, |
152 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
150 | .type = PORT_SCIF, | 153 | .type = PORT_SCIF, |
151 | .irqs = { 248, 248, 248, 248 }, | 154 | .irqs = { 248, 248, 248, 248 }, |
152 | }, { | 155 | }, { |
153 | .mapbase = 0xfffe9800, | 156 | .mapbase = 0xfffe9800, |
154 | .flags = UPF_BOOT_AUTOCONF, | 157 | .flags = UPF_BOOT_AUTOCONF, |
158 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
155 | .type = PORT_SCIF, | 159 | .type = PORT_SCIF, |
156 | .irqs = { 252, 252, 252, 252 }, | 160 | .irqs = { 252, 252, 252, 252 }, |
157 | }, { | 161 | }, { |
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7705.c b/arch/sh/kernel/cpu/sh3/setup-sh7705.c index 88f742fed9ed..28de53b281f3 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7705.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7705.c | |||
@@ -71,11 +71,14 @@ static struct plat_sci_port sci_platform_data[] = { | |||
71 | { | 71 | { |
72 | .mapbase = 0xa4410000, | 72 | .mapbase = 0xa4410000, |
73 | .flags = UPF_BOOT_AUTOCONF, | 73 | .flags = UPF_BOOT_AUTOCONF, |
74 | .scscr = SCSCR_TIE | SCSCR_RIE | SCSCR_TE | | ||
75 | SCSCR_RE | SCSCR_CKE1 | SCSCR_CKE0, | ||
74 | .type = PORT_SCIF, | 76 | .type = PORT_SCIF, |
75 | .irqs = { 56, 56, 56 }, | 77 | .irqs = { 56, 56, 56 }, |
76 | }, { | 78 | }, { |
77 | .mapbase = 0xa4400000, | 79 | .mapbase = 0xa4400000, |
78 | .flags = UPF_BOOT_AUTOCONF, | 80 | .flags = UPF_BOOT_AUTOCONF, |
81 | .scscr = SCSCR_TIE | SCSCR_RIE | SCSCR_TE | SCSCR_RE, | ||
79 | .type = PORT_SCIF, | 82 | .type = PORT_SCIF, |
80 | .irqs = { 52, 52, 52 }, | 83 | .irqs = { 52, 52, 52 }, |
81 | }, { | 84 | }, { |
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh770x.c b/arch/sh/kernel/cpu/sh3/setup-sh770x.c index c56306798584..50ac42836dc7 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh770x.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh770x.c | |||
@@ -110,6 +110,7 @@ static struct plat_sci_port sci_platform_data[] = { | |||
110 | { | 110 | { |
111 | .mapbase = 0xfffffe80, | 111 | .mapbase = 0xfffffe80, |
112 | .flags = UPF_BOOT_AUTOCONF, | 112 | .flags = UPF_BOOT_AUTOCONF, |
113 | .scscr = SCSCR_TE | SCSCR_RE, | ||
113 | .type = PORT_SCI, | 114 | .type = PORT_SCI, |
114 | .irqs = { 23, 23, 23, 0 }, | 115 | .irqs = { 23, 23, 23, 0 }, |
115 | }, | 116 | }, |
@@ -119,6 +120,7 @@ static struct plat_sci_port sci_platform_data[] = { | |||
119 | { | 120 | { |
120 | .mapbase = 0xa4000150, | 121 | .mapbase = 0xa4000150, |
121 | .flags = UPF_BOOT_AUTOCONF, | 122 | .flags = UPF_BOOT_AUTOCONF, |
123 | .scscr = SCSCR_TE | SCSCR_RE, | ||
122 | .type = PORT_SCIF, | 124 | .type = PORT_SCIF, |
123 | .irqs = { 56, 56, 56, 56 }, | 125 | .irqs = { 56, 56, 56, 56 }, |
124 | }, | 126 | }, |
@@ -128,6 +130,7 @@ static struct plat_sci_port sci_platform_data[] = { | |||
128 | { | 130 | { |
129 | .mapbase = 0xa4000140, | 131 | .mapbase = 0xa4000140, |
130 | .flags = UPF_BOOT_AUTOCONF, | 132 | .flags = UPF_BOOT_AUTOCONF, |
133 | .scscr = SCSCR_TE | SCSCR_RE, | ||
131 | .type = PORT_IRDA, | 134 | .type = PORT_IRDA, |
132 | .irqs = { 52, 52, 52, 52 }, | 135 | .irqs = { 52, 52, 52, 52 }, |
133 | }, | 136 | }, |
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7710.c b/arch/sh/kernel/cpu/sh3/setup-sh7710.c index efa76c8148f4..007627ecb7c8 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7710.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7710.c | |||
@@ -100,11 +100,15 @@ static struct plat_sci_port sci_platform_data[] = { | |||
100 | { | 100 | { |
101 | .mapbase = 0xa4400000, | 101 | .mapbase = 0xa4400000, |
102 | .flags = UPF_BOOT_AUTOCONF, | 102 | .flags = UPF_BOOT_AUTOCONF, |
103 | .scscr = SCSCR_TE | SCSCR_RE | SCSCR_REIE | | ||
104 | SCSCR_CKE1 | SCSCR_CKE0, | ||
103 | .type = PORT_SCIF, | 105 | .type = PORT_SCIF, |
104 | .irqs = { 52, 52, 52, 52 }, | 106 | .irqs = { 52, 52, 52, 52 }, |
105 | }, { | 107 | }, { |
106 | .mapbase = 0xa4410000, | 108 | .mapbase = 0xa4410000, |
107 | .flags = UPF_BOOT_AUTOCONF, | 109 | .flags = UPF_BOOT_AUTOCONF, |
110 | .scscr = SCSCR_TE | SCSCR_RE | SCSCR_REIE | | ||
111 | SCSCR_CKE1 | SCSCR_CKE0, | ||
108 | .type = PORT_SCIF, | 112 | .type = PORT_SCIF, |
109 | .irqs = { 56, 56, 56, 56 }, | 113 | .irqs = { 56, 56, 56, 56 }, |
110 | }, { | 114 | }, { |
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7720.c b/arch/sh/kernel/cpu/sh3/setup-sh7720.c index 5b2107798edb..1fc3d9089199 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7720.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7720.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * SH7720 Setup | 2 | * Setup code for SH7720, SH7721. |
3 | * | 3 | * |
4 | * Copyright (C) 2007 Markus Brunner, Mark Jonas | 4 | * Copyright (C) 2007 Markus Brunner, Mark Jonas |
5 | * Copyright (C) 2009 Paul Mundt | 5 | * Copyright (C) 2009 Paul Mundt |
@@ -52,15 +52,16 @@ static struct plat_sci_port sci_platform_data[] = { | |||
52 | { | 52 | { |
53 | .mapbase = 0xa4430000, | 53 | .mapbase = 0xa4430000, |
54 | .flags = UPF_BOOT_AUTOCONF, | 54 | .flags = UPF_BOOT_AUTOCONF, |
55 | .scscr = SCSCR_RE | SCSCR_TE, | ||
55 | .type = PORT_SCIF, | 56 | .type = PORT_SCIF, |
56 | .irqs = { 80, 80, 80, 80 }, | 57 | .irqs = { 80, 80, 80, 80 }, |
57 | }, { | 58 | }, { |
58 | .mapbase = 0xa4438000, | 59 | .mapbase = 0xa4438000, |
59 | .flags = UPF_BOOT_AUTOCONF, | 60 | .flags = UPF_BOOT_AUTOCONF, |
61 | .scscr = SCSCR_RE | SCSCR_TE, | ||
60 | .type = PORT_SCIF, | 62 | .type = PORT_SCIF, |
61 | .irqs = { 81, 81, 81, 81 }, | 63 | .irqs = { 81, 81, 81, 81 }, |
62 | }, { | 64 | }, { |
63 | |||
64 | .flags = 0, | 65 | .flags = 0, |
65 | } | 66 | } |
66 | }; | 67 | }; |
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh4-202.c b/arch/sh/kernel/cpu/sh4/setup-sh4-202.c index 6d088d123591..9aa6fa3ca4e6 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh4-202.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh4-202.c | |||
@@ -19,6 +19,7 @@ static struct plat_sci_port sci_platform_data[] = { | |||
19 | { | 19 | { |
20 | .mapbase = 0xffe80000, | 20 | .mapbase = 0xffe80000, |
21 | .flags = UPF_BOOT_AUTOCONF, | 21 | .flags = UPF_BOOT_AUTOCONF, |
22 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
22 | .type = PORT_SCIF, | 23 | .type = PORT_SCIF, |
23 | .irqs = { 40, 41, 43, 42 }, | 24 | .irqs = { 40, 41, 43, 42 }, |
24 | }, { | 25 | }, { |
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7750.c b/arch/sh/kernel/cpu/sh4/setup-sh7750.c index 851672d15cf4..2159c439dce9 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh7750.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh7750.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <linux/sh_timer.h> | 15 | #include <linux/sh_timer.h> |
16 | #include <linux/serial_sci.h> | 16 | #include <linux/serial_sci.h> |
17 | #include <asm/machtypes.h> | ||
17 | 18 | ||
18 | static struct resource rtc_resources[] = { | 19 | static struct resource rtc_resources[] = { |
19 | [0] = { | 20 | [0] = { |
@@ -35,32 +36,36 @@ static struct platform_device rtc_device = { | |||
35 | .resource = rtc_resources, | 36 | .resource = rtc_resources, |
36 | }; | 37 | }; |
37 | 38 | ||
38 | static struct plat_sci_port sci_platform_data[] = { | 39 | static struct plat_sci_port sci_platform_data = { |
39 | { | 40 | .mapbase = 0xffe00000, |
40 | #ifndef CONFIG_SH_RTS7751R2D | 41 | .flags = UPF_BOOT_AUTOCONF, |
41 | .mapbase = 0xffe00000, | 42 | .type = PORT_SCI, |
42 | .flags = UPF_BOOT_AUTOCONF, | 43 | .scscr = SCSCR_TE | SCSCR_RE, |
43 | .type = PORT_SCI, | 44 | .irqs = { 23, 23, 23, 0 }, |
44 | .irqs = { 23, 23, 23, 0 }, | ||
45 | }, { | ||
46 | #endif | ||
47 | .mapbase = 0xffe80000, | ||
48 | .flags = UPF_BOOT_AUTOCONF, | ||
49 | .type = PORT_SCIF, | ||
50 | .irqs = { 40, 40, 40, 40 }, | ||
51 | }, { | ||
52 | .flags = 0, | ||
53 | } | ||
54 | }; | 45 | }; |
55 | 46 | ||
56 | static struct platform_device sci_device = { | 47 | static struct platform_device sci_device = { |
57 | .name = "sh-sci", | 48 | .name = "sh-sci", |
58 | .id = -1, | ||
59 | .dev = { | 49 | .dev = { |
60 | .platform_data = sci_platform_data, | 50 | .platform_data = sci_platform_data, |
61 | }, | 51 | }, |
62 | }; | 52 | }; |
63 | 53 | ||
54 | static struct plat_sci_port scif_platform_data = { | ||
55 | .mapbase = 0xffe80000, | ||
56 | .flags = UPF_BOOT_AUTOCONF, | ||
57 | .scscr = SCSCR_TE | SCSCR_RE | SCSCR_REIE, | ||
58 | .type = PORT_SCIF, | ||
59 | .irqs = { 40, 40, 40, 40 }, | ||
60 | }; | ||
61 | |||
62 | static struct platform_device scif_device = { | ||
63 | .name = "sh-sci", | ||
64 | .dev = { | ||
65 | .platform_data = scif_platform_data, | ||
66 | }, | ||
67 | }; | ||
68 | |||
64 | static struct sh_timer_config tmu0_platform_data = { | 69 | static struct sh_timer_config tmu0_platform_data = { |
65 | .name = "TMU0", | 70 | .name = "TMU0", |
66 | .channel_offset = 0x04, | 71 | .channel_offset = 0x04, |
@@ -222,7 +227,6 @@ static struct platform_device tmu4_device = { | |||
222 | 227 | ||
223 | static struct platform_device *sh7750_devices[] __initdata = { | 228 | static struct platform_device *sh7750_devices[] __initdata = { |
224 | &rtc_device, | 229 | &rtc_device, |
225 | &sci_device, | ||
226 | &tmu0_device, | 230 | &tmu0_device, |
227 | &tmu1_device, | 231 | &tmu1_device, |
228 | &tmu2_device, | 232 | &tmu2_device, |
@@ -236,6 +240,14 @@ static struct platform_device *sh7750_devices[] __initdata = { | |||
236 | 240 | ||
237 | static int __init sh7750_devices_setup(void) | 241 | static int __init sh7750_devices_setup(void) |
238 | { | 242 | { |
243 | if (mach_is_rts7751r2d()) { | ||
244 | scif_platform_data.scscr |= SCSCR_CKE1; | ||
245 | platform_register_device(&scif_device); | ||
246 | } else { | ||
247 | platform_register_device(&sci_device); | ||
248 | platform_register_device(&scif_device); | ||
249 | } | ||
250 | |||
239 | return platform_add_devices(sh7750_devices, | 251 | return platform_add_devices(sh7750_devices, |
240 | ARRAY_SIZE(sh7750_devices)); | 252 | ARRAY_SIZE(sh7750_devices)); |
241 | } | 253 | } |
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7760.c b/arch/sh/kernel/cpu/sh4/setup-sh7760.c index 5b822519bd90..74b5e994724d 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh7760.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh7760.c | |||
@@ -130,21 +130,25 @@ static struct plat_sci_port sci_platform_data[] = { | |||
130 | { | 130 | { |
131 | .mapbase = 0xfe600000, | 131 | .mapbase = 0xfe600000, |
132 | .flags = UPF_BOOT_AUTOCONF, | 132 | .flags = UPF_BOOT_AUTOCONF, |
133 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
133 | .type = PORT_SCIF, | 134 | .type = PORT_SCIF, |
134 | .irqs = { 52, 53, 55, 54 }, | 135 | .irqs = { 52, 53, 55, 54 }, |
135 | }, { | 136 | }, { |
136 | .mapbase = 0xfe610000, | 137 | .mapbase = 0xfe610000, |
137 | .flags = UPF_BOOT_AUTOCONF, | 138 | .flags = UPF_BOOT_AUTOCONF, |
139 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
138 | .type = PORT_SCIF, | 140 | .type = PORT_SCIF, |
139 | .irqs = { 72, 73, 75, 74 }, | 141 | .irqs = { 72, 73, 75, 74 }, |
140 | }, { | 142 | }, { |
141 | .mapbase = 0xfe620000, | 143 | .mapbase = 0xfe620000, |
142 | .flags = UPF_BOOT_AUTOCONF, | 144 | .flags = UPF_BOOT_AUTOCONF, |
145 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
143 | .type = PORT_SCIF, | 146 | .type = PORT_SCIF, |
144 | .irqs = { 76, 77, 79, 78 }, | 147 | .irqs = { 76, 77, 79, 78 }, |
145 | }, { | 148 | }, { |
146 | .mapbase = 0xfe480000, | 149 | .mapbase = 0xfe480000, |
147 | .flags = UPF_BOOT_AUTOCONF, | 150 | .flags = UPF_BOOT_AUTOCONF, |
151 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
148 | .type = PORT_SCI, | 152 | .type = PORT_SCI, |
149 | .irqs = { 80, 81, 82, 0 }, | 153 | .irqs = { 80, 81, 82, 0 }, |
150 | }, { | 154 | }, { |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c index 6307e087c864..09fb5814d925 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7343.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7343.c | |||
@@ -269,24 +269,28 @@ static struct plat_sci_port sci_platform_data[] = { | |||
269 | { | 269 | { |
270 | .mapbase = 0xffe00000, | 270 | .mapbase = 0xffe00000, |
271 | .flags = UPF_BOOT_AUTOCONF, | 271 | .flags = UPF_BOOT_AUTOCONF, |
272 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_CKE1, | ||
272 | .type = PORT_SCIF, | 273 | .type = PORT_SCIF, |
273 | .irqs = { 80, 80, 80, 80 }, | 274 | .irqs = { 80, 80, 80, 80 }, |
274 | .clk = "scif0", | 275 | .clk = "scif0", |
275 | }, { | 276 | }, { |
276 | .mapbase = 0xffe10000, | 277 | .mapbase = 0xffe10000, |
277 | .flags = UPF_BOOT_AUTOCONF, | 278 | .flags = UPF_BOOT_AUTOCONF, |
279 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_CKE1, | ||
278 | .type = PORT_SCIF, | 280 | .type = PORT_SCIF, |
279 | .irqs = { 81, 81, 81, 81 }, | 281 | .irqs = { 81, 81, 81, 81 }, |
280 | .clk = "scif1", | 282 | .clk = "scif1", |
281 | }, { | 283 | }, { |
282 | .mapbase = 0xffe20000, | 284 | .mapbase = 0xffe20000, |
283 | .flags = UPF_BOOT_AUTOCONF, | 285 | .flags = UPF_BOOT_AUTOCONF, |
286 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_CKE1, | ||
284 | .type = PORT_SCIF, | 287 | .type = PORT_SCIF, |
285 | .irqs = { 82, 82, 82, 82 }, | 288 | .irqs = { 82, 82, 82, 82 }, |
286 | .clk = "scif2", | 289 | .clk = "scif2", |
287 | }, { | 290 | }, { |
288 | .mapbase = 0xffe30000, | 291 | .mapbase = 0xffe30000, |
289 | .flags = UPF_BOOT_AUTOCONF, | 292 | .flags = UPF_BOOT_AUTOCONF, |
293 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_CKE1, | ||
290 | .type = PORT_SCIF, | 294 | .type = PORT_SCIF, |
291 | .irqs = { 83, 83, 83, 83 }, | 295 | .irqs = { 83, 83, 83, 83 }, |
292 | .clk = "scif3", | 296 | .clk = "scif3", |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c index c18f7d09281b..307777cf04cc 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c | |||
@@ -280,6 +280,7 @@ static struct plat_sci_port sci_platform_data[] = { | |||
280 | { | 280 | { |
281 | .mapbase = 0xffe00000, | 281 | .mapbase = 0xffe00000, |
282 | .flags = UPF_BOOT_AUTOCONF, | 282 | .flags = UPF_BOOT_AUTOCONF, |
283 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
283 | .type = PORT_SCIF, | 284 | .type = PORT_SCIF, |
284 | .irqs = { 80, 80, 80, 80 }, | 285 | .irqs = { 80, 80, 80, 80 }, |
285 | .clk = "scif0", | 286 | .clk = "scif0", |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index ea524a2da3e4..ffc69bc95932 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |||
@@ -305,25 +305,25 @@ static struct plat_sci_port sci_platform_data[] = { | |||
305 | { | 305 | { |
306 | .mapbase = 0xffe00000, | 306 | .mapbase = 0xffe00000, |
307 | .flags = UPF_BOOT_AUTOCONF, | 307 | .flags = UPF_BOOT_AUTOCONF, |
308 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
308 | .type = PORT_SCIF, | 309 | .type = PORT_SCIF, |
309 | .irqs = { 80, 80, 80, 80 }, | 310 | .irqs = { 80, 80, 80, 80 }, |
310 | .clk = "scif0", | 311 | .clk = "scif0", |
311 | }, | 312 | }, { |
312 | { | ||
313 | .mapbase = 0xffe10000, | 313 | .mapbase = 0xffe10000, |
314 | .flags = UPF_BOOT_AUTOCONF, | 314 | .flags = UPF_BOOT_AUTOCONF, |
315 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
315 | .type = PORT_SCIF, | 316 | .type = PORT_SCIF, |
316 | .irqs = { 81, 81, 81, 81 }, | 317 | .irqs = { 81, 81, 81, 81 }, |
317 | .clk = "scif1", | 318 | .clk = "scif1", |
318 | }, | 319 | }, { |
319 | { | ||
320 | .mapbase = 0xffe20000, | 320 | .mapbase = 0xffe20000, |
321 | .flags = UPF_BOOT_AUTOCONF, | 321 | .flags = UPF_BOOT_AUTOCONF, |
322 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
322 | .type = PORT_SCIF, | 323 | .type = PORT_SCIF, |
323 | .irqs = { 82, 82, 82, 82 }, | 324 | .irqs = { 82, 82, 82, 82 }, |
324 | .clk = "scif2", | 325 | .clk = "scif2", |
325 | }, | 326 | }, { |
326 | { | ||
327 | .flags = 0, | 327 | .flags = 0, |
328 | } | 328 | } |
329 | }; | 329 | }; |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c index e1bb80b2a27b..6ce331a8f1bd 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c | |||
@@ -321,36 +321,42 @@ static struct plat_sci_port sci_platform_data[] = { | |||
321 | { | 321 | { |
322 | .mapbase = 0xffe00000, | 322 | .mapbase = 0xffe00000, |
323 | .flags = UPF_BOOT_AUTOCONF, | 323 | .flags = UPF_BOOT_AUTOCONF, |
324 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
324 | .type = PORT_SCIF, | 325 | .type = PORT_SCIF, |
325 | .irqs = { 80, 80, 80, 80 }, | 326 | .irqs = { 80, 80, 80, 80 }, |
326 | .clk = "scif0", | 327 | .clk = "scif0", |
327 | },{ | 328 | },{ |
328 | .mapbase = 0xffe10000, | 329 | .mapbase = 0xffe10000, |
329 | .flags = UPF_BOOT_AUTOCONF, | 330 | .flags = UPF_BOOT_AUTOCONF, |
331 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
330 | .type = PORT_SCIF, | 332 | .type = PORT_SCIF, |
331 | .irqs = { 81, 81, 81, 81 }, | 333 | .irqs = { 81, 81, 81, 81 }, |
332 | .clk = "scif1", | 334 | .clk = "scif1", |
333 | },{ | 335 | },{ |
334 | .mapbase = 0xffe20000, | 336 | .mapbase = 0xffe20000, |
335 | .flags = UPF_BOOT_AUTOCONF, | 337 | .flags = UPF_BOOT_AUTOCONF, |
338 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
336 | .type = PORT_SCIF, | 339 | .type = PORT_SCIF, |
337 | .irqs = { 82, 82, 82, 82 }, | 340 | .irqs = { 82, 82, 82, 82 }, |
338 | .clk = "scif2", | 341 | .clk = "scif2", |
339 | },{ | 342 | },{ |
340 | .mapbase = 0xa4e30000, | 343 | .mapbase = 0xa4e30000, |
341 | .flags = UPF_BOOT_AUTOCONF, | 344 | .flags = UPF_BOOT_AUTOCONF, |
345 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
342 | .type = PORT_SCIFA, | 346 | .type = PORT_SCIFA, |
343 | .irqs = { 56, 56, 56, 56 }, | 347 | .irqs = { 56, 56, 56, 56 }, |
344 | .clk = "scif3", | 348 | .clk = "scif3", |
345 | },{ | 349 | },{ |
346 | .mapbase = 0xa4e40000, | 350 | .mapbase = 0xa4e40000, |
347 | .flags = UPF_BOOT_AUTOCONF, | 351 | .flags = UPF_BOOT_AUTOCONF, |
352 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
348 | .type = PORT_SCIFA, | 353 | .type = PORT_SCIFA, |
349 | .irqs = { 88, 88, 88, 88 }, | 354 | .irqs = { 88, 88, 88, 88 }, |
350 | .clk = "scif4", | 355 | .clk = "scif4", |
351 | },{ | 356 | },{ |
352 | .mapbase = 0xa4e50000, | 357 | .mapbase = 0xa4e50000, |
353 | .flags = UPF_BOOT_AUTOCONF, | 358 | .flags = UPF_BOOT_AUTOCONF, |
359 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
354 | .type = PORT_SCIFA, | 360 | .type = PORT_SCIFA, |
355 | .irqs = { 109, 109, 109, 109 }, | 361 | .irqs = { 109, 109, 109, 109 }, |
356 | .clk = "scif5", | 362 | .clk = "scif5", |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c index e5ac9eb11c63..4bf03c1ec8d6 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c | |||
@@ -28,36 +28,42 @@ static struct plat_sci_port sci_platform_data[] = { | |||
28 | { | 28 | { |
29 | .mapbase = 0xffe00000, | 29 | .mapbase = 0xffe00000, |
30 | .flags = UPF_BOOT_AUTOCONF, | 30 | .flags = UPF_BOOT_AUTOCONF, |
31 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
31 | .type = PORT_SCIF, | 32 | .type = PORT_SCIF, |
32 | .irqs = { 80, 80, 80, 80 }, | 33 | .irqs = { 80, 80, 80, 80 }, |
33 | .clk = "scif0", | 34 | .clk = "scif0", |
34 | }, { | 35 | }, { |
35 | .mapbase = 0xffe10000, | 36 | .mapbase = 0xffe10000, |
36 | .flags = UPF_BOOT_AUTOCONF, | 37 | .flags = UPF_BOOT_AUTOCONF, |
38 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
37 | .type = PORT_SCIF, | 39 | .type = PORT_SCIF, |
38 | .irqs = { 81, 81, 81, 81 }, | 40 | .irqs = { 81, 81, 81, 81 }, |
39 | .clk = "scif1", | 41 | .clk = "scif1", |
40 | }, { | 42 | }, { |
41 | .mapbase = 0xffe20000, | 43 | .mapbase = 0xffe20000, |
42 | .flags = UPF_BOOT_AUTOCONF, | 44 | .flags = UPF_BOOT_AUTOCONF, |
45 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
43 | .type = PORT_SCIF, | 46 | .type = PORT_SCIF, |
44 | .irqs = { 82, 82, 82, 82 }, | 47 | .irqs = { 82, 82, 82, 82 }, |
45 | .clk = "scif2", | 48 | .clk = "scif2", |
46 | }, { | 49 | }, { |
47 | .mapbase = 0xa4e30000, | 50 | .mapbase = 0xa4e30000, |
48 | .flags = UPF_BOOT_AUTOCONF, | 51 | .flags = UPF_BOOT_AUTOCONF, |
52 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
49 | .type = PORT_SCIFA, | 53 | .type = PORT_SCIFA, |
50 | .irqs = { 56, 56, 56, 56 }, | 54 | .irqs = { 56, 56, 56, 56 }, |
51 | .clk = "scif3", | 55 | .clk = "scif3", |
52 | }, { | 56 | }, { |
53 | .mapbase = 0xa4e40000, | 57 | .mapbase = 0xa4e40000, |
54 | .flags = UPF_BOOT_AUTOCONF, | 58 | .flags = UPF_BOOT_AUTOCONF, |
59 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
55 | .type = PORT_SCIFA, | 60 | .type = PORT_SCIFA, |
56 | .irqs = { 88, 88, 88, 88 }, | 61 | .irqs = { 88, 88, 88, 88 }, |
57 | .clk = "scif4", | 62 | .clk = "scif4", |
58 | }, { | 63 | }, { |
59 | .mapbase = 0xa4e50000, | 64 | .mapbase = 0xa4e50000, |
60 | .flags = UPF_BOOT_AUTOCONF, | 65 | .flags = UPF_BOOT_AUTOCONF, |
66 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
61 | .type = PORT_SCIFA, | 67 | .type = PORT_SCIFA, |
62 | .irqs = { 109, 109, 109, 109 }, | 68 | .irqs = { 109, 109, 109, 109 }, |
63 | .clk = "scif5", | 69 | .clk = "scif5", |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7763.c b/arch/sh/kernel/cpu/sh4a/setup-sh7763.c index f1e0c0d36da7..76339c6da01e 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7763.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7763.c | |||
@@ -40,16 +40,19 @@ static struct plat_sci_port sci_platform_data[] = { | |||
40 | { | 40 | { |
41 | .mapbase = 0xffe00000, | 41 | .mapbase = 0xffe00000, |
42 | .flags = UPF_BOOT_AUTOCONF, | 42 | .flags = UPF_BOOT_AUTOCONF, |
43 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
43 | .type = PORT_SCIF, | 44 | .type = PORT_SCIF, |
44 | .irqs = { 40, 40, 40, 40 }, | 45 | .irqs = { 40, 40, 40, 40 }, |
45 | }, { | 46 | }, { |
46 | .mapbase = 0xffe08000, | 47 | .mapbase = 0xffe08000, |
47 | .flags = UPF_BOOT_AUTOCONF, | 48 | .flags = UPF_BOOT_AUTOCONF, |
49 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
48 | .type = PORT_SCIF, | 50 | .type = PORT_SCIF, |
49 | .irqs = { 76, 76, 76, 76 }, | 51 | .irqs = { 76, 76, 76, 76 }, |
50 | }, { | 52 | }, { |
51 | .mapbase = 0xffe10000, | 53 | .mapbase = 0xffe10000, |
52 | .flags = UPF_BOOT_AUTOCONF, | 54 | .flags = UPF_BOOT_AUTOCONF, |
55 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
53 | .type = PORT_SCIF, | 56 | .type = PORT_SCIF, |
54 | .irqs = { 104, 104, 104, 104 }, | 57 | .irqs = { 104, 104, 104, 104 }, |
55 | }, { | 58 | }, { |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7770.c b/arch/sh/kernel/cpu/sh4a/setup-sh7770.c index 1e86209db284..07a41ff20504 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7770.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7770.c | |||
@@ -18,51 +18,61 @@ static struct plat_sci_port sci_platform_data[] = { | |||
18 | { | 18 | { |
19 | .mapbase = 0xff923000, | 19 | .mapbase = 0xff923000, |
20 | .flags = UPF_BOOT_AUTOCONF, | 20 | .flags = UPF_BOOT_AUTOCONF, |
21 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_TOIE, | ||
21 | .type = PORT_SCIF, | 22 | .type = PORT_SCIF, |
22 | .irqs = { 61, 61, 61, 61 }, | 23 | .irqs = { 61, 61, 61, 61 }, |
23 | }, { | 24 | }, { |
24 | .mapbase = 0xff924000, | 25 | .mapbase = 0xff924000, |
25 | .flags = UPF_BOOT_AUTOCONF, | 26 | .flags = UPF_BOOT_AUTOCONF, |
27 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_TOIE, | ||
26 | .type = PORT_SCIF, | 28 | .type = PORT_SCIF, |
27 | .irqs = { 62, 62, 62, 62 }, | 29 | .irqs = { 62, 62, 62, 62 }, |
28 | }, { | 30 | }, { |
29 | .mapbase = 0xff925000, | 31 | .mapbase = 0xff925000, |
30 | .flags = UPF_BOOT_AUTOCONF, | 32 | .flags = UPF_BOOT_AUTOCONF, |
33 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_TOIE, | ||
31 | .type = PORT_SCIF, | 34 | .type = PORT_SCIF, |
32 | .irqs = { 63, 63, 63, 63 }, | 35 | .irqs = { 63, 63, 63, 63 }, |
33 | }, { | 36 | }, { |
34 | .mapbase = 0xff926000, | 37 | .mapbase = 0xff926000, |
35 | .flags = UPF_BOOT_AUTOCONF, | 38 | .flags = UPF_BOOT_AUTOCONF, |
39 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_TOIE, | ||
36 | .type = PORT_SCIF, | 40 | .type = PORT_SCIF, |
37 | .irqs = { 64, 64, 64, 64 }, | 41 | .irqs = { 64, 64, 64, 64 }, |
38 | }, { | 42 | }, { |
39 | .mapbase = 0xff927000, | 43 | .mapbase = 0xff927000, |
40 | .flags = UPF_BOOT_AUTOCONF, | 44 | .flags = UPF_BOOT_AUTOCONF, |
45 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_TOIE, | ||
41 | .type = PORT_SCIF, | 46 | .type = PORT_SCIF, |
42 | .irqs = { 65, 65, 65, 65 }, | 47 | .irqs = { 65, 65, 65, 65 }, |
43 | }, { | 48 | }, { |
44 | .mapbase = 0xff928000, | 49 | .mapbase = 0xff928000, |
45 | .flags = UPF_BOOT_AUTOCONF, | 50 | .flags = UPF_BOOT_AUTOCONF, |
51 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_TOIE, | ||
46 | .type = PORT_SCIF, | 52 | .type = PORT_SCIF, |
47 | .irqs = { 66, 66, 66, 66 }, | 53 | .irqs = { 66, 66, 66, 66 }, |
48 | }, { | 54 | }, { |
49 | .mapbase = 0xff929000, | 55 | .mapbase = 0xff929000, |
50 | .flags = UPF_BOOT_AUTOCONF, | 56 | .flags = UPF_BOOT_AUTOCONF, |
57 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_TOIE, | ||
51 | .type = PORT_SCIF, | 58 | .type = PORT_SCIF, |
52 | .irqs = { 67, 67, 67, 67 }, | 59 | .irqs = { 67, 67, 67, 67 }, |
53 | }, { | 60 | }, { |
54 | .mapbase = 0xff92a000, | 61 | .mapbase = 0xff92a000, |
55 | .flags = UPF_BOOT_AUTOCONF, | 62 | .flags = UPF_BOOT_AUTOCONF, |
63 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_TOIE, | ||
56 | .type = PORT_SCIF, | 64 | .type = PORT_SCIF, |
57 | .irqs = { 68, 68, 68, 68 }, | 65 | .irqs = { 68, 68, 68, 68 }, |
58 | }, { | 66 | }, { |
59 | .mapbase = 0xff92b000, | 67 | .mapbase = 0xff92b000, |
60 | .flags = UPF_BOOT_AUTOCONF, | 68 | .flags = UPF_BOOT_AUTOCONF, |
69 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_TOIE, | ||
61 | .type = PORT_SCIF, | 70 | .type = PORT_SCIF, |
62 | .irqs = { 69, 69, 69, 69 }, | 71 | .irqs = { 69, 69, 69, 69 }, |
63 | }, { | 72 | }, { |
64 | .mapbase = 0xff92c000, | 73 | .mapbase = 0xff92c000, |
65 | .flags = UPF_BOOT_AUTOCONF, | 74 | .flags = UPF_BOOT_AUTOCONF, |
75 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_TOIE, | ||
66 | .type = PORT_SCIF, | 76 | .type = PORT_SCIF, |
67 | .irqs = { 70, 70, 70, 70 }, | 77 | .irqs = { 70, 70, 70, 70 }, |
68 | }, { | 78 | }, { |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c index 715e05b431e5..2b355b67a33d 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c | |||
@@ -220,11 +220,13 @@ static struct plat_sci_port sci_platform_data[] = { | |||
220 | { | 220 | { |
221 | .mapbase = 0xffe00000, | 221 | .mapbase = 0xffe00000, |
222 | .flags = UPF_BOOT_AUTOCONF, | 222 | .flags = UPF_BOOT_AUTOCONF, |
223 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
223 | .type = PORT_SCIF, | 224 | .type = PORT_SCIF, |
224 | .irqs = { 40, 40, 40, 40 }, | 225 | .irqs = { 40, 40, 40, 40 }, |
225 | }, { | 226 | }, { |
226 | .mapbase = 0xffe10000, | 227 | .mapbase = 0xffe10000, |
227 | .flags = UPF_BOOT_AUTOCONF, | 228 | .flags = UPF_BOOT_AUTOCONF, |
229 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
228 | .type = PORT_SCIF, | 230 | .type = PORT_SCIF, |
229 | .irqs = { 76, 76, 76, 76 }, | 231 | .irqs = { 76, 76, 76, 76 }, |
230 | }, { | 232 | }, { |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c index af561402570b..acd4b1d1b813 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c | |||
@@ -202,36 +202,42 @@ static struct plat_sci_port sci_platform_data[] = { | |||
202 | { | 202 | { |
203 | .mapbase = 0xffea0000, | 203 | .mapbase = 0xffea0000, |
204 | .flags = UPF_BOOT_AUTOCONF, | 204 | .flags = UPF_BOOT_AUTOCONF, |
205 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
205 | .type = PORT_SCIF, | 206 | .type = PORT_SCIF, |
206 | .irqs = { 40, 40, 40, 40 }, | 207 | .irqs = { 40, 40, 40, 40 }, |
207 | .clk = "scif_fck", | 208 | .clk = "scif_fck", |
208 | }, { | 209 | }, { |
209 | .mapbase = 0xffeb0000, | 210 | .mapbase = 0xffeb0000, |
210 | .flags = UPF_BOOT_AUTOCONF, | 211 | .flags = UPF_BOOT_AUTOCONF, |
212 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
211 | .type = PORT_SCIF, | 213 | .type = PORT_SCIF, |
212 | .irqs = { 44, 44, 44, 44 }, | 214 | .irqs = { 44, 44, 44, 44 }, |
213 | .clk = "scif_fck", | 215 | .clk = "scif_fck", |
214 | }, { | 216 | }, { |
215 | .mapbase = 0xffec0000, | 217 | .mapbase = 0xffec0000, |
216 | .flags = UPF_BOOT_AUTOCONF, | 218 | .flags = UPF_BOOT_AUTOCONF, |
219 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
217 | .type = PORT_SCIF, | 220 | .type = PORT_SCIF, |
218 | .irqs = { 60, 60, 60, 60 }, | 221 | .irqs = { 60, 60, 60, 60 }, |
219 | .clk = "scif_fck", | 222 | .clk = "scif_fck", |
220 | }, { | 223 | }, { |
221 | .mapbase = 0xffed0000, | 224 | .mapbase = 0xffed0000, |
222 | .flags = UPF_BOOT_AUTOCONF, | 225 | .flags = UPF_BOOT_AUTOCONF, |
226 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
223 | .type = PORT_SCIF, | 227 | .type = PORT_SCIF, |
224 | .irqs = { 61, 61, 61, 61 }, | 228 | .irqs = { 61, 61, 61, 61 }, |
225 | .clk = "scif_fck", | 229 | .clk = "scif_fck", |
226 | }, { | 230 | }, { |
227 | .mapbase = 0xffee0000, | 231 | .mapbase = 0xffee0000, |
228 | .flags = UPF_BOOT_AUTOCONF, | 232 | .flags = UPF_BOOT_AUTOCONF, |
233 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
229 | .type = PORT_SCIF, | 234 | .type = PORT_SCIF, |
230 | .irqs = { 62, 62, 62, 62 }, | 235 | .irqs = { 62, 62, 62, 62 }, |
231 | .clk = "scif_fck", | 236 | .clk = "scif_fck", |
232 | }, { | 237 | }, { |
233 | .mapbase = 0xffef0000, | 238 | .mapbase = 0xffef0000, |
234 | .flags = UPF_BOOT_AUTOCONF, | 239 | .flags = UPF_BOOT_AUTOCONF, |
240 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
235 | .type = PORT_SCIF, | 241 | .type = PORT_SCIF, |
236 | .irqs = { 63, 63, 63, 63 }, | 242 | .irqs = { 63, 63, 63, 63 }, |
237 | .clk = "scif_fck", | 243 | .clk = "scif_fck", |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7786.c b/arch/sh/kernel/cpu/sh4a/setup-sh7786.c index b70049470a0b..347ce88de570 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7786.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7786.c | |||
@@ -27,6 +27,7 @@ static struct plat_sci_port sci_platform_data[] = { | |||
27 | { | 27 | { |
28 | .mapbase = 0xffea0000, | 28 | .mapbase = 0xffea0000, |
29 | .flags = UPF_BOOT_AUTOCONF, | 29 | .flags = UPF_BOOT_AUTOCONF, |
30 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
30 | .type = PORT_SCIF, | 31 | .type = PORT_SCIF, |
31 | .irqs = { 40, 41, 43, 42 }, | 32 | .irqs = { 40, 41, 43, 42 }, |
32 | }, | 33 | }, |
@@ -36,26 +37,31 @@ static struct plat_sci_port sci_platform_data[] = { | |||
36 | { | 37 | { |
37 | .mapbase = 0xffeb0000, | 38 | .mapbase = 0xffeb0000, |
38 | .flags = UPF_BOOT_AUTOCONF, | 39 | .flags = UPF_BOOT_AUTOCONF, |
40 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
39 | .type = PORT_SCIF, | 41 | .type = PORT_SCIF, |
40 | .irqs = { 44, 44, 44, 44 }, | 42 | .irqs = { 44, 44, 44, 44 }, |
41 | }, { | 43 | }, { |
42 | .mapbase = 0xffec0000, | 44 | .mapbase = 0xffec0000, |
43 | .flags = UPF_BOOT_AUTOCONF, | 45 | .flags = UPF_BOOT_AUTOCONF, |
46 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
44 | .type = PORT_SCIF, | 47 | .type = PORT_SCIF, |
45 | .irqs = { 50, 50, 50, 50 }, | 48 | .irqs = { 50, 50, 50, 50 }, |
46 | }, { | 49 | }, { |
47 | .mapbase = 0xffed0000, | 50 | .mapbase = 0xffed0000, |
48 | .flags = UPF_BOOT_AUTOCONF, | 51 | .flags = UPF_BOOT_AUTOCONF, |
52 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
49 | .type = PORT_SCIF, | 53 | .type = PORT_SCIF, |
50 | .irqs = { 51, 51, 51, 51 }, | 54 | .irqs = { 51, 51, 51, 51 }, |
51 | }, { | 55 | }, { |
52 | .mapbase = 0xffee0000, | 56 | .mapbase = 0xffee0000, |
53 | .flags = UPF_BOOT_AUTOCONF, | 57 | .flags = UPF_BOOT_AUTOCONF, |
58 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
54 | .type = PORT_SCIF, | 59 | .type = PORT_SCIF, |
55 | .irqs = { 52, 52, 52, 52 }, | 60 | .irqs = { 52, 52, 52, 52 }, |
56 | }, { | 61 | }, { |
57 | .mapbase = 0xffef0000, | 62 | .mapbase = 0xffef0000, |
58 | .flags = UPF_BOOT_AUTOCONF, | 63 | .flags = UPF_BOOT_AUTOCONF, |
64 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_CKE1, | ||
59 | .type = PORT_SCIF, | 65 | .type = PORT_SCIF, |
60 | .irqs = { 53, 53, 53, 53 }, | 66 | .irqs = { 53, 53, 53, 53 }, |
61 | }, { | 67 | }, { |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-shx3.c b/arch/sh/kernel/cpu/sh4a/setup-shx3.c index 53c65fd9ccef..eef94934f542 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-shx3.c +++ b/arch/sh/kernel/cpu/sh4a/setup-shx3.c | |||
@@ -19,21 +19,25 @@ static struct plat_sci_port sci_platform_data[] = { | |||
19 | { | 19 | { |
20 | .mapbase = 0xffc30000, | 20 | .mapbase = 0xffc30000, |
21 | .flags = UPF_BOOT_AUTOCONF, | 21 | .flags = UPF_BOOT_AUTOCONF, |
22 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
22 | .type = PORT_SCIF, | 23 | .type = PORT_SCIF, |
23 | .irqs = { 40, 41, 43, 42 }, | 24 | .irqs = { 40, 41, 43, 42 }, |
24 | }, { | 25 | }, { |
25 | .mapbase = 0xffc40000, | 26 | .mapbase = 0xffc40000, |
26 | .flags = UPF_BOOT_AUTOCONF, | 27 | .flags = UPF_BOOT_AUTOCONF, |
28 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
27 | .type = PORT_SCIF, | 29 | .type = PORT_SCIF, |
28 | .irqs = { 44, 45, 47, 46 }, | 30 | .irqs = { 44, 45, 47, 46 }, |
29 | }, { | 31 | }, { |
30 | .mapbase = 0xffc50000, | 32 | .mapbase = 0xffc50000, |
31 | .flags = UPF_BOOT_AUTOCONF, | 33 | .flags = UPF_BOOT_AUTOCONF, |
34 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
32 | .type = PORT_SCIF, | 35 | .type = PORT_SCIF, |
33 | .irqs = { 48, 49, 51, 50 }, | 36 | .irqs = { 48, 49, 51, 50 }, |
34 | }, { | 37 | }, { |
35 | .mapbase = 0xffc60000, | 38 | .mapbase = 0xffc60000, |
36 | .flags = UPF_BOOT_AUTOCONF, | 39 | .flags = UPF_BOOT_AUTOCONF, |
40 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
37 | .type = PORT_SCIF, | 41 | .type = PORT_SCIF, |
38 | .irqs = { 52, 53, 55, 54 }, | 42 | .irqs = { 52, 53, 55, 54 }, |
39 | }, { | 43 | }, { |
diff --git a/arch/sh/kernel/cpu/sh5/setup-sh5.c b/arch/sh/kernel/cpu/sh5/setup-sh5.c index f5ff1ac57fc2..26fa10c560de 100644 --- a/arch/sh/kernel/cpu/sh5/setup-sh5.c +++ b/arch/sh/kernel/cpu/sh5/setup-sh5.c | |||
@@ -20,6 +20,7 @@ static struct plat_sci_port sci_platform_data[] = { | |||
20 | { | 20 | { |
21 | .mapbase = PHYS_PERIPHERAL_BLOCK + 0x01030000, | 21 | .mapbase = PHYS_PERIPHERAL_BLOCK + 0x01030000, |
22 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, | 22 | .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, |
23 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | ||
23 | .type = PORT_SCIF, | 24 | .type = PORT_SCIF, |
24 | .irqs = { 39, 40, 42, 0 }, | 25 | .irqs = { 39, 40, 42, 0 }, |
25 | }, { | 26 | }, { |