mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
serial: pl011: add mark/space parity support
PL011 UART has hardware mark/space parity ability, this trivial patch adds support for it. Tested on Raspberry Pi v1, v2 (BCM2835 and BCM2836) Signed-off-by: Ed Spiridonov <edo.rus@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0607616d93
commit
bb70002cb7
@ -1947,6 +1947,8 @@ pl011_set_termios(struct uart_port *port, struct ktermios *termios,
|
||||
lcr_h |= UART01x_LCRH_PEN;
|
||||
if (!(termios->c_cflag & PARODD))
|
||||
lcr_h |= UART01x_LCRH_EPS;
|
||||
if (termios->c_cflag & CMSPAR)
|
||||
lcr_h |= UART011_LCRH_SPS;
|
||||
}
|
||||
if (uap->fifosize > 1)
|
||||
lcr_h |= UART01x_LCRH_FEN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user