History

serial: 8250: Set Altera 16550 TX FIFO Threshold

The Altera 16550 soft IP UART requires 2 additional registers for TX FIFO threshold support. These 2 registers enable the TX FIFO Low Watermark and set the TX FIFO Low Watermark. Set the TX FIFO threshold to the FIFO size - tx_loadsz.

Thor Thayer committed 10 years ago

Commit 8e5470c1 parent ffea0432 files · +51 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/serial_reg.h+8−0
@@ -376,5 +376,13 @@ · 375 unmodified lines
376376 #define UART_EXAR_TXTRG 0x0a /* Tx FIFO trigger level write-only */
377377 #define UART_EXAR_RXTRG 0x0b /* Rx FIFO trigger level write-only */
378378
379+/*
380+ * These are definitions for the Altera ALTR_16550_F32/F64/F128
381+ * Normalized from 0x100 to 0x40 because of shift by 2 (32 bit regs).
382+ */
383+#define UART_ALTR_AFR 0x40 /* Additional Features Register */
384+#define UART_ALTR_EN_TXFIFO_LW 0x01 /* Enable the TX FIFO Low Watermark */
385+#define UART_ALTR_TX_LOW 0x41 /* Tx FIFO Low Watermark */
386+
379387 #endif /* _LINUX_SERIAL_REG_H */
380388

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t