Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: dma: stm32: bdma support for H7 #53184

Merged
merged 8 commits into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions drivers/dma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
zephyr_library()

zephyr_library_sources_ifdef(CONFIG_DMA_SAM_XDMAC dma_sam_xdmac.c)
zephyr_library_sources_ifdef(CONFIG_DMA_STM32U5 dma_stm32u5.c)
zephyr_library_sources_ifdef(CONFIG_DMA_STM32 dma_stm32.c)
zephyr_library_sources_ifdef(CONFIG_DMA_STM32_V1 dma_stm32_v1.c)
zephyr_library_sources_ifdef(CONFIG_DMA_STM32_V2 dma_stm32_v2.c)
zephyr_library_sources_ifdef(CONFIG_DMA_STM32U5 dma_stm32u5.c)
zephyr_library_sources_ifdef(CONFIG_DMA_STM32_V1 dma_stm32.c dma_stm32_v1.c)
zephyr_library_sources_ifdef(CONFIG_DMA_STM32_V2 dma_stm32.c dma_stm32_v2.c)
zephyr_library_sources_ifdef(CONFIG_DMA_STM32_BDMA dma_stm32_bdma.c)
zephyr_library_sources_ifdef(CONFIG_DMAMUX_STM32 dmamux_stm32.c)
zephyr_library_sources_ifdef(CONFIG_DMA_DW dma_dw.c dma_dw_common.c)
zephyr_library_sources_ifdef(CONFIG_DMA_NIOS2_MSGDMA dma_nios2_msgdma.c)
Expand Down
14 changes: 12 additions & 2 deletions drivers/dma/Kconfig.stm32
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Copyright (c) 2016 Intel Corporation
# Copyright (c) 2019 Song Qiang <songqiang1304521@gmail.com>
# Copyright (c) 2023 Jeroen van Dooren, Nobleo Technology
# SPDX-License-Identifier: Apache-2.0

config DMA_STM32
Expand All @@ -10,9 +11,10 @@ config DMA_STM32
default y
depends on DT_HAS_ST_STM32_DMA_V1_ENABLED \
|| DT_HAS_ST_STM32_DMA_V2_ENABLED \
|| DT_HAS_ST_STM32_DMA_V2BIS_ENABLED
|| DT_HAS_ST_STM32_DMA_V2BIS_ENABLED \
|| DT_HAS_ST_STM32_BDMA_ENABLED
help
Driver for STM32 DMA V1, V2 and V2bis types.
Driver for STM32 DMA V1, V2, V2bis and BDMA types.

config DMA_STM32U5
bool "STM32U5 serie DMA driver"
Expand Down Expand Up @@ -56,4 +58,12 @@ config DMA_STM32_SHARED_IRQS
help
Enable shared IRQ support on devices where channels share 1 IRQ.

config DMA_STM32_BDMA
bool "STM32 BDMA driver"
default y
select USE_STM32_LL_BDMA
depends on DT_HAS_ST_STM32_BDMA_ENABLED
help
BDMA driver for STM32H7 series SoCs.

endif # DMA_STM32
Loading