Commit e63e4140 authored by Pali Rohár's avatar Pali Rohár
Browse files

marvell: uart: a3720: Implement console_a3700_core_flush



Implementation is simple, just wait for the TX FIFO to be empty.

Without this patch TF-A on A3720 truncate the last line:

  NOTICE:  BL31: Built : 16:1

With this patch TF-A on A3720 print correctly also the last line:

  NOTICE:  BL31: Built : 19:03:31, Dec 23 2020
Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Change-Id: I2f2ea42beab66ba132afdb400ca7898c5419db09
parent db7571a2
...@@ -232,6 +232,11 @@ endfunc console_a3700_getc ...@@ -232,6 +232,11 @@ endfunc console_a3700_getc
* --------------------------------------------- * ---------------------------------------------
*/ */
func console_a3700_core_flush 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 ret
endfunc console_a3700_core_flush 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