1# DMA configuration options 2 3# Copyright (c) 2016 Intel Corporation 4# Copyright (c) 2019 Song Qiang <songqiang1304521@gmail.com> 5# Copyright (c) 2023 Jeroen van Dooren, Nobleo Technology 6# SPDX-License-Identifier: Apache-2.0 7 8config DMA_STM32 9 bool "STM32 DMA driver" 10 select USE_STM32_LL_DMA 11 default y 12 depends on DT_HAS_ST_STM32_DMA_V1_ENABLED \ 13 || DT_HAS_ST_STM32_DMA_V2_ENABLED \ 14 || DT_HAS_ST_STM32_DMA_V2BIS_ENABLED \ 15 || DT_HAS_ST_STM32_BDMA_ENABLED 16 help 17 Driver for STM32 DMA V1, V2, V2bis and BDMA types. 18 19config DMA_STM32U5 20 bool "STM32U5 serie DMA driver" 21 select USE_STM32_LL_DMA 22 default y 23 depends on DT_HAS_ST_STM32U5_DMA_ENABLED 24 help 25 Enable DMA support mainly for stm32U5 family. 26 It differs from the DMA driver due to the GPDMA peripheral. 27 28if DMA_STM32 29 30config DMA_STM32_V1 31 bool 32 default y 33 depends on DT_HAS_ST_STM32_DMA_V1_ENABLED 34 help 35 Enable DMA V1 support. 36 37config DMA_STM32_V2 38 bool 39 default y 40 depends on DT_HAS_ST_STM32_DMA_V2_ENABLED || DT_HAS_ST_STM32_DMA_V2BIS_ENABLED 41 help 42 Enable DMA V2 or DMA V2bis support. With the versions V2 of DMA, the 43 peripheral request must be specified in the dma slot of the dma cell 44 With the versions V2 bis of DMA, the peripheral request (slot) is not 45 a parameter of the dma-cell. 46 47config DMAMUX_STM32 48 bool 49 default y 50 depends on DT_HAS_ST_STM32_DMAMUX_ENABLED 51 help 52 Enable DMAMUX support. 53 54config DMA_STM32_SHARED_IRQS 55 bool 56 default y 57 depends on SOC_SERIES_STM32C0X || SOC_SERIES_STM32F0X || \ 58 SOC_SERIES_STM32G0X || SOC_SERIES_STM32L0X 59 help 60 Enable shared IRQ support on devices where channels share 1 IRQ. 61 62config DMA_STM32_BDMA 63 bool "STM32 BDMA driver" 64 default y 65 select USE_STM32_LL_BDMA 66 depends on DT_HAS_ST_STM32_BDMA_ENABLED 67 help 68 BDMA driver for STM32H7 series SoCs. 69 70config DMAMUX_STM32_INIT_PRIORITY 71 int "STM32 DMAMUX init priority" 72 depends on DT_HAS_ST_STM32_DMAMUX_ENABLED 73 default 41 74 help 75 DMAMUX driver device must be init'd after the DMA (CONFIG_DMA_INIT_PRIORITY) 76 DMAMUX driver device initialization priority is greater than DMA one's 77 78endif # DMA_STM32 79