This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new e794a88e1e7 arch/arm/imxrt: DMA buffer size config
e794a88e1e7 is described below
commit e794a88e1e70db82ce0302d9d392b460b71ae170
Author: Ari Kimari <[email protected]>
AuthorDate: Fri Oct 2 14:33:08 2026 +0300
arch/arm/imxrt: DMA buffer size config
Add DMA buffer size config option
Signed-off-by: Ari Kimari <[email protected]>
---
boards/arm/imxrt/imxrt1180-evk/Kconfig | 10 ++++++++++
boards/arm/imxrt/imxrt1180-evk/src/imxrt_dma_alloc.c | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/boards/arm/imxrt/imxrt1180-evk/Kconfig
b/boards/arm/imxrt/imxrt1180-evk/Kconfig
index 0e10eeb2413..b03e0e04673 100644
--- a/boards/arm/imxrt/imxrt1180-evk/Kconfig
+++ b/boards/arm/imxrt/imxrt1180-evk/Kconfig
@@ -5,6 +5,16 @@
if ARCH_BOARD_IMXRT1180_EVK
+config IMXRT_DMA_POOL_SIZE
+ int "RT1180 USB DMA pool size"
+ depends on ARCH_FAMILY_IMXRT118x && IMXRT_USBDEV && USBDEV_DMAMEMORY
+ default 6144
+ range 1024 65536
+ ---help---
+ Size in bytes of the RT1180 USB DMA-capable memory pool.
+ The default is 6 KiB. Increase this when a composite USB
+ configuration requires additional request buffers.
+
config IMXRT1180_EVK_BOOTLOADER
bool "Cortex-M33 bootloader application"
default n
diff --git a/boards/arm/imxrt/imxrt1180-evk/src/imxrt_dma_alloc.c
b/boards/arm/imxrt/imxrt1180-evk/src/imxrt_dma_alloc.c
index 95fb7eced73..85cf07286a7 100644
--- a/boards/arm/imxrt/imxrt1180-evk/src/imxrt_dma_alloc.c
+++ b/boards/arm/imxrt/imxrt1180-evk/src/imxrt_dma_alloc.c
@@ -64,7 +64,7 @@
*/
#define IMXRT_DMA_ALIGNMENT 32
-#define IMXRT_DMA_POOL_SIZE (6 * 1024)
+#define IMXRT_DMA_POOL_SIZE CONFIG_IMXRT_DMA_POOL_SIZE
/****************************************************************************
* Private Data