mirror of
https://github.com/CTCaer/switch-l4t-atf.git
synced 2024-12-13 13:15:39 +00:00
Merge pull request #127 from sandrine-bailleux/sb/fix-pl011-fifo-polling
PL011: Fix a bug in the UART FIFO polling
This commit is contained in:
commit
2966dc2cf5
@ -65,8 +65,10 @@ void console_init(unsigned long base_addr)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define WAIT_UNTIL_UART_FREE(base) while ((pl011_read_fr(base)\
|
#define WAIT_UNTIL_UART_FREE(base) \
|
||||||
& PL011_UARTFR_TXFF) == 1)
|
while ((pl011_read_fr(base) & PL011_UARTFR_TXFF)) \
|
||||||
|
continue
|
||||||
|
|
||||||
int console_putc(int c)
|
int console_putc(int c)
|
||||||
{
|
{
|
||||||
assert(uart_base);
|
assert(uart_base);
|
||||||
|
Loading…
Reference in New Issue
Block a user