Skip to content

Commit 3a1d188

Browse files
soburicarlescufi
authored andcommitted
drivers: dma: Add GD32 DMA driver
Add support for GD32 DMA Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent e6da6e9 commit 3a1d188

File tree

5 files changed

+722
-0
lines changed

5 files changed

+722
-0
lines changed

drivers/dma/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ zephyr_library_sources_ifdef(CONFIG_DMA_INTEL_ADSP_HDA_HOST_OUT dma_intel_adsp_h
2222
zephyr_library_sources_ifdef(CONFIG_DMA_INTEL_ADSP_HDA_LINK_IN dma_intel_adsp_hda_link_in.c)
2323
zephyr_library_sources_ifdef(CONFIG_DMA_INTEL_ADSP_HDA_LINK_OUT dma_intel_adsp_hda_link_out.c)
2424
zephyr_library_sources_ifdef(CONFIG_DMA_INTEL_ADSP_GPDMA dma_intel_adsp_gpdma.c dma_dw_common.c)
25+
zephyr_library_sources_ifdef(CONFIG_DMA_GD32 dma_gd32.c)

drivers/dma/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@ source "drivers/dma/Kconfig.intel_adsp_gpdma"
4848

4949
source "drivers/dma/Kconfig.intel_adsp_hda"
5050

51+
source "drivers/dma/Kconfig.gd32"
52+
5153
endif # DMA

drivers/dma/Kconfig.gd32

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2022 Tokita, Hiroshi <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config DMA_GD32
5+
bool "Gigadevice GD32 DMA driver"
6+
default y
7+
depends on DT_HAS_GD_GD32_DMA_ENABLED
8+
select USE_GD32_DMA
9+
help
10+
DMA driver for GigaDevice GD32 series MCUs.

0 commit comments

Comments
 (0)