Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a22e0d4 authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle
Browse files

[MIPS] Cobalt: Fix early printk

parent 57a2050c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -167,6 +167,7 @@ config MIPS_COBALT
	select IRQ_CPU
	select MIPS_GT64111
	select SYS_HAS_CPU_NEVADA
	select SYS_HAS_EARLY_PRINTK
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
	select SYS_SUPPORTS_LITTLE_ENDIAN
@@ -837,7 +838,6 @@ source "arch/mips/tx4927/Kconfig"
source "arch/mips/tx4938/Kconfig"
source "arch/mips/vr41xx/Kconfig"
source "arch/mips/philips/pnx8550/common/Kconfig"
source "arch/mips/cobalt/Kconfig"

endmenu

arch/mips/cobalt/Kconfig

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
config EARLY_PRINTK
	bool "Early console support"
	depends on MIPS_COBALT
	help
	  Provide early console support by direct access to the
	  on board UART. The UART must have been previously
	  initialised by the boot loader.
+1 −4
Original line number Diff line number Diff line
@@ -9,11 +9,8 @@
#include <asm/addrspace.h>
#include <asm/mach-cobalt/cobalt.h>

static void putchar(int c)
void prom_putchar(char c)
{
	if(c == '\n')
		putchar('\r');

	while(!(COBALT_UART[UART_LSR] & UART_LSR_THRE))
		;