Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339177
b: refs/heads/master
c: c533e51
h: refs/heads/master
i:
  339175: eeb6a8f
v: v3
  • Loading branch information
Russell King committed Nov 4, 2012
1 parent 11614fb commit 520e990
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c7d059cae31f328bbe2be6ab737226d338f22486
refs/heads/master: c533e51b228020142cd2c4d5f21e8db4683ce457
13 changes: 7 additions & 6 deletions trunk/drivers/tty/serial/omap-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,16 +898,20 @@ serial_omap_set_termios(struct uart_port *port, struct ktermios *termios,
else
serial_out(up, UART_OMAP_MDR1, up->mdr1);

/* Enable access to TCR/TLR */
/* Configure flow control */
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);

/* XON1/XOFF1 accessible mode B, TCRTLR=0, ECB=0 */
serial_out(up, UART_XON1, termios->c_cc[VSTART]);
serial_out(up, UART_XOFF1, termios->c_cc[VSTOP]);

/* Enable access to TCR/TLR */
serial_out(up, UART_EFR, up->efr | UART_EFR_ECB);
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
serial_out(up, UART_MCR, up->mcr | UART_MCR_TCRTLR);

serial_out(up, UART_TI752_TCR, OMAP_UART_TCR_TRIG);

/* Hardware Flow Control Configuration */

if (termios->c_cflag & CRTSCTS && up->port.flags & UPF_HARD_FLOW) {
/* Enable AUTORTS and AUTOCTS */
up->efr |= UART_EFR_CTS | UART_EFR_RTS;
Expand All @@ -925,9 +929,6 @@ serial_omap_set_termios(struct uart_port *port, struct ktermios *termios,
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
serial_out(up, UART_EFR, up->efr);

serial_out(up, UART_XON1, termios->c_cc[VSTART]);
serial_out(up, UART_XOFF1, termios->c_cc[VSTOP]);

/* clear SW control mode bits */
up->efr &= OMAP_UART_SW_CLR;

Expand Down

0 comments on commit 520e990

Please sign in to comment.