ath79: ar933x_uart: set UART_CS_{RX,TX}_READY_ORIDE
authorDaniel Golle <daniel@makrotopia.org>
Thu, 6 Feb 2020 18:02:25 +0000 (20:02 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 7 Feb 2020 10:52:56 +0000 (12:52 +0200)
commitb439d3bfb5bf6e5cc1e2ad5b7a086eb46995eeaf
treef60e4b99863c559071fea869dac7d39ed8bcff74
parent1d47f81581bcd476487e5b29314602167a843b99
ath79: ar933x_uart: set UART_CS_{RX,TX}_READY_ORIDE

On AR934x this UART is usually not initialized by the bootloader
as it is only used as a secondary serial port while the primary
UART is a newly introduced NS16550-compatible.
In order to make use of the ar933x-uart on AR934x without RTS/CTS
hardware flow control, one needs to set the
UART_CS_{RX,TX}_READY_ORIDE bits as other than on AR933x where this
UART is used as primary/console, the bootloader on AR934x typically
doesn't set those bits.
Setting them explicitely on AR933x does not do any harm, so just set
them unconditionally.

Tested-by: Chuanhong Guo <gch981213@gmail.com
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/ath79/patches-4.19/0060-serial-ar933x_uart-set-UART_CS_-RX-TX-_READY_ORIDE.patch [new file with mode: 0644]