Skip to content

Commit 08606ea

Browse files
soburicarlescufi
authored andcommitted
drivers: dma: rpi_pico: add support for RaspberryPi Pico DMA
Adding RaspberryPi Pico DMA driver. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 15535ed commit 08606ea

File tree

8 files changed

+519
-0
lines changed

8 files changed

+519
-0
lines changed

boards/arm/rpi_pico/rpi_pico.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ supported:
1818
- watchdog
1919
- pwm
2020
- flash
21+
- dma

drivers/dma/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ zephyr_library_sources_ifdef(CONFIG_DMA_GD32 dma_gd32.c)
2727
zephyr_library_sources_ifdef(CONFIG_DMA_ESP32 dma_esp32_gdma.c)
2828
zephyr_library_sources_ifdef(CONFIG_DMA_MCHP_XEC dma_mchp_xec.c)
2929
zephyr_library_sources_ifdef(CONFIG_DMA_XMC4XXX dma_xmc4xxx.c)
30+
zephyr_library_sources_ifdef(CONFIG_DMA_RPI_PICO dma_rpi_pico.c)

drivers/dma/Kconfig

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

5757
source "drivers/dma/Kconfig.xmc4xxx"
5858

59+
source "drivers/dma/Kconfig.rpi_pico"
60+
5961
endif # DMA

drivers/dma/Kconfig.rpi_pico

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2023 Tokita, Hiroshi <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config DMA_RPI_PICO
5+
bool "Raspberry Pi Pico DMA driver"
6+
default y
7+
depends on DT_HAS_RASPBERRYPI_PICO_DMA_ENABLED
8+
select PICOSDK_USE_DMA
9+
select PICOSDK_USE_CLAIM
10+
depends on RESET
11+
help
12+
DMA driver for RaspberryPi Pico.

0 commit comments

Comments
 (0)