summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2017-09-13 21:48:28 -0500
committerYe Li <ye.li@nxp.com>2017-09-14 00:48:48 -0500
commit6e798b31d30551f74155fcdc93f560af0d0153b3 (patch)
tree945eb42789379a163fb72a83b8503622cd0dea7a
parent0596078a6b25a3510c4498a0d53a4fc7a70c0e4e (diff)
MLK-16467 serial_lpuart: Fix FIFO_RXFE definition in LPUART driver
Accroding to RM, the Receive FIFO Enable (RXFE) field in LPUART FIFO register is bit 3, so the definition should change to 0x08 not 0x40. Otherwise the Receive FIFO is not disabled. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
-rw-r--r--drivers/serial/serial_lpuart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c
index 6bb8b083e3..0edff6a8e5 100644
--- a/drivers/serial/serial_lpuart.c
+++ b/drivers/serial/serial_lpuart.c
@@ -42,7 +42,7 @@
#define CTRL_RE (1 << 18)
#define FIFO_TXFE 0x80
-#define FIFO_RXFE 0x40
+#define FIFO_RXFE 0x08
#define WATER_TXWATER_OFF 1
#define WATER_RXWATER_OFF 16