Commit 484752f3 authored by Madhukar Pappireddy's avatar Madhukar Pappireddy Committed by TrustedFirmware Code Review
Browse files

Merge "marvell: uart: a3720: Implement console_a3700_core_flush" into integration

parents c390ecd6 e63e4140
......@@ -232,6 +232,11 @@ endfunc console_a3700_getc
* ---------------------------------------------
*/
func console_a3700_core_flush
/* Wait for the TX FIFO to be empty */
1: ldr w1, [x0, #UART_STATUS_REG]
and w1, w1, #UARTLSR_TXFIFOEMPTY
cmp w1, #UARTLSR_TXFIFOEMPTY
b.ne 1b
ret
endfunc console_a3700_core_flush
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment