Skip to content

Commit

Permalink
drivers: dma: Add Andestech atcdmac300 driver.
Browse files Browse the repository at this point in the history
Support the Andes atcdmac300 dma driver.

Signed-off-by: Kevin Wang <[email protected]>
  • Loading branch information
Kevin Wang committed Aug 23, 2023
1 parent 88a3620 commit 75aa78f
Show file tree
Hide file tree
Showing 13 changed files with 721 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/riscv/adp_xc7k_ae350/adp_xc7k_ae350.dts
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,7 @@
&wdt {
status = "okay";
};

&dma0 {
status = "okay";
};
1 change: 1 addition & 0 deletions boards/riscv/adp_xc7k_ae350/adp_xc7k_ae350.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ supported:
- watchdog
- mbox
- flash
- dma
testing:
ignore_tags:
- bluetooth
1 change: 1 addition & 0 deletions drivers/dma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ zephyr_library_sources_ifdef(CONFIG_DMA_MCHP_XEC dma_mchp_xec.c)
zephyr_library_sources_ifdef(CONFIG_DMA_XMC4XXX dma_xmc4xxx.c)
zephyr_library_sources_ifdef(CONFIG_DMA_RPI_PICO dma_rpi_pico.c)
zephyr_library_sources_ifdef(CONFIG_MCUX_PXP dma_mcux_pxp.c)
zephyr_library_sources_ifdef(CONFIG_DMA_ANDES_ATCDMAC300 dma_andes_atcdmac300.c)
3 changes: 3 additions & 0 deletions drivers/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ source "drivers/dma/Kconfig.rpi_pico"
source "drivers/dma/Kconfig.intel_lpss"

source "drivers/dma/Kconfig.mcux_pxp"

source "drivers/dma/Kconfig.andes_atcdmac300"

endif # DMA
12 changes: 12 additions & 0 deletions drivers/dma/Kconfig.andes_atcdmac300
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Andestech ATCDMAC300 configuration options
# Copyright (c) 2021 Andes Technology Corporation.

# SPDX-License-Identifier: Apache-2.0


config DMA_ANDES_ATCDMAC300
bool "Using Andes ATCDMAC300 DMA driver"
default y
depends on DT_HAS_ANDESTECH_ATCDMAC300_ENABLED
help
Andes ATCDMAC300 DMA driver.
Loading

0 comments on commit 75aa78f

Please sign in to comment.