Peter Horton | e87ddde | 2006-02-12 17:10:25 +0000 | [diff] [blame] | 1 | /* |
2 | * (C) P. Horton 2006 | ||||
3 | */ | ||||
4 | |||||
Peter Horton | e87ddde | 2006-02-12 17:10:25 +0000 | [diff] [blame] | 5 | #include <linux/init.h> |
6 | #include <linux/kernel.h> | ||||
7 | #include <linux/console.h> | ||||
8 | #include <linux/serial_reg.h> | ||||
9 | #include <asm/addrspace.h> | ||||
10 | #include <asm/mach-cobalt/cobalt.h> | ||||
11 | |||||
12 | static void putchar(int c) | ||||
13 | { | ||||
14 | if(c == '\n') | ||||
15 | putchar('\r'); | ||||
16 | |||||
17 | while(!(COBALT_UART[UART_LSR] & UART_LSR_THRE)) | ||||
18 | ; | ||||
19 | |||||
20 | COBALT_UART[UART_TX] = c; | ||||
21 | } |