aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2017-10-06 10:24:17 +0200
committerMadhukar Pappireddy <madhukar.pappireddy@arm.com>2021-01-11 17:28:00 +0000
commit0b3d4273fa9a18de64ce457834724fe6471237d8 (patch)
tree6d83ede5bfd80607be21ac0731654699e31c618d /include
parentf422a7bf5b179be476e97b930fcc25950bf9374b (diff)
downloadtrusted-firmware-a-0b3d4273fa9a18de64ce457834724fe6471237d8.tar.gz
cadence: Change logic in uart driver
Write char if fifo is empty. If this is done like this all chars are printed. Because origin code just put that chars to fifo and in case of reset messages were missing. Before this change chars are put to fifo and only check before adding if fifo is full. The patch is changing this logic that it is adding char only when fifo is empty to make sure that in case of reset (by another SW for example) all chars are printed. Maybe one char can be missed but for IP itself it is much easier to send just one char compare to full fifo. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Change-Id: Ic24c2c1252bce24be2aed68ee29477ca4a549e5f
Diffstat (limited to 'include')
-rw-r--r--include/drivers/cadence/cdns_uart.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drivers/cadence/cdns_uart.h b/include/drivers/cadence/cdns_uart.h
index 46ba4663ed..30ca910b92 100644
--- a/include/drivers/cadence/cdns_uart.h
+++ b/include/drivers/cadence/cdns_uart.h
@@ -21,6 +21,7 @@
#define R_UART_SR 0x2C
#define UART_SR_INTR_REMPTY_BIT 1
#define UART_SR_INTR_TFUL_BIT 4
+#define UART_SR_INTR_TEMPTY_BIT 3
#define R_UART_TX 0x30
#define R_UART_RX 0x30