author: Samin Guo <samin.guo@starfivetech.com> 2021-01-08 03:11:04 +0800
committer: Emil Renner Berthing <emil.renner.berthing@canonical.com> 2023-07-20 20:53:37 +0200
commit: 0f7265f1db43d8e7cf94c5a210edd79e67ccf9b0
parent: 2799e8ff512acfb8e9d794a454f6e7bff1c173f2
Commit Summary:
Diffstat:
1 file changed, 8 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
index c153ba3a018a..a0ad9071ebd2 100644
--- a/drivers/tty/serial/8250/8250_port.c
+++ b/drivers/tty/serial/8250/8250_port.c
@@ -72,8 +72,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",