imx.c (aa49d8e8b2dfc112f7de9c58698ae06b2101c73c) imx.c (c150c0f362c1e51c0e3216c9912b85b71d00e70d)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Driver for Motorola/Freescale IMX serial ports
4 *
5 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
6 *
7 * Author: Sascha Hauer <sascha@saschahauer.de>
8 * Copyright (C) 2004 Pengutronix

--- 2290 unchanged lines hidden (view full) ---

2299
2300 /* initialize shadow register values */
2301 sport->ucr1 = readl(sport->port.membase + UCR1);
2302 sport->ucr2 = readl(sport->port.membase + UCR2);
2303 sport->ucr3 = readl(sport->port.membase + UCR3);
2304 sport->ucr4 = readl(sport->port.membase + UCR4);
2305 sport->ufcr = readl(sport->port.membase + UFCR);
2306
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Driver for Motorola/Freescale IMX serial ports
4 *
5 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
6 *
7 * Author: Sascha Hauer <sascha@saschahauer.de>
8 * Copyright (C) 2004 Pengutronix

--- 2290 unchanged lines hidden (view full) ---

2299
2300 /* initialize shadow register values */
2301 sport->ucr1 = readl(sport->port.membase + UCR1);
2302 sport->ucr2 = readl(sport->port.membase + UCR2);
2303 sport->ucr3 = readl(sport->port.membase + UCR3);
2304 sport->ucr4 = readl(sport->port.membase + UCR4);
2305 sport->ufcr = readl(sport->port.membase + UFCR);
2306
2307 uart_get_rs485_mode(&pdev->dev, &sport->port.rs485);
2307 ret = uart_get_rs485_mode(&sport->port);
2308 if (ret) {
2309 clk_disable_unprepare(sport->clk_ipg);
2310 return ret;
2311 }
2308
2309 if (sport->port.rs485.flags & SER_RS485_ENABLED &&
2310 (!sport->have_rtscts && !sport->have_rtsgpio))
2311 dev_err(&pdev->dev, "no RTS control, disabling rs485\n");
2312
2313 /*
2314 * If using the i.MX UART RTS/CTS control then the RTS (CTS_B)
2315 * signal cannot be set low during transmission in case the

--- 301 unchanged lines hidden ---
2312
2313 if (sport->port.rs485.flags & SER_RS485_ENABLED &&
2314 (!sport->have_rtscts && !sport->have_rtsgpio))
2315 dev_err(&pdev->dev, "no RTS control, disabling rs485\n");
2316
2317 /*
2318 * If using the i.MX UART RTS/CTS control then the RTS (CTS_B)
2319 * signal cannot be set low during transmission in case the

--- 301 unchanged lines hidden ---