diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/mvme147/config.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/arch/m68k/mvme147/config.c b/arch/m68k/mvme147/config.c index 1bb3ce6634d3..e6a3b56c6481 100644 --- a/arch/m68k/mvme147/config.c +++ b/arch/m68k/mvme147/config.c | |||
@@ -168,49 +168,3 @@ int mvme147_set_clock_mmss (unsigned long nowtime) | |||
168 | { | 168 | { |
169 | return 0; | 169 | return 0; |
170 | } | 170 | } |
171 | |||
172 | /*------------------- Serial console stuff ------------------------*/ | ||
173 | |||
174 | static void scc_delay (void) | ||
175 | { | ||
176 | int n; | ||
177 | volatile int trash; | ||
178 | |||
179 | for (n = 0; n < 20; n++) | ||
180 | trash = n; | ||
181 | } | ||
182 | |||
183 | static void scc_write (char ch) | ||
184 | { | ||
185 | volatile char *p = (volatile char *)M147_SCC_A_ADDR; | ||
186 | |||
187 | do { | ||
188 | scc_delay(); | ||
189 | } | ||
190 | while (!(*p & 4)); | ||
191 | scc_delay(); | ||
192 | *p = 8; | ||
193 | scc_delay(); | ||
194 | *p = ch; | ||
195 | } | ||
196 | |||
197 | |||
198 | void m147_scc_write (struct console *co, const char *str, unsigned count) | ||
199 | { | ||
200 | unsigned long flags; | ||
201 | |||
202 | local_irq_save(flags); | ||
203 | |||
204 | while (count--) | ||
205 | { | ||
206 | if (*str == '\n') | ||
207 | scc_write ('\r'); | ||
208 | scc_write (*str++); | ||
209 | } | ||
210 | local_irq_restore(flags); | ||
211 | } | ||
212 | |||
213 | void mvme147_init_console_port (struct console *co, int cflag) | ||
214 | { | ||
215 | co->write = m147_scc_write; | ||
216 | } | ||