1# Copyright (c) 2020-2023, NXP
2# SPDX-License-Identifier: Apache-2.0
3
4config DMA_MCUX_LPC
5	bool "MCUX LPC DMAC driver"
6	default y
7	depends on DT_HAS_NXP_LPC_DMA_ENABLED
8	help
9	  DMA driver for MCUX LPC MCUs.
10
11if DMA_MCUX_LPC
12
13config DMA_MCUX_LPC_NUMBER_OF_DESCRIPTORS
14	int "Number of DMA descriptors to use"
15	default 16
16	help
17	  Each DMA descriptor can be used to transfer (1024*width) bytes of data.
18	  Increase or decrease this value depending on the max number of data
19	  transferred by the application.
20
21config DMA_MCUX_LPC_NUMBER_OF_CHANNELS_ALLOCATED
22	int "Number of DMA channels to allocate memory for in driver"
23	default 0
24	help
25	  The MCUX LPC DMA driver can save memory by not allocating static data
26	  depending on this value. So, the application can save some data memory
27	  space by setting this value to suit its needs. The meaning of the value
28	  is "total number of unique DMA channels ever expected to be used, maximum
29	  out of all DMA controllers". A value of 0 (default) means to allocate
30	  as many channel data structures as the maximum number of DMA channels
31	  in any DMA controller hardware. About 1 KB per 3-4 channels unused can
32	  be saved by fine tuning this Kconfig.
33
34endif # DMA_MCUX_LPC
35