diff options
author | Pali Rohár <pali@kernel.org> | 2020-12-23 19:23:26 +0100 |
---|---|---|
committer | Pali Rohár <pali@kernel.org> | 2020-12-23 19:23:26 +0100 |
commit | e63e4140e0970e3161b117b8884f7b5a030c68c5 (patch) | |
tree | f49afc66263311f27d0821d6d8bd689c8c0eba24 | |
parent | db7571a2e655755ee7b93903c9dd6275a21730cd (diff) | |
download | trusted-firmware-a-e63e4140e0970e3161b117b8884f7b5a030c68c5.tar.gz |
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: Pali Rohár <pali@kernel.org>
Change-Id: I2f2ea42beab66ba132afdb400ca7898c5419db09
-rw-r--r-- | drivers/marvell/uart/a3700_console.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/marvell/uart/a3700_console.S b/drivers/marvell/uart/a3700_console.S index d184a2d244..dc374eed1a 100644 --- a/drivers/marvell/uart/a3700_console.S +++ b/drivers/marvell/uart/a3700_console.S @@ -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 |