Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] Cobalt: Fix early printk

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Yoichi Yuasa and committed by
Ralf Baechle
0a22e0d4 57a2050c

+2 -12
+1 -1
arch/mips/Kconfig
··· 167 167 select IRQ_CPU 168 168 select MIPS_GT64111 169 169 select SYS_HAS_CPU_NEVADA 170 + select SYS_HAS_EARLY_PRINTK 170 171 select SYS_SUPPORTS_32BIT_KERNEL 171 172 select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL 172 173 select SYS_SUPPORTS_LITTLE_ENDIAN ··· 838 837 source "arch/mips/tx4938/Kconfig" 839 838 source "arch/mips/vr41xx/Kconfig" 840 839 source "arch/mips/philips/pnx8550/common/Kconfig" 841 - source "arch/mips/cobalt/Kconfig" 842 840 843 841 endmenu 844 842
-7
arch/mips/cobalt/Kconfig
··· 1 - config EARLY_PRINTK 2 - bool "Early console support" 3 - depends on MIPS_COBALT 4 - help 5 - Provide early console support by direct access to the 6 - on board UART. The UART must have been previously 7 - initialised by the boot loader.
+1 -4
arch/mips/cobalt/console.c
··· 9 9 #include <asm/addrspace.h> 10 10 #include <asm/mach-cobalt/cobalt.h> 11 11 12 - static void putchar(int c) 12 + void prom_putchar(char c) 13 13 { 14 - if(c == '\n') 15 - putchar('\r'); 16 - 17 14 while(!(COBALT_UART[UART_LSR] & UART_LSR_THRE)) 18 15 ; 19 16