5 #include <linux/config.h>
6 #include <linux/init.h>
7 #include <linux/kernel.h>
8 #include <linux/console.h>
9 #include <linux/serial_reg.h>
10 #include <asm/addrspace.h>
11 #include <asm/mach-cobalt/cobalt.h>
13 static void putchar(int c)
18 while(!(COBALT_UART[UART_LSR] & UART_LSR_THRE))
21 COBALT_UART[UART_TX] = c;
24 static void cons_write(struct console *c, const char *s, unsigned n)
30 static struct console cons_info =
34 .flags = CON_PRINTBUFFER | CON_BOOT,
38 void __init cobalt_early_console(void)
40 register_console(&cons_info);
42 printk("Cobalt: early console registered\n");