Skip to content

Commit

Permalink
serial: i.MX: Add i.MX8 support
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Hauer <[email protected]>
  • Loading branch information
saschahauer committed Jun 11, 2018
1 parent af8efde commit aa6f3af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/serial/serial_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,12 @@ static __maybe_unused struct of_device_id imx_serial_dt_ids[] = {
}, {
.compatible = "fsl,imx6ul-uart",
.data = &imx21_data,
}, {
}, {
.compatible = "fsl,imx7d-uart",
.data = &imx21_data,
}, {
.compatible = "fsl,imx8mq-uart",
.data = &imx21_data,
}, {
/* sentinel */
}
Expand Down
5 changes: 5 additions & 0 deletions include/serial/imx-uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ static inline void imx7_uart_setup(void __iomem *uartbase)
imx_uart_setup(uartbase, 24000000);
}

static inline void imx8mq_uart_setup(void __iomem *uartbase)
{
imx_uart_setup(uartbase, 25000000);
}

static inline void imx_uart_putc(void *base, int c)
{
if (!(readl(base + UCR1) & UCR1_UARTEN))
Expand Down

0 comments on commit aa6f3af

Please sign in to comment.