Browse Source

[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 <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Peter Pickford 10 years ago
parent
commit
d644ad41f5
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/core/serial.c

+ 2
- 2
src/core/serial.c View File

204
 	/* disable interrupts */
204
 	/* disable interrupts */
205
 	uart_writeb(0x0, UART_BASE + UART_IER);
205
 	uart_writeb(0x0, UART_BASE + UART_IER);
206
 
206
 
207
-	/* disable fifo's */
208
-	uart_writeb(0x00, UART_BASE + UART_FCR);
207
+	/* enable fifos */
208
+	uart_writeb(0x01, UART_BASE + UART_FCR);
209
 
209
 
210
 	/* Set clear to send, so flow control works... */
210
 	/* Set clear to send, so flow control works... */
211
 	uart_writeb((1<<1), UART_BASE + UART_MCR);
211
 	uart_writeb((1<<1), UART_BASE + UART_MCR);

Loading…
Cancel
Save