summaryrefslogtreecommitdiffstats
path: root/arch/ppc/boot/simple/uartlite_tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/boot/simple/uartlite_tty.c')
-rw-r--r--arch/ppc/boot/simple/uartlite_tty.c8
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 @@
#define UARTLITE_BASEADDR ((void*)(XPAR_UARTLITE_0_BASEADDR))
+unsigned long
+serial_init(int chan, void *ignored)
+{
+ /* Clear the RX FIFO */
+ out_be32(UARTLITE_BASEADDR + 0x0C, 0x2);
+ return 0;
+}
+
void
serial_putc(unsigned long com_port, unsigned char c)
{