summaryrefslogtreecommitdiff
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorSamin Guo <samin.guo@starfivetech.com>2021-01-07 22:11:04 +0300
committerEmil Renner Berthing <emil.renner.berthing@canonical.com>2024-05-28 13:42:34 +0300
commit9467b74355dd6c75400f8216270b0f2e9c4e8939 (patch)
treefa320e3812d322e3a8cf57ee95099817420aae55 /drivers/tty/serial
parent2543f60572cb90824c6bb2d204688ca2383e2628 (diff)
downloadlinux-9467b74355dd6c75400f8216270b0f2e9c4e8939.tar.xz
drivers/tty/serial/8250: update driver for JH7100
Diffstat (limited to 'drivers/tty/serial')
-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 893bc493f662..1b83acf9504a 100644
--- a/drivers/tty/serial/8250/8250_port.c
+++ b/drivers/tty/serial/8250/8250_port.c
@@ -68,8 +68,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",