summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamin Guo <samin.guo@starfivetech.com>2021-01-07 22:11:04 +0300
committerEmil Renner Berthing <kernel@esmil.dk>2022-03-27 18:01:15 +0300
commit4ecc291ed5ffc9b4a1d080a3cc46711b9f3a7056 (patch)
treed292a9d84adc90af751d22b7a76e6f70529b43ad
parent342233382f343ddd596432eb0776bf8669e6732a (diff)
downloadlinux-4ecc291ed5ffc9b4a1d080a3cc46711b9f3a7056.tar.xz
drivers/tty/serial/8250: update driver for JH7100
-rw-r--r--drivers/tty/serial/8250/8250_port.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
index 46e2079ad1aa..07b58b04a889 100644
--- a/drivers/tty/serial/8250/8250_port.c
+++ b/drivers/tty/serial/8250/8250_port.c
@@ -73,8 +73,16 @@ static const struct serial8250_config uart_config[] = {
},
[PORT_16550] = {
.name = "16550",
+#ifdef CONFIG_SOC_STARFIVE
+ .fifo_size = 16,
+ .tx_loadsz = 16,
+ .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_00,
+ .rxtrig_bytes = {1, 4, 8, 14},
+ .flags = UART_CAP_FIFO,
+#else
.fifo_size = 1,
.tx_loadsz = 1,
+#endif
},
[PORT_16550A] = {
.name = "16550A",