X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=cpu%2Fblackfin%2Fserial.c;h=386195556666415612dcb0f2690705f8a5f0898f;hb=453c0d7558215cbc8636d94af172886d84e0dbba;hp=0d6f377c058328ca8e875a5a3ee406a1c380c680;hpb=41e7bbe0097713cd76edd65995620fa1eb120407;p=u-boot diff --git a/cpu/blackfin/serial.c b/cpu/blackfin/serial.c index 0d6f377c05..3861955566 100644 --- a/cpu/blackfin/serial.c +++ b/cpu/blackfin/serial.c @@ -29,6 +29,8 @@ #include #include +#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