2019-11-18 19:01:42 +08:00
|
|
|
# DMA configuration options
|
|
|
|
|
2019-10-24 19:06:19 +08:00
|
|
|
# Copyright (c) 2016 Intel Corporation
|
|
|
|
# Copyright (c) 2019 Song Qiang <songqiang1304521@gmail.com>
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-01-08 03:39:55 +08:00
|
|
|
DT_COMPAT_ST_STM32_DMA_V1 := st,stm32-dma-v1
|
|
|
|
DT_COMPAT_ST_STM32_DMA_V2 := st,stm32-dma-v2
|
|
|
|
DT_COMPAT_ST_STM32_DMAMUX := st,stm32-dmamux
|
|
|
|
|
2019-10-24 19:06:19 +08:00
|
|
|
config DMA_STM32
|
|
|
|
bool "Enable STM32 DMA driver"
|
2020-08-22 05:50:00 +08:00
|
|
|
select USE_STM32_LL_DMA
|
2019-10-24 19:06:19 +08:00
|
|
|
depends on SOC_FAMILY_STM32
|
|
|
|
help
|
|
|
|
DMA driver for STM32 series SoCs.
|
|
|
|
|
|
|
|
if DMA_STM32
|
|
|
|
|
|
|
|
config DMA_STM32_V1
|
|
|
|
bool
|
2021-01-08 03:39:55 +08:00
|
|
|
default y if $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_DMA_V1))
|
2019-10-24 19:06:19 +08:00
|
|
|
help
|
2021-01-08 03:39:55 +08:00
|
|
|
Enable DMA V1 support.
|
2019-10-24 19:06:19 +08:00
|
|
|
|
|
|
|
config DMA_STM32_V2
|
|
|
|
bool
|
2021-01-08 03:39:55 +08:00
|
|
|
default y if $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_DMA_V2))
|
2019-10-24 19:06:19 +08:00
|
|
|
help
|
2021-01-08 03:39:55 +08:00
|
|
|
Enable DMA V2 support.
|
2020-04-23 17:38:06 +08:00
|
|
|
|
|
|
|
config DMAMUX_STM32
|
|
|
|
bool
|
2021-01-08 03:39:55 +08:00
|
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_DMAMUX))
|
2020-04-23 17:38:06 +08:00
|
|
|
help
|
2021-01-08 03:39:55 +08:00
|
|
|
Enable DMAMUX support.
|
2019-10-24 19:06:19 +08:00
|
|
|
|
2020-08-22 05:50:00 +08:00
|
|
|
config DMA_STM32_SHARED_IRQS
|
|
|
|
bool
|
|
|
|
default y
|
2021-03-17 23:05:42 +08:00
|
|
|
depends on SOC_SERIES_STM32F0X || SOC_SERIES_STM32G0X || SOC_SERIES_STM32L0X
|
2020-08-22 05:50:00 +08:00
|
|
|
help
|
|
|
|
Enable shared IRQ support on devices where channels share 1 IRQ.
|
|
|
|
|
2019-10-24 19:06:19 +08:00
|
|
|
endif # DMA_STM32
|