From 3d9eefc023d23eaa70dee75fefe15bd958fa2916 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Mon, 21 Oct 2019 16:04:11 +0200 Subject: [PATCH] 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 --- drivers/serial/uart_mcux_lpuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/uart_mcux_lpuart.c b/drivers/serial/uart_mcux_lpuart.c index 4c2f3096da4..9509cba2508 100644 --- a/drivers/serial/uart_mcux_lpuart.c +++ b/drivers/serial/uart_mcux_lpuart.c @@ -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,