mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
tty: vt8500_serial: add missing support for RTS setting
Signed-off-by: Alexey Charkov <alchark@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ae38273524
commit
8c986d3e20
1 changed files with 8 additions and 0 deletions
|
@ -291,6 +291,14 @@ static unsigned int vt8500_get_mctrl(struct uart_port *port)
|
||||||
|
|
||||||
static void vt8500_set_mctrl(struct uart_port *port, unsigned int mctrl)
|
static void vt8500_set_mctrl(struct uart_port *port, unsigned int mctrl)
|
||||||
{
|
{
|
||||||
|
unsigned int lcr = vt8500_read(port, VT8500_URLCR);
|
||||||
|
|
||||||
|
if (mctrl & TIOCM_RTS)
|
||||||
|
lcr |= VT8500_RTS;
|
||||||
|
else
|
||||||
|
lcr &= ~VT8500_RTS;
|
||||||
|
|
||||||
|
vt8500_write(port, lcr, VT8500_URLCR);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vt8500_break_ctl(struct uart_port *port, int break_ctl)
|
static void vt8500_break_ctl(struct uart_port *port, int break_ctl)
|
||||||
|
|
Loading…
Add table
Reference in a new issue