]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[serial] Enable UART FIFOs
authorPeter Pickford <peter@netremedies.ca>
Tue, 22 Apr 2014 12:45:42 +0000 (13:45 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 22 Apr 2014 12:59:21 +0000 (13:59 +0100)
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 <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/serial.c

index 8f5a159c44d8a615de2f16652b8c92acf337fde6..7e4460ab95819100cfe206d0e173d3909b30bfcf 100644 (file)
@@ -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);