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 Jun 8, 2023
1 parent 22b889e commit ba8c995
Show file tree
Hide file tree
Showing 11 changed files with 723 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 @@ -180,3 +180,7 @@
status = "okay";
cs-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};

&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 @@ -12,6 +12,7 @@ supported:
- i2c
- spi
- eeprom
- 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 @@ -29,3 +29,4 @@ zephyr_library_sources_ifdef(CONFIG_DMA_ESP32 dma_esp32_gdma.c)
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_DMA_ANDES_ATCDMAC300 dma_andes_atcdmac300.c)
2 changes: 2 additions & 0 deletions drivers/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ source "drivers/dma/Kconfig.xmc4xxx"
source "drivers/dma/Kconfig.rpi_pico"

source "drivers/dma/Kconfig.intel_lpss"

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 ba8c995

Please sign in to comment.