Skip to content

Commit 806fb0d

Browse files
Karthik Manamcherigratian
authored andcommitted
8250_pnp: Provide NI_16BYTE_FIFO flag
This change will provide a flag, NI_16BYTE_FIFO, which when used as the flag for ACPI IDs will spawn a NI UART with a 16-byte FIFO (instead of the default 128-byte FIFO) Signed-off-by: Karthik Manamcheri <karthik.manamcheri@ni.com> Acked-by: Justin Tang <justin.tang@ni.com>
1 parent 7e4f38d commit 806fb0d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

drivers/tty/serial/8250/8250_pnp.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#define UNKNOWN_DEV 0x3000
2727
#define CIR_PORT 0x0800
2828

29+
#define NI_16BYTE_FIFO 0x0004
2930
#define NI_CLK_33333333 0x0002
3031
#define NI_CAP_PMR 0x0001
3132

@@ -496,7 +497,11 @@ serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id)
496497
if (flags & NI_CLK_33333333)
497498
uart.port.uartclk = 33333333;
498499
uart.port.flags |= UPF_FIXED_PORT | UPF_FIXED_TYPE;
499-
uart.port.type = PORT_NI16550_F128;
500+
501+
if (flags & NI_16BYTE_FIFO)
502+
uart.port.type = PORT_NI16550_F16;
503+
else
504+
uart.port.type = PORT_NI16550_F128;
500505

501506
/*
502507
* NI UARTs are by default connected to RS-485 transceivers,

0 commit comments

Comments
 (0)