diff options
author | Enric Balletbo i Serra <eballetbo@iseebcn.com> | 2012-12-06 03:45:04 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-16 00:52:23 -0500 |
commit | fdbc7353e45d78ea8ee4a0cdc9e2700035a3a77d (patch) | |
tree | 08dbced1cd8a32452d9cae11184e8f494c7cd1f8 | |
parent | a6b68a69fa89daeddc6ca6bb90b6f19a86ed7a9f (diff) |
serial: omap: add the functionality of a 9-bit UART with userspaces CMSPAR
Some systems require the additional communication functionality of a
9-bit UART. For that we could use the "stick" (mark/space) parity
bit supported on omap serial device. When is set, if PARODD is set the
parity bit is always 1; if PARODD is not set, then the parity bit is
always 0.
Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/omap-serial.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 57d6b29c039c..ec90651d661a 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c | |||
@@ -776,6 +776,8 @@ serial_omap_set_termios(struct uart_port *port, struct ktermios *termios, | |||
776 | cval |= UART_LCR_PARITY; | 776 | cval |= UART_LCR_PARITY; |
777 | if (!(termios->c_cflag & PARODD)) | 777 | if (!(termios->c_cflag & PARODD)) |
778 | cval |= UART_LCR_EPAR; | 778 | cval |= UART_LCR_EPAR; |
779 | if (termios->c_cflag & CMSPAR) | ||
780 | cval |= UART_LCR_SPAR; | ||
779 | 781 | ||
780 | /* | 782 | /* |
781 | * Ask the core to calculate the divisor for us. | 783 | * Ask the core to calculate the divisor for us. |