2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2002, 2003, 06, 07 Ralf Baechle (ralf@linux-mips.org)
7 * Copyright (C) 2007 MIPS Technologies, Inc.
8 * written by Ralf Baechle (ralf@linux-mips.org)
10 #include <linux/console.h>
11 #include <linux/init.h>
13 #include <asm/setup.h>
15 extern void prom_putchar(char);
18 early_console_write(struct console
*con
, const char *s
, unsigned n
)
28 static struct console early_console __initdata
= {
30 .write
= early_console_write
,
31 .flags
= CON_PRINTBUFFER
| CON_BOOT
,
35 static int early_console_initialized __initdata
;
37 void __init
setup_early_printk(void)
39 if (early_console_initialized
)
41 early_console_initialized
= 1;
43 register_console(&early_console
);