44# Copyright (c) 2019 Song Qiang <
[email protected] >
55# SPDX-License-Identifier: Apache-2.0
66
7- DT_COMPAT_ST_STM32_DMA_V1 := st,stm32-dma-v1
8- DT_COMPAT_ST_STM32_DMA_V2 := st,stm32-dma-v2
9- DT_COMPAT_ST_STM32_DMA_V2BIS := st,stm32-dma-v2bis
10- DT_COMPAT_ST_STM32_DMAMUX := st,stm32-dmamux
11- DT_COMPAT_ST_STM32U5_DMA := st,stm32u5-dma
12-
137config DMA_STM32
148 bool "STM32 DMA driver"
159 select USE_STM32_LL_DMA
16- depends on SOC_FAMILY_STM32
17- default y if !$(dt_compat_enabled,$(DT_COMPAT_ST_STM32U5_DMA))
10+ default y
11+ depends on DT_HAS_ST_STM32_DMA_V1_ENABLED \
12+ || DT_HAS_ST_STM32_DMA_V2_ENABLED \
13+ || DT_HAS_ST_STM32_DMA_V2BIS_ENABLED
1814 help
1915 Driver for STM32 DMA V1, V2 and V2bis types.
2016
2117config DMA_STM32U5
2218 bool "STM32U5 serie DMA driver"
2319 select USE_STM32_LL_DMA
24- depends on SOC_FAMILY_STM32
25- default y if $(dt_compat_enabled,$(DT_COMPAT_ST_STM32U5_DMA))
20+ default y
21+ depends on DT_HAS_ST_STM32U5_DMA_ENABLED
2622 help
2723 Enable DMA support mainly for stm32U5 family.
2824 It differs from the DMA driver due to the GPDMA peripheral.
@@ -31,14 +27,15 @@ if DMA_STM32
3127
3228config DMA_STM32_V1
3329 bool
34- default y if $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_DMA_V1))
30+ default y
31+ depends on DT_HAS_ST_STM32_DMA_V1_ENABLED
3532 help
3633 Enable DMA V1 support.
3734
3835config DMA_STM32_V2
3936 bool
40- default y if $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_DMA_V2)) \
41- || $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_DMA_V2BIS))
37+ default y
38+ depends on DT_HAS_ST_STM32_DMA_V2_ENABLED || DT_HAS_ST_STM32_DMA_V2BIS_ENABLED
4239 help
4340 Enable DMA V2 or DMA V2bis support. With the versions V2 of DMA, the
4441 peripheral request must be specified in the dma slot of the dma cell
@@ -47,7 +44,8 @@ config DMA_STM32_V2
4744
4845config DMAMUX_STM32
4946 bool
50- default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_DMAMUX))
47+ default y
48+ depends on DT_HAS_ST_STM32_DMAMUX_ENABLED
5149 help
5250 Enable DMAMUX support.
5351
0 commit comments