drivers: serial: mcux_lpuart: use base address from DTS for LPUART0
Use the base address from the device tree for instance 0 (LPUART0) instead of hardcoding the address using the NXP MCUX HAL definition. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
9ac5de58b6
commit
3d9eefc023
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ static void mcux_lpuart_config_func_0(struct device *dev);
|
|||
#endif
|
||||
|
||||
static const struct mcux_lpuart_config mcux_lpuart_0_config = {
|
||||
.base = LPUART0,
|
||||
.base = (LPUART_Type *) DT_UART_MCUX_LPUART_0_BASE_ADDRESS,
|
||||
.clock_name = DT_UART_MCUX_LPUART_0_CLOCK_NAME,
|
||||
.clock_subsys =
|
||||
(clock_control_subsys_t)DT_UART_MCUX_LPUART_0_CLOCK_SUBSYS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue