[U-Boot] [PATCH 1/5] Blackfin: recurse with early serial initcode

Mike Frysinger vapier at gentoo.org
Wed May 6 14:49:17 CEST 2009


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 at gentoo.org>
---
 cpu/blackfin/initcode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpu/blackfin/initcode.c b/cpu/blackfin/initcode.c
index aba00e0..c0fe2c6 100644
--- a/cpu/blackfin/initcode.c
+++ b/cpu/blackfin/initcode.c
@@ -92,7 +92,7 @@ static inline void serial_putc(char c)
 		return;
 
 	if (c == '\n')
-		*pUART_THR = '\r';
+		serial_putc('\r');
 
 	*pUART_THR = c;
 
-- 
1.6.2.5



More information about the U-Boot mailing list