From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQdQs-0000M0-Rp for barebox@lists.infradead.org; Wed, 06 Jun 2018 18:45:31 +0000 Received: by mail-pf0-x243.google.com with SMTP id z24-v6so3573038pfe.7 for ; Wed, 06 Jun 2018 11:45:10 -0700 (PDT) From: Andrey Smirnov Date: Wed, 6 Jun 2018 11:44:04 -0700 Message-Id: <20180606184431.10348-12-andrew.smirnov@gmail.com> In-Reply-To: <20180606184431.10348-1-andrew.smirnov@gmail.com> References: <20180606184431.10348-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v3 11/38] serial: i.MX: Add i.MX8 support To: barebox@lists.infradead.org From: Sascha Hauer Signed-off-by: Sascha Hauer --- drivers/serial/serial_imx.c | 5 ++++- include/serial/imx-uart.h | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c index c8af995aa..09341af87 100644 --- a/drivers/serial/serial_imx.c +++ b/drivers/serial/serial_imx.c @@ -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 */ } diff --git a/include/serial/imx-uart.h b/include/serial/imx-uart.h index 9cab32f35..c23606569 100644 --- a/include/serial/imx-uart.h +++ b/include/serial/imx-uart.h @@ -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)) -- 2.17.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox