Skip to content

Commit

Permalink
drivers: dma: stm32: bdma support for H7
Browse files Browse the repository at this point in the history
Implement STM32H7 BDMA driver.

Co-authored-by: Jeroen van Dooren <jeroen.van.dooren@nobleo.nl>
Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
  • Loading branch information
heinwessels and JvanDooren committed Feb 28, 2023
1 parent 5958605 commit 088d38f
Show file tree
Hide file tree
Showing 7 changed files with 1,151 additions and 6 deletions.
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

0 comments on commit 088d38f

Please sign in to comment.