Skip to content

Commit 3ace822

Browse files
Marek Vasutgregkh
authored andcommitted
serial: 8250: Add missing rxtrig_bytes on Altera 16550 UART
The Altera 16550 UART core supports FCR Rx Trigger Level setting, but the port definition in the driver is missing the rxtrig_bytes array specifying the trigger levels. Add the array to make the Rx Trigger Level setting available on this type of 16550 UART. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Thor Thayer <tthayer@opensource.altera.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a451deb commit 3ace822

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/tty/serial/8250/8250_port.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,20 +243,23 @@ static const struct serial8250_config uart_config[] = {
243243
.fifo_size = 32,
244244
.tx_loadsz = 32,
245245
.fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10,
246+
.rxtrig_bytes = {1, 8, 16, 30},
246247
.flags = UART_CAP_FIFO | UART_CAP_AFE,
247248
},
248249
[PORT_ALTR_16550_F64] = {
249250
.name = "Altera 16550 FIFO64",
250251
.fifo_size = 64,
251252
.tx_loadsz = 64,
252253
.fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10,
254+
.rxtrig_bytes = {1, 16, 32, 62},
253255
.flags = UART_CAP_FIFO | UART_CAP_AFE,
254256
},
255257
[PORT_ALTR_16550_F128] = {
256258
.name = "Altera 16550 FIFO128",
257259
.fifo_size = 128,
258260
.tx_loadsz = 128,
259261
.fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10,
262+
.rxtrig_bytes = {1, 32, 64, 126},
260263
.flags = UART_CAP_FIFO | UART_CAP_AFE,
261264
},
262265
/*

0 commit comments

Comments
 (0)