get rid of the UART defines
[openwrt/staging/yousong.git] / target / linux / adm8668 / files / arch / mips / adm8668 / early_printk.c
index 2a3e87148ad6a1296ec48aec731e5c52c35bc773..03dd72aa8ba485a684f226fc690c712005316d91 100644 (file)
@@ -1,5 +1,5 @@
 #include <linux/io.h>
-#include <linux/serial_core.h>
+#include <linux/amba/serial.h>
 #include <adm8668.h>
 
 #define UART_READ(r) \
@@ -10,7 +10,7 @@
 
 void prom_putchar(char c)
 {
-       UART_WRITE(c, UART_DR_REG);
-       while ((UART_READ(UART_FR_REG) & UART_TX_FIFO_FULL) != 0)
+       UART_WRITE(c, UART01x_DR);
+       while ((UART_READ(UART01x_FR) & UART01x_FR_TXFF) != 0)
                ;
 }