]> git.sur5r.net Git - u-boot/blobdiff - cpu/blackfin/serial.c
include/ns16550.h: Unify structure declaration for registers
[u-boot] / cpu / blackfin / serial.c
index 0d6f377c058328ca8e875a5a3ee406a1c380c680..386195556666415612dcb0f2690705f8a5f0898f 100644 (file)
@@ -29,6 +29,8 @@
 #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
@@ -113,10 +115,6 @@ void serial_putc(const char c)
        SSYNC();
 
        WATCHDOG_RESET();
-
-       /* wait for the byte to be shifted over the line */
-       while (!(uart_lsr_read() & TEMT))
-               continue;
 }
 
 int serial_tstc(void)
@@ -170,3 +168,5 @@ void serial_puts(const char *s)
        while (*s)
                serial_putc(*s++);
 }
+
+#endif