drivers: serial: Fix mcux lpuart instance 2
The mcux lpuart shim driver was updated in commit
20202902f2
to use DT_ prefix in all
defined labels not related to Kconfig, but instance 2 was missed.
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
16891af7a7
commit
c80b564ec2
1 changed files with 8 additions and 8 deletions
|
@ -365,11 +365,11 @@ static void mcux_lpuart_config_func_2(struct device *dev);
|
|||
#endif
|
||||
|
||||
static const struct mcux_lpuart_config mcux_lpuart_2_config = {
|
||||
.base = (LPUART_Type *) CONFIG_UART_MCUX_LPUART_2_BASE_ADDRESS,
|
||||
.clock_name = CONFIG_UART_MCUX_LPUART_2_CLOCK_NAME,
|
||||
.base = (LPUART_Type *) DT_UART_MCUX_LPUART_2_BASE_ADDRESS,
|
||||
.clock_name = DT_UART_MCUX_LPUART_2_CLOCK_NAME,
|
||||
.clock_subsys =
|
||||
(clock_control_subsys_t)CONFIG_UART_MCUX_LPUART_2_CLOCK_SUBSYS,
|
||||
.baud_rate = CONFIG_UART_MCUX_LPUART_2_BAUD_RATE,
|
||||
(clock_control_subsys_t)DT_UART_MCUX_LPUART_2_CLOCK_SUBSYS,
|
||||
.baud_rate = DT_UART_MCUX_LPUART_2_BAUD_RATE,
|
||||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
.irq_config_func = mcux_lpuart_config_func_2,
|
||||
#endif
|
||||
|
@ -377,7 +377,7 @@ static const struct mcux_lpuart_config mcux_lpuart_2_config = {
|
|||
|
||||
static struct mcux_lpuart_data mcux_lpuart_2_data;
|
||||
|
||||
DEVICE_AND_API_INIT(uart_2, CONFIG_UART_MCUX_LPUART_2_NAME,
|
||||
DEVICE_AND_API_INIT(uart_2, DT_UART_MCUX_LPUART_2_NAME,
|
||||
&mcux_lpuart_init,
|
||||
&mcux_lpuart_2_data, &mcux_lpuart_2_config,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
|
@ -386,11 +386,11 @@ DEVICE_AND_API_INIT(uart_2, CONFIG_UART_MCUX_LPUART_2_NAME,
|
|||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
static void mcux_lpuart_config_func_2(struct device *dev)
|
||||
{
|
||||
IRQ_CONNECT(CONFIG_UART_MCUX_LPUART_2_IRQ,
|
||||
CONFIG_UART_MCUX_LPUART_2_IRQ_PRI,
|
||||
IRQ_CONNECT(DT_UART_MCUX_LPUART_2_IRQ,
|
||||
DT_UART_MCUX_LPUART_2_IRQ_PRI,
|
||||
mcux_lpuart_isr, DEVICE_GET(uart_2), 0);
|
||||
|
||||
irq_enable(CONFIG_UART_MCUX_LPUART_2_IRQ);
|
||||
irq_enable(DT_UART_MCUX_LPUART_2_IRQ);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue