Skip to content

Commit 35b0b18

Browse files
drivers: uart: fix IRQ Config
Fix IRQ config to recognize TI VIM interrupt-controller Signed-off-by: Shreyas Shankar <s-shankar@ti.com>
1 parent cf6170c commit 35b0b18

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

drivers/serial/uart_ns16550.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,11 +1808,16 @@ static DEVICE_API(uart, uart_ns16550_driver_api) = {
18081808
#endif
18091809
};
18101810

1811-
#define UART_NS16550_IRQ_FLAGS(n) \
1812-
COND_CODE_1(DT_INST_IRQ_HAS_CELL(n, sense), \
1813-
(DT_INST_IRQ(n, sense)), \
1811+
#define UART_NS16550_IRQ_SENSE(n) \
1812+
COND_CODE_1(DT_INST_IRQ_HAS_CELL(n, sense), \
1813+
(DT_INST_IRQ(n, sense)), \
18141814
(0))
18151815

1816+
#define UART_NS16550_IRQ_FLAGS(n) \
1817+
COND_CODE_1(DT_INST_IRQ_HAS_CELL(n, flags), \
1818+
(DT_INST_IRQ(n, flags)), \
1819+
UART_NS16550_IRQ_SENSE(n))
1820+
18161821
/* IO-port or MMIO based UART */
18171822
#define UART_NS16550_IRQ_CONFIG(n) \
18181823
static void uart_ns16550_irq_config_func##n(const struct device *dev) \

0 commit comments

Comments
 (0)