2023-04-29 09:55:20 +08:00
|
|
|
# Copyright (c) 2020-2023, NXP
|
2020-08-15 05:02:38 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config DMA_MCUX_LPC
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "MCUX LPC DMAC driver"
|
2022-08-25 03:30:39 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_NXP_LPC_DMA_ENABLED
|
2020-08-15 05:02:38 +08:00
|
|
|
help
|
|
|
|
DMA driver for MCUX LPC MCUs.
|
|
|
|
|
|
|
|
if DMA_MCUX_LPC
|
|
|
|
|
2023-07-13 02:06:14 +08:00
|
|
|
config DMA_MCUX_LPC_NUMBER_OF_DESCRIPTORS
|
2023-04-29 09:55:20 +08:00
|
|
|
int "Number of DMA descriptors to use"
|
|
|
|
default 16
|
2020-08-15 05:02:38 +08:00
|
|
|
help
|
2023-04-29 09:55:20 +08:00
|
|
|
Each DMA descriptor can be used to transfer (1024*width) bytes of data.
|
|
|
|
Increase or decrease this value depending on the max number of data
|
|
|
|
transferred by the application.
|
2020-08-15 05:02:38 +08:00
|
|
|
|
2023-07-13 02:06:14 +08:00
|
|
|
config DMA_MCUX_LPC_NUMBER_OF_CHANNELS_ALLOCATED
|
|
|
|
int "Number of DMA channels to allocate memory for in driver"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
The MCUX LPC DMA driver can save memory by not allocating static data
|
|
|
|
depending on this value. So, the application can save some data memory
|
|
|
|
space by setting this value to suit its needs. The meaning of the value
|
|
|
|
is "total number of unique DMA channels ever expected to be used, maximum
|
|
|
|
out of all DMA controllers". A value of 0 (default) means to allocate
|
|
|
|
as many channel data structures as the maximum number of DMA channels
|
|
|
|
in any DMA controller hardware. About 1 KB per 3-4 channels unused can
|
|
|
|
be saved by fine tuning this Kconfig.
|
|
|
|
|
2020-08-15 05:02:38 +08:00
|
|
|
endif # DMA_MCUX_LPC
|