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 | |
Yoichi Yuasa | 0a22e0d | 2007-03-02 12:42:33 +0900 | [diff] [blame^] | 12 | void prom_putchar(char c) |
Peter Horton | e87ddde | 2006-02-12 17:10:25 +0000 | [diff] [blame] | 13 | { |
Peter Horton | e87ddde | 2006-02-12 17:10:25 +0000 | [diff] [blame] | 14 | while(!(COBALT_UART[UART_LSR] & UART_LSR_THRE)) |
| 15 | ; |
| 16 | |
| 17 | COBALT_UART[UART_TX] = c; |
| 18 | } |