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>2021-06-07 02:11:16 +0300
commit3cdd633d974c6ceee9b4b3ac6a68aca9f135b3f2 (patch)
treeff1720a80accc9a3c51c4c55b45b130a4afda88c
parent173bb4d1a3ecc4d61c97649a509035253d6c7088 (diff)
downloadlinux-3cdd633d974c6ceee9b4b3ac6a68aca9f135b3f2.tar.xz
drivers/tty/serial/8250: update driver for VIC7100
-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 fc5ab2032282..4fd09d3dd6df 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_VIC7100
+ .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",