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 extern void prom_putchar(char);
16 early_console_write(struct console *con, const char *s, unsigned n)
26 static struct console early_console __initdata = {
28 .write = early_console_write,
29 .flags = CON_PRINTBUFFER | CON_BOOT,
33 static int early_console_initialized __initdata;
35 void __init setup_early_printk(void)
37 if (early_console_initialized)
39 early_console_initialized = 1;
41 register_console(&early_console);