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:
Immo Birnbaum 2020-04-02 14:18:59 +02:00 committed by Carles Cufí
commit 24f3bce4f3

View file

@ -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), \