drivers: serial: Use generated dts macros in mcux flexcomm driver
Uses the generated device tree macros, DT_NXP_LPC_USART_USART_*, in the mcux flexcomm driver and removes the now unused dts fixups from the lpc54xxx and lpc55xxx socs. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
72e0080e56
commit
95743561a6
3 changed files with 6 additions and 18 deletions
|
@ -290,9 +290,9 @@ static void mcux_flexcomm_config_func_0(struct device *dev);
|
|||
#endif
|
||||
|
||||
static const struct mcux_flexcomm_config mcux_flexcomm_0_config = {
|
||||
.base = (USART_Type *)DT_USART_MCUX_LPC_0_BASE_ADDRESS,
|
||||
.base = (USART_Type *)DT_NXP_LPC_USART_USART_0_BASE_ADDRESS,
|
||||
.clock_source = 0,
|
||||
.baud_rate = DT_USART_MCUX_LPC_0_BAUD_RATE,
|
||||
.baud_rate = DT_NXP_LPC_USART_USART_0_CURRENT_SPEED,
|
||||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
.irq_config_func = mcux_flexcomm_config_func_0,
|
||||
#endif
|
||||
|
@ -300,7 +300,7 @@ static const struct mcux_flexcomm_config mcux_flexcomm_0_config = {
|
|||
|
||||
static struct mcux_flexcomm_data mcux_flexcomm_0_data;
|
||||
|
||||
DEVICE_AND_API_INIT(usart_0, DT_USART_MCUX_LPC_0_NAME,
|
||||
DEVICE_AND_API_INIT(usart_0, DT_NXP_LPC_USART_USART_0_LABEL,
|
||||
&mcux_flexcomm_init,
|
||||
&mcux_flexcomm_0_data, &mcux_flexcomm_0_config,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
|
@ -309,11 +309,11 @@ DEVICE_AND_API_INIT(usart_0, DT_USART_MCUX_LPC_0_NAME,
|
|||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
static void mcux_flexcomm_config_func_0(struct device *dev)
|
||||
{
|
||||
IRQ_CONNECT(DT_USART_MCUX_LPC_0_IRQ,
|
||||
DT_USART_MCUX_LPC_0_IRQ_PRI,
|
||||
IRQ_CONNECT(DT_NXP_LPC_USART_USART_0_IRQ_0,
|
||||
DT_NXP_LPC_USART_USART_0_IRQ_0_PRIORITY,
|
||||
mcux_flexcomm_isr, DEVICE_GET(usart_0), 0);
|
||||
|
||||
irq_enable(DT_USART_MCUX_LPC_0_IRQ);
|
||||
irq_enable(DT_NXP_LPC_USART_USART_0_IRQ_0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue