/* We have a modem side uart, so the meanings of RTS and CTS are inverted.  */
static unsigned int imx_get_mctrl(struct uart_port *port)
/* We have a modem side uart, so the meanings of RTS and CTS are inverted.  */
static unsigned int imx_get_mctrl(struct uart_port *port)
{
	struct imx_port *sport = (struct imx_port *)port;
	unsigned int tmp = TIOCM_DSR | TIOCM_CAR;
	if (readl(sport->port.membase + USR1) & USR1_RTSS)
		tmp |= TIOCM_CTS;
	if (readl(sport->port.membase + UCR2) & UCR2_CTS)
		tmp |= TIOCM_RTS;
	return tmp;
}