diff options
Diffstat (limited to 'arch/ppc/boot/simple/uartlite_tty.c')
-rw-r--r-- | arch/ppc/boot/simple/uartlite_tty.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/ppc/boot/simple/uartlite_tty.c b/arch/ppc/boot/simple/uartlite_tty.c index 0eae1eab38d..ca1743e3e91 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 | { |