]> git.sur5r.net Git - u-boot/commitdiff
Blackfin: recurse with early serial initcode
authorMike Frysinger <vapier@gentoo.org>
Sat, 25 Apr 2009 03:22:48 +0000 (23:22 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 6 May 2009 12:47:16 +0000 (08:47 -0400)
Make sure we recurse through serial_putc() rather than bang on the UART
transmit register directly to avoid hardware overflows when using \n.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
cpu/blackfin/initcode.c

index aba00e0fb9aa87b7239ab90f3cbd573bf553544f..c0fe2c65a6c6232398ea0ce328c85d4ce2fcd7e8 100644 (file)
@@ -92,7 +92,7 @@ static inline void serial_putc(char c)
                return;
 
        if (c == '\n')
-               *pUART_THR = '\r';
+               serial_putc('\r');
 
        *pUART_THR = c;