diff options
author | Peter Hung <hpeter@gmail.com> | 2015-07-28 11:59:24 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-03 15:40:29 -0700 |
commit | fecf27a373f5a6b393e93b14f8460299b8abd6f9 (patch) | |
tree | 2fa95934a7919f65f50e204cae7b92861bc0e662 /drivers/tty/serial/sprd_serial.c | |
parent | a3a10ce3429e5dee623ad5c8407ea58e204fcb0a (diff) | |
download | blackbird-obmc-linux-fecf27a373f5a6b393e93b14f8460299b8abd6f9.tar.gz blackbird-obmc-linux-fecf27a373f5a6b393e93b14f8460299b8abd6f9.zip |
serial: 8250_pci: add RS485 for F81504/508/512
Add RS485 control for Fintek F81504/508/512
F81504/508/512 can control their RTS with H/W mode.
PCI configuration space for each port is 0x40 + idx * 8 + 7.
When it set with 0x01, it's configured with RS232 mode.
RTS is controlled by MCR.
When it set with 0x11, it's configured with RS485 mode.
RTS is controlled by H/W, RTS low with idle & RX, high with TX.
When it set with 0x31, it's configured with RS485 mode.
RTS is controlled by H/W, RTS high with idle & RX, low with TX.
We will force 0x01 on pci_fintek_setup().
Signed-off-by: Peter Hung <hpeter+linux_kernel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/sprd_serial.c')
0 files changed, 0 insertions, 0 deletions