* AM335x: is AUTORTS mode supported ?
@ 2013-07-03 16:02 Mark Jackson
0 siblings, 0 replies; only message in thread
From: Mark Jackson @ 2013-07-03 16:02 UTC (permalink / raw)
To: linux-omap@vger.kernel.org; +Cc: lkml, linux-serial, gregkh
I'm struggling to determine if AUTORTS mode is currently supported in 3.10 ?
I have dug into the source code, and can see various references to the relevant bits
in the various UART registers, but I'm at a lose as to how to actually *enable* the
mode !!
In drivers/tty/omap-serial.c serial_omap_set_termios() we have:-
if (termios->c_cflag & CRTSCTS && up->port.flags & UPF_HARD_FLOW) {
/* Enable AUTORTS and AUTOCTS */
up->efr |= UART_EFR_CTS | UART_EFR_RTS;
/* Ensure MCR RTS is asserted */
up->mcr |= UART_MCR_RTS;
} else {
...
}
So it looks like I need to set the CRTSCTS and UPF_HARD_FLOW flags.
>From userspace, I've tried:-
$ stty -F /dev/ttyO2 crtscts
But I've not idea how to enable UPF_HARD_FLOW !?!
Can anyone point me in the right direction ?
Cheers
Mark J.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-03 16:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-03 16:02 AM335x: is AUTORTS mode supported ? Mark Jackson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox