summaryrefslogtreecommitdiff
path: root/include/fsl_lpuart.h
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2018-10-18 14:28:31 +0200
committerStefano Babic <sbabic@denx.de>2018-10-22 12:59:02 +0200
commit126f884903b647f2c349d0e756d70db3b5144249 (patch)
tree0a4a56c06286ecec42f05b124722b812c310fa5a /include/fsl_lpuart.h
parentf77d441091a277920d893c82c5811c552385af57 (diff)
serial_lpuart: Update lpuart driver to support i.MX8
Add i.MX8 compatible string and cpu type support to lpuart driver, to use little endian 32 bits configurations. Also, according to RM, the Receive FIFO Enable (RXFE) field in LPUART FIFO register is bit 3, so this definition should change to 0x08 (not 0x40) for i.MX8, otherwise the Receive FIFO is not disabled. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Anatolij Gustschin <agust@denx.de> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include/fsl_lpuart.h')
-rw-r--r--include/fsl_lpuart.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fsl_lpuart.h b/include/fsl_lpuart.h
index 02ebfefc74..fc517d4b7f 100644
--- a/include/fsl_lpuart.h
+++ b/include/fsl_lpuart.h
@@ -4,7 +4,7 @@
*
*/
-#ifdef CONFIG_ARCH_MX7ULP
+#if defined(CONFIG_ARCH_MX7ULP) || defined(CONFIG_ARCH_IMX8)
struct lpuart_fsl_reg32 {
u32 verid;
u32 param;