diff options
author | roshni.shah <roshni.shah@timesys.com> | 2013-07-25 21:52:11 -0400 |
---|---|---|
committer | Andy Voltz <andy.voltz@timesys.com> | 2013-07-26 01:30:25 -0400 |
commit | dea13473ce0c106fc56af798eefc7196bb150695 (patch) | |
tree | fcc4d7f2ffa1ee9393730e21a70f5b0d8be9f34f | |
parent | 0287228d813fd2fdaadc9995f42d991280ee05f6 (diff) |
Support for setting TX clear-to-send in set modem CTRL in MVF Serial Driver3.0.15_vybrid-ts-2.63.0-vybrid-ts2.6
-rw-r--r-- | drivers/tty/serial/mvf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/mvf.c b/drivers/tty/serial/mvf.c index bbb08a0f3613..814a7daa56f0 100644 --- a/drivers/tty/serial/mvf.c +++ b/drivers/tty/serial/mvf.c @@ -506,11 +506,13 @@ static void imx_set_mctrl(struct uart_port *port, unsigned int mctrl) unsigned long temp; temp = readb(sport->port.membase + MXC_UARTMODEM) & - ~MXC_UARTMODEM_RXRTSE; + ~(MXC_UARTMODEM_RXRTSE | MXC_UARTMODEM_TXCTSE); if (mctrl & TIOCM_RTS) temp |= MXC_UARTMODEM_RXRTSE; + if (mctrl & TIOCM_CTS) + temp |= MXC_UARTMODEM_TXCTSE; writeb(temp, sport->port.membase + MXC_UARTMODEM); } |