1# STM32 UART configuration
2
3# Copyright (c) 2016 Open-RnD Sp. z o.o.
4# SPDX-License-Identifier: Apache-2.0
5
6DT_COMPAT_ST_STM32_DMA_V1 := st,stm32-dma-v1
7DT_COMPAT_ST_STM32_DMA_V2 := st,stm32-dma-v2
8DT_COMPAT_ST_STM32_DMA_V2BIS := st,stm32-dma-v2bis
9
10config UART_STM32
11	bool "STM32 MCU serial driver"
12	select SERIAL_HAS_DRIVER
13	select SERIAL_SUPPORT_INTERRUPT
14	# the ASYNC implementation requires a DMA controller
15	select SERIAL_SUPPORT_ASYNC \
16		if $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_DMA_V1)) || \
17		   $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_DMA_V2)) || \
18		   $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_DMA_V2BIS))
19	select DMA if UART_ASYNC_API
20	depends on SOC_FAMILY_STM32
21	help
22	  This option enables the UART driver for STM32 family of
23	  processors.
24	  Say y if you wish to use serial port on STM32 MCU.
25