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>
12 static void putchar(int c)
17 while(!(COBALT_UART[UART_LSR] & UART_LSR_THRE))
20 COBALT_UART[UART_TX] = c;
23 static void cons_write(struct console *c, const char *s, unsigned n)
29 static struct console cons_info =
33 .flags = CON_PRINTBUFFER | CON_BOOT,
37 void __init cobalt_early_console(void)
39 register_console(&cons_info);
41 printk("Cobalt: early console registered\n");
44 void __init disable_early_printk(void)
46 unregister_console(&cons_info);