Skip to content

Commit

Permalink
arm: UART driver modifications for MKL25Z soc support
Browse files Browse the repository at this point in the history
Since all interrupts come in on the status line,
we only connect it for the KL2X.

Change-Id: Ia9e0d483fe68464a0eeab08c95a043260e5793b0
Signed-off-by: Gustavo Denardin <gustavo.denardin@gmail.com>
  • Loading branch information
gustavowd authored and MaureenHelm committed Mar 10, 2017
1 parent 6b5ad9a commit 2ba7f4e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drivers/serial/uart_mcux.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,12 @@ static void uart_mcux_config_func_0(struct device *dev)

irq_enable(IRQ_UART0_STATUS);

#ifdef IRQ_UART0_ERROR
IRQ_CONNECT(IRQ_UART0_ERROR, CONFIG_UART_MCUX_0_IRQ_PRI,
uart_mcux_isr, DEVICE_GET(uart_0), 0);

irq_enable(IRQ_UART0_ERROR);
#endif
}
#endif

Expand Down Expand Up @@ -338,10 +340,12 @@ static void uart_mcux_config_func_1(struct device *dev)

irq_enable(IRQ_UART1_STATUS);

#ifdef IRQ_UART1_ERROR
IRQ_CONNECT(IRQ_UART1_ERROR, CONFIG_UART_MCUX_1_IRQ_PRI,
uart_mcux_isr, DEVICE_GET(uart_1), 0);

irq_enable(IRQ_UART1_ERROR);
#endif
}
#endif

Expand Down Expand Up @@ -378,10 +382,12 @@ static void uart_mcux_config_func_2(struct device *dev)

irq_enable(IRQ_UART2_STATUS);

#ifdef IRQ_UART2_ERROR
IRQ_CONNECT(IRQ_UART2_ERROR, CONFIG_UART_MCUX_2_IRQ_PRI,
uart_mcux_isr, DEVICE_GET(uart_2), 0);

irq_enable(IRQ_UART2_ERROR);
#endif
}
#endif

Expand Down Expand Up @@ -418,10 +424,12 @@ static void uart_mcux_config_func_3(struct device *dev)

irq_enable(IRQ_UART3_STATUS);

#ifdef IRQ_UART3_ERROR
IRQ_CONNECT(IRQ_UART3_ERROR, CONFIG_UART_MCUX_3_IRQ_PRI,
uart_mcux_isr, DEVICE_GET(uart_3), 0);

irq_enable(IRQ_UART3_ERROR);
#endif
}
#endif

Expand Down Expand Up @@ -458,10 +466,12 @@ static void uart_mcux_config_func_4(struct device *dev)

irq_enable(IRQ_UART4_STATUS);

#ifdef IRQ_UART4_ERROR
IRQ_CONNECT(IRQ_UART4_ERROR, CONFIG_UART_MCUX_4_IRQ_PRI,
uart_mcux_isr, DEVICE_GET(uart_4), 0);

irq_enable(IRQ_UART4_ERROR);
#endif
}
#endif

Expand Down Expand Up @@ -498,10 +508,12 @@ static void uart_mcux_config_func_5(struct device *dev)

irq_enable(IRQ_UART5_STATUS);

#ifdef IRQ_UART5_ERROR
IRQ_CONNECT(IRQ_UART5_ERROR, CONFIG_UART_MCUX_5_IRQ_PRI,
uart_mcux_isr, DEVICE_GET(uart_5), 0);

irq_enable(IRQ_UART5_ERROR);
#endif
}
#endif

Expand Down

0 comments on commit 2ba7f4e

Please sign in to comment.