From: Peter Pickford Date: Tue, 22 Apr 2014 12:45:42 +0000 (+0100) Subject: [serial] Enable UART FIFOs X-Git-Tag: v1.20.1~1228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d644ad41f5a17315ab72f6ebeeecf895f7d41679;p=thirdparty%2Fipxe.git [serial] Enable UART FIFOs Escape sequences received via the serial console can fail since the cpu_nap() in getchar_timeout() can delay processing for more than the time it takes for a single character to arrive. Fix by enabling the UART FIFOs. Modified-by: Michael Brown Signed-off-by: Michael Brown --- diff --git a/src/core/serial.c b/src/core/serial.c index 8f5a159c4..7e4460ab9 100644 --- a/src/core/serial.c +++ b/src/core/serial.c @@ -204,8 +204,8 @@ static void serial_init ( void ) { /* disable interrupts */ uart_writeb(0x0, UART_BASE + UART_IER); - /* disable fifo's */ - uart_writeb(0x00, UART_BASE + UART_FCR); + /* enable fifos */ + uart_writeb(0x01, UART_BASE + UART_FCR); /* Set clear to send, so flow control works... */ uart_writeb((1<<1), UART_BASE + UART_MCR);