mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-05 02:50:44 +09:00
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 <vapier@gentoo.org>
This commit is contained in:
parent
36ea8e9ad1
commit
7633903bff
@ -29,6 +29,8 @@
|
|||||||
#include <asm/blackfin.h>
|
#include <asm/blackfin.h>
|
||||||
#include <asm/mach-common/bits/uart.h>
|
#include <asm/mach-common/bits/uart.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_UART_CONSOLE
|
||||||
|
|
||||||
#if defined(UART_LSR) && (CONFIG_UART_CONSOLE != 0)
|
#if defined(UART_LSR) && (CONFIG_UART_CONSOLE != 0)
|
||||||
# error CONFIG_UART_CONSOLE must be 0 on parts with only one UART
|
# error CONFIG_UART_CONSOLE must be 0 on parts with only one UART
|
||||||
#endif
|
#endif
|
||||||
@ -170,3 +172,5 @@ void serial_puts(const char *s)
|
|||||||
while (*s)
|
while (*s)
|
||||||
serial_putc(*s++);
|
serial_putc(*s++);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -14,6 +14,10 @@
|
|||||||
#include <asm/blackfin.h>
|
#include <asm/blackfin.h>
|
||||||
#include <asm/mach-common/bits/uart.h>
|
#include <asm/mach-common/bits/uart.h>
|
||||||
|
|
||||||
|
#ifndef CONFIG_UART_CONSOLE
|
||||||
|
# define CONFIG_UART_CONSOLE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_EARLY_SERIAL
|
#ifdef CONFIG_DEBUG_EARLY_SERIAL
|
||||||
# define BFIN_DEBUG_EARLY_SERIAL 1
|
# define BFIN_DEBUG_EARLY_SERIAL 1
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user