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/kernel.h>
11 #include <linux/console.h>
12 #include <linux/printk.h>
13 #include <linux/init.h>
15 #include <asm/setup.h>
17 static void early_console_write(struct console
*con
, const char *s
, unsigned n
)
27 static struct console early_console_prom
= {
29 .write
= early_console_write
,
30 .flags
= CON_PRINTBUFFER
| CON_BOOT
,
34 void __init
setup_early_printk(void)
38 early_console
= &early_console_prom
;
40 register_console(&early_console_prom
);