Skip to content

Commit 1cfec8c

Browse files
paulwedeckhenrikbrixandersen
authored andcommitted
drivers: dma_wch: add support for the WCH DMA controller
This patch adds an initial driver for the WCH DMA controller. All hardware features and most interface features are implemented. Signed-off-by: Paul Wedeck <[email protected]>
1 parent 0c6217f commit 1cfec8c

File tree

7 files changed

+593
-0
lines changed

7 files changed

+593
-0
lines changed

drivers/dma/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ zephyr_library_sources_ifdef(CONFIG_DMA_NXP_EDMA dma_nxp_edma.c)
4949
zephyr_library_sources_ifdef(CONFIG_DMA_DW_AXI dma_dw_axi.c)
5050
zephyr_library_sources_ifdef(CONFIG_DMA_XILINX_AXI_DMA dma_xilinx_axi_dma.c)
5151
zephyr_library_sources_ifdef(CONFIG_DMA_NXP_SDMA dma_nxp_sdma.c)
52+
zephyr_library_sources_ifdef(CONFIG_DMA_WCH dma_wch.c)

drivers/dma/Kconfig

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

9292
source "drivers/dma/Kconfig.nxp_sdma"
9393

94+
source "drivers/dma/Kconfig.wch"
95+
9496
endif # DMA

drivers/dma/Kconfig.wch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2024 Paul Wedeck <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config DMA_WCH
5+
bool "CH32V DMA driver"
6+
default y
7+
depends on DT_HAS_WCH_WCH_DMA_ENABLED
8+
help
9+
DMA driver for the WCH CH32V SoC family.

0 commit comments

Comments
 (0)