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:
Henrik Brix Andersen 2019-10-21 16:04:11 +02:00 committed by Maureen Helm
commit 3d9eefc023

View file

@ -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,