zephyr/drivers/serial/Kconfig.silabs_usart
Martin Hoff bb760440b8 drivers: serial: silabs: Add new Kconfig symbol for async
Add a new Kconfig symbol (UART_SILABS_USART_ASYNC) to enable the async
API for the Silabs USART driver.
It is needed because the symbol (UART_ASYNC_API) is shared between uart
driver. In the case that you have multiple UART drivers enabled,
condition to enable async API for different uart driver may differ.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-02-20 14:54:58 +00:00

29 lines
678 B
Text

# Copyright (c) 2025, Silicon Laboratories Inc.
# SPDX-License-Identifier: Apache-2.0
config UART_SILABS_USART
bool "Silabs USART UART driver"
default y
depends on DT_HAS_SILABS_USART_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select SOC_GECKO_USART
select SERIAL_SUPPORT_ASYNC \
if DT_HAS_SILABS_LDMA_ENABLED
select DMA if UART_ASYNC_API
select PINCTRL
select CLOCK_CONTROL
help
Enable the Silicon Labs usart driver.
if UART_SILABS_USART
config UART_SILABS_USART_ASYNC
bool
default y
depends on DMA_SILABS_LDMA
depends on UART_ASYNC_API
help
If 'y', Silabs usart driver will compile with support for UART async API.
endif