blob: 0485d51f72165169190bd1895526581fd4eb35c5 [file] [log] [blame]
Peter Hortone87ddde2006-02-12 17:10:25 +00001/*
2 * (C) P. Horton 2006
3 */
Peter Hortone87ddde2006-02-12 17:10:25 +00004#include <linux/serial_reg.h>
Yoichi Yuasacc50b672007-03-06 21:34:44 +09005
Peter Hortone87ddde2006-02-12 17:10:25 +00006#include <asm/addrspace.h>
Yoichi Yuasacc50b672007-03-06 21:34:44 +09007
8#include <cobalt.h>
Peter Hortone87ddde2006-02-12 17:10:25 +00009
Yoichi Yuasa0a22e0d2007-03-02 12:42:33 +090010void prom_putchar(char c)
Peter Hortone87ddde2006-02-12 17:10:25 +000011{
Peter Hortone87ddde2006-02-12 17:10:25 +000012 while(!(COBALT_UART[UART_LSR] & UART_LSR_THRE))
13 ;
14
15 COBALT_UART[UART_TX] = c;
16}