Skip to content

Commit 10fc7a3

Browse files
hakehuangMaureenHelm
authored andcommitted
dma: add EDMA MCUX support for RT and k6s
tested on mimxrt1060_evt MEMORY_NOCACHE is needed test on frdmk64f special test slot need configure with CONFIG_DMA_TEST_SLOT_START Signed-off-by: Hake Huang <[email protected]>
1 parent 5582c2f commit 10fc7a3

File tree

13 files changed

+621
-0
lines changed

13 files changed

+621
-0
lines changed

boards/arm/frdm_k64f/frdm_k64f.dts

+4
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,7 @@ arduino_spi: &spi0 {
218218
status = "okay";
219219
bus-speed = <125000>;
220220
};
221+
222+
&edma0 {
223+
status = "okay";
224+
};

boards/arm/mimxrt1060_evk/mimxrt1060_evk.dts

+5
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,9 @@ arduino_serial: &lpuart3 {};
140140
status = "okay";
141141
pwr-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
142142
cd-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
143+
status = "okay";
144+
};
145+
146+
&edma0 {
147+
status = "okay";
143148
};

boards/arm/mimxrt1060_evk/mimxrt1060_evk.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ supported:
2424
- sdhc
2525
- usb_device
2626
- kscan:touch
27+
- dma

drivers/dma/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ zephyr_library_sources_ifdef(CONFIG_DMA_DW dma_dw.c)
1111
zephyr_library_sources_ifdef(CONFIG_DMA_NIOS2_MSGDMA dma_nios2_msgdma.c)
1212
zephyr_library_sources_ifdef(CONFIG_DMA_SAM0 dma_sam0.c)
1313
zephyr_library_sources_ifdef(CONFIG_USERSPACE dma_handlers.c)
14+
zephyr_library_sources_ifdef(CONFIG_DMA_MCUX_EDMA dma_mcux_edma.c)

drivers/dma/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@ source "drivers/dma/Kconfig.nios2_msgdma"
4848

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

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

drivers/dma/Kconfig.mcux_edma

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# DMA configuration options
2+
3+
# Copyright (c) 2020, NXP
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config DMA_MCUX_EDMA
7+
bool "Enable MCUX DMA driver"
8+
depends on HAS_MCUX_EDMA
9+
select NOCACHE_MEMORY if HAS_MCUX_CACHE
10+
help
11+
DMA driver for MCUX series SoCs.
12+
13+
if DMA_MCUX_EDMA
14+
15+
config DMA_TCD_QUEUE_SIZE
16+
int "number of TCD in a queue for SG mode"
17+
default 2
18+
help
19+
number of TCD in a queue for SG mode
20+
21+
config DMA_MCUX_TEST_SLOT_START
22+
int "test slot start num"
23+
depends on SOC_SERIES_KINETIS_K6X
24+
default 58
25+
help
26+
test slot start num
27+
28+
29+
endif # DMA_MCUX_EDMA

0 commit comments

Comments
 (0)