From: Mike Frysinger Date: Sun, 12 Oct 2008 01:52:17 +0000 (-0400) Subject: Blackfin: allow serial console to be disabled X-Git-Tag: v2009.03-rc1~147^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7633903bff432ec7b27905dce7396958553f2be6;p=oweals%2Fu-boot.git Blackfin: allow serial console to be disabled Some devices have no UART device pulled out, so allow people to disable the driver completely in favor of other methods (like JTAG-console). Signed-off-by: Mike Frysinger --- diff --git a/cpu/blackfin/serial.c b/cpu/blackfin/serial.c index 0d6f377c05..42534bd9b9 100644 --- a/cpu/blackfin/serial.c +++ b/cpu/blackfin/serial.c @@ -29,6 +29,8 @@ #include #include +#ifdef CONFIG_UART_CONSOLE + #if defined(UART_LSR) && (CONFIG_UART_CONSOLE != 0) # error CONFIG_UART_CONSOLE must be 0 on parts with only one UART #endif @@ -170,3 +172,5 @@ void serial_puts(const char *s) while (*s) serial_putc(*s++); } + +#endif diff --git a/cpu/blackfin/serial.h b/cpu/blackfin/serial.h index 90fceecb8e..f671096768 100644 --- a/cpu/blackfin/serial.h +++ b/cpu/blackfin/serial.h @@ -14,6 +14,10 @@ #include #include +#ifndef CONFIG_UART_CONSOLE +# define CONFIG_UART_CONSOLE 0 +#endif + #ifdef CONFIG_DEBUG_EARLY_SERIAL # define BFIN_DEBUG_EARLY_SERIAL 1 #else