drivers: serial: Xilinx UART driver IRQ connect macro fix
Fix for the UART_XLNX_PS_IRQ_CONF_FUNC macro, which wraps IRQ_CONNECT into a function for each device instance. This macro had device instance #0 hardcoded at one point. Interrupt support is required for test cases using the UART_PIPE feature on the upcoming Cortex-A9 targets (QEMU/Zynq-7000). Signed-off-by: Immo Birnbaum <Immo.Birnbaum@weidmueller.com>
This commit is contained in:
parent
80f295a9dd
commit
24f3bce4f3
1 changed files with 1 additions and 1 deletions
|
@ -645,7 +645,7 @@ static const struct uart_driver_api uart_xlnx_ps_driver_api = {
|
|||
#define UART_XLNX_PS_IRQ_CONF_FUNC(port) \
|
||||
DEVICE_DECLARE(uart_xlnx_ps_##port); \
|
||||
\
|
||||
static void uart_xlnx_ps_irq_config_0(struct device *dev) \
|
||||
static void uart_xlnx_ps_irq_config_##port(struct device *dev) \
|
||||
{ \
|
||||
IRQ_CONNECT(DT_INST_IRQN(port), \
|
||||
DT_INST_IRQ(port, priority), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue