projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Blackfin: allow serial console to be disabled
[platform/kernel/u-boot.git]
/
cpu
/
blackfin
/
serial.c
diff --git
a/cpu/blackfin/serial.c
b/cpu/blackfin/serial.c
index
0d6f377
..
42534bd
100644
(file)
--- a/
cpu/blackfin/serial.c
+++ b/
cpu/blackfin/serial.c
@@
-29,6
+29,8
@@
#include <asm/blackfin.h>
#include <asm/mach-common/bits/uart.h>
#include <asm/blackfin.h>
#include <asm/mach-common/bits/uart.h>
+#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
#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++);
}
while (*s)
serial_putc(*s++);
}
+
+#endif