In RS485 mode RTS line acts as a transceiver direction control.
The datasheet is not very clear about the polarity but register setting here is tested to drive nRTS line high when transmitting.
Also note revision of B of the super-IO has errata and 8N1 setting does not work properly, you would need revision C of the chip assembled to fix this.
Change-Id: I705fe0c5a5f8369b0a9358a64c74500238b5c4ba
e1c36ae pcengines/apu1: Add RS485 configuration
src/mainboard/pcengines/apu1/Kconfig | 6 ++++++
src/mainboard/pcengines/apu1/mainboard.c | 23 +++++++++++++++++++++++
2 files changed, 29 insertions(+)
Upstream: review.coreboot.org