diff options
-rw-r--r-- | arch/ppc/boot/simple/misc-embedded.c | 4 | ||||
-rw-r--r-- | arch/ppc/boot/simple/uartlite_tty.c | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/arch/ppc/boot/simple/misc-embedded.c b/arch/ppc/boot/simple/misc-embedded.c index 8a08ad397ed5..d5a00eb0e4eb 100644 --- a/arch/ppc/boot/simple/misc-embedded.c +++ b/arch/ppc/boot/simple/misc-embedded.c | |||
@@ -89,7 +89,9 @@ load_kernel(unsigned long load_addr, int num_words, unsigned long cksum, bd_t *b | |||
89 | * initialize the serial console port. | 89 | * initialize the serial console port. |
90 | */ | 90 | */ |
91 | embed_config(&bp); | 91 | embed_config(&bp); |
92 | #if defined(CONFIG_SERIAL_CPM_CONSOLE) || defined(CONFIG_SERIAL_8250_CONSOLE) | 92 | #if defined(CONFIG_SERIAL_CPM_CONSOLE) || \ |
93 | defined(CONFIG_SERIAL_8250_CONSOLE) || \ | ||
94 | defined(CONFIG_SERIAL_UARTLITE_CONSOLE) | ||
93 | com_port = serial_init(0, bp); | 95 | com_port = serial_init(0, bp); |
94 | #endif | 96 | #endif |
95 | 97 | ||
diff --git a/arch/ppc/boot/simple/uartlite_tty.c b/arch/ppc/boot/simple/uartlite_tty.c index 0eae1eab38d4..ca1743e3e912 100644 --- a/arch/ppc/boot/simple/uartlite_tty.c +++ b/arch/ppc/boot/simple/uartlite_tty.c | |||
@@ -16,6 +16,14 @@ | |||
16 | 16 | ||
17 | #define UARTLITE_BASEADDR ((void*)(XPAR_UARTLITE_0_BASEADDR)) | 17 | #define UARTLITE_BASEADDR ((void*)(XPAR_UARTLITE_0_BASEADDR)) |
18 | 18 | ||
19 | unsigned long | ||
20 | serial_init(int chan, void *ignored) | ||
21 | { | ||
22 | /* Clear the RX FIFO */ | ||
23 | out_be32(UARTLITE_BASEADDR + 0x0C, 0x2); | ||
24 | return 0; | ||
25 | } | ||
26 | |||
19 | void | 27 | void |
20 | serial_putc(unsigned long com_port, unsigned char c) | 28 | serial_putc(unsigned long com_port, unsigned char c) |
21 | { | 29 | { |