serial: xilinx: uartlite: update irq_enable to use DT_INST_IRQN_BY_IDX
Update the irq_enable macro to use the DT_INST_IRQN_BY_IDX helper. This ensures proper handling of IRQ numbers in systems with multi-level interrupt configurations. Signed-off-by: Ajay Neeli <ajay.neeli@amd.com>
This commit is contained in:
parent
1237c8699a
commit
b7d13ea6ca
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ static DEVICE_API(uart, xlnx_uartlite_driver_api) = {
|
||||||
xlnx_uartlite_isr, \
|
xlnx_uartlite_isr, \
|
||||||
DEVICE_DT_INST_GET(n), 0); \
|
DEVICE_DT_INST_GET(n), 0); \
|
||||||
\
|
\
|
||||||
irq_enable(DT_INST_IRQ_BY_IDX(n, i, irq)); \
|
irq_enable(DT_INST_IRQN_BY_IDX(n, i)); \
|
||||||
} while (false)
|
} while (false)
|
||||||
#define XLNX_UARTLITE_CONFIG_FUNC(n) \
|
#define XLNX_UARTLITE_CONFIG_FUNC(n) \
|
||||||
static void xlnx_uartlite_config_func_##n(const struct device *dev) \
|
static void xlnx_uartlite_config_func_##n(const struct device *dev) \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue