Peter Horton | e87ddde | 2006-02-12 17:10:25 +0000 | [diff] [blame] | 1 | /* |
2 | * (C) P. Horton 2006 | ||||
3 | */ | ||||
Peter Horton | e87ddde | 2006-02-12 17:10:25 +0000 | [diff] [blame] | 4 | #include <linux/serial_reg.h> |
Yoichi Yuasa | cc50b67 | 2007-03-06 21:34:44 +0900 | [diff] [blame^] | 5 | |
Peter Horton | e87ddde | 2006-02-12 17:10:25 +0000 | [diff] [blame] | 6 | #include <asm/addrspace.h> |
Yoichi Yuasa | cc50b67 | 2007-03-06 21:34:44 +0900 | [diff] [blame^] | 7 | |
8 | #include <cobalt.h> | ||||
Peter Horton | e87ddde | 2006-02-12 17:10:25 +0000 | [diff] [blame] | 9 | |
Yoichi Yuasa | 0a22e0d | 2007-03-02 12:42:33 +0900 | [diff] [blame] | 10 | void prom_putchar(char c) |
Peter Horton | e87ddde | 2006-02-12 17:10:25 +0000 | [diff] [blame] | 11 | { |
Peter Horton | e87ddde | 2006-02-12 17:10:25 +0000 | [diff] [blame] | 12 | while(!(COBALT_UART[UART_LSR] & UART_LSR_THRE)) |
13 | ; | ||||
14 | |||||
15 | COBALT_UART[UART_TX] = c; | ||||
16 | } |