arm: nxp: mcux lpuart: Get IRQ info from DTS

Move to using the generated IRQ defines from the DTS instead of soc.h.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-07-25 11:49:05 -05:00 committed by Maureen Helm
commit 68732efe00
4 changed files with 5 additions and 3 deletions

View file

@ -297,10 +297,11 @@ DEVICE_AND_API_INIT(uart_0, CONFIG_UART_MCUX_LPUART_0_NAME,
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
static void mcux_lpuart_config_func_0(struct device *dev)
{
IRQ_CONNECT(IRQ_LPUART0, CONFIG_UART_MCUX_LPUART_0_IRQ_PRI,
IRQ_CONNECT(CONFIG_UART_MCUX_LPUART_0_IRQ,
CONFIG_UART_MCUX_LPUART_0_IRQ_PRI,
mcux_lpuart_isr, DEVICE_GET(uart_0), 0);
irq_enable(IRQ_LPUART0);
irq_enable(CONFIG_UART_MCUX_LPUART_0_IRQ);
}
#endif