serial: amba-pl011: add RS485 support
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Wed, 30 Jun 2021 22:56:44 +0000 (00:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 10:39:21 +0000 (12:39 +0200)
commit8d479237727ce10260bb128c2414489e1d59c103
tree95b3d4647a3f5074a221882e6bff7ba04680fce1
parent240e126c28df084222f0b661321e8e3ecb0d232e
serial: amba-pl011: add RS485 support

Add basic support for RS485: Provide a callback to configure RS485
settings. Handle the RS485 specific part in the functions
pl011_rs485_tx_start() and pl011_rs485_tx_stop() which extend the generic
start/stop callbacks.
Beside via IOCTL from userspace RS485 can be enabled by means of the
device tree property "rs485-enabled-at-boot-time".

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Link: https://lore.kernel.org/r/20210630225644.3744-1-LinoSanfilippo@gmx.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c