Handle the case where there are multiple different kinds of UART on one platform, the other UART driver select SERIAL_SUPPORT_ASYNC but LPUART did not, causing build error in LPUART driver. Shield LPUART driver from this case by introducing driver config to indicate that in fact LPUART is the one enabling ASYNC. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
32 lines
743 B
Plaintext
32 lines
743 B
Plaintext
# Copyright 2017, 2025 NXP
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config UART_MCUX_LPUART
|
|
bool "MCUX LPUART driver"
|
|
default y
|
|
depends on DT_HAS_NXP_LPUART_ENABLED
|
|
depends on CLOCK_CONTROL
|
|
select SERIAL_HAS_DRIVER
|
|
select SERIAL_SUPPORT_INTERRUPT
|
|
select PINCTRL
|
|
help
|
|
Enable the MCUX LPUART driver.
|
|
|
|
if UART_MCUX_LPUART
|
|
|
|
config UART_MCUX_LPUART_ISR_SUPPORT
|
|
bool
|
|
default y if UART_INTERRUPT_DRIVEN || PM || UART_ASYNC_API
|
|
help
|
|
Enable UART interrupt service routine.
|
|
|
|
config UART_NXP_LPUART_ASYNC_API_SUPPORT
|
|
bool
|
|
default y if $(dt_compat_any_has_prop,$(DT_COMPAT_NXP_LPUART),dmas)
|
|
select SERIAL_SUPPORT_ASYNC
|
|
select DMA if UART_ASYNC_API
|
|
help
|
|
Indicates if LPUART has async api support by having dmas enabled for it
|
|
|
|
endif
|