aboutsummaryrefslogtreecommitdiff
path: root/include/drivers
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-01-18 12:39:25 +0100
committerPali Rohár <pali@kernel.org>2021-01-18 12:39:25 +0100
commit74867756ef5c8f2a33af2fc59915cbd8905a23e5 (patch)
tree5a0a4a6a1b35177a1b1a9553b14578065efe6743 /include/drivers
parent6047a10538810086f7f13b15fcdbff4b5b40180c (diff)
downloadtrusted-firmware-a-74867756ef5c8f2a33af2fc59915cbd8905a23e5.tar.gz
marvell: uart: a3720: Implement console_a3700_core_getc
Implementation is simple, just check if there is a pending character in RX FIFO via RXRDY bit of Status Register and if yes, read it from UART_RX_REG register. Signed-off-by: Pali Rohár <pali@kernel.org> Change-Id: I226b6e336f44f5d0ca8dcb68e49a68e8f2f49708
Diffstat (limited to 'include/drivers')
-rw-r--r--include/drivers/marvell/uart/a3700_console.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drivers/marvell/uart/a3700_console.h b/include/drivers/marvell/uart/a3700_console.h
index 5e3ab05151..e77a165608 100644
--- a/include/drivers/marvell/uart/a3700_console.h
+++ b/include/drivers/marvell/uart/a3700_console.h
@@ -48,6 +48,7 @@
/* Line Status Register bits */
#define UARTLSR_TXFIFOFULL (1 << 11) /* Tx Fifo Full */
+#define UARTLSR_RXRDY (1 << 4) /* Rx Ready */
/* UART Control Register bits */
#define UART_CTRL_RXFIFO_RESET (1 << 14)