[PATCH 1/5] serial: imx: distinguish the imx6 uart from the others
From: Shawn Guo <hidden>
Date: 2013-07-03 01:52:45
Also in:
linux-serial
From: Shawn Guo <hidden>
Date: 2013-07-03 01:52:45
Also in:
linux-serial
On Tue, Jul 02, 2013 at 02:30:24PM +0800, Huang Shijie wrote:
@@ -801,7 +814,7 @@ static int imx_startup(struct uart_port *port) } } - if (is_imx21_uart(sport)) { + if (is_imx21_uart(sport) || is_imx6_uart(sport)) {
Would it be better to use (!is_imx1_uart(sport)) here? Thus when there is another derivative of imx21-uart device to be added, we do not need to touch this line again. Shawn
temp = readl(sport->port.membase + UCR3); temp |= IMX21_UCR3_RXDMUXSEL; writel(temp, sport->port.membase + UCR3);