1# DMA configuration options
2
3# Copyright (c) 2020, NXP
4# SPDX-License-Identifier: Apache-2.0
5
6EDMA_COMPAT := $(DT_COMPAT_NXP_MCUX_EDMA)
7REV_PROP := nxp,version
8
9config DMA_MCUX_EDMA
10	bool "MCUX DMA driver"
11	default y
12	depends on $(dt_compat_any_has_prop,$(EDMA_COMPAT),$(REV_PROP),2)
13	imply NOCACHE_MEMORY if HAS_MCUX_CACHE
14	help
15	  DMA driver for MCUX series SoCs.
16
17config DMA_MCUX_EDMA_V3
18	bool "MCUX DMA v3 driver"
19	default y
20	depends on $(dt_compat_any_has_prop,$(EDMA_COMPAT),$(REV_PROP),3)
21	help
22	  DMA version 3 driver for MCUX series SoCs.
23
24config DMA_MCUX_EDMA_V4
25	bool "MCUX DMA v4 driver"
26	default y
27	depends on $(dt_compat_any_has_prop,$(EDMA_COMPAT),$(REV_PROP),4)
28	help
29	  DMA version 4 driver for MCUX series SoCs.
30
31if DMA_MCUX_EDMA || DMA_MCUX_EDMA_V3 || DMA_MCUX_EDMA_V4
32
33config DMA_TCD_QUEUE_SIZE
34	int "number of TCD in a queue for SG mode"
35	default 2
36	help
37	  number of TCD in a queue for SG mode
38
39config DMA_MCUX_TEST_SLOT_START
40	int "test slot start num"
41	depends on (SOC_SERIES_KINETIS_K6X || SOC_SERIES_KINETIS_KE1XF || SOC_SERIES_S32K3 || SOC_SERIES_S32ZE)
42	default 58 if SOC_SERIES_KINETIS_K6X
43	default 60 if SOC_SERIES_KINETIS_KE1XF
44	default 62 if SOC_SERIES_S32K3 || SOC_SERIES_S32ZE
45	help
46	  test slot start num
47
48config DMA_MCUX_USE_DTCM_FOR_DMA_DESCRIPTORS
49	bool "Use DTCM for DMA descriptors"
50	default y
51	depends on DT_HAS_NXP_IMX_DTCM_ENABLED
52	help
53	  When this option is activated, the descriptors for DMA transfer are
54	  located in the DTCM (Data Tightly Coupled Memory).
55
56endif # DMA_MCUX_EDMA || DMA_MCUX_EDMA_V3 || DMA_MCUX_EDMA_V4
57