Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions boards/microchip/sam/sam_e54_xpro/sam_e54_xpro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ toolchain:
flash: 1024
ram: 256
supported:
- dma
- pinctrl
- shell
- uart
Expand Down
1 change: 1 addition & 0 deletions drivers/dma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ zephyr_library_sources_ifdef(CONFIG_DMA_DW dma_dw.c dma_dw_common.c)
zephyr_library_sources_ifdef(CONFIG_DMA_NIOS2_MSGDMA dma_nios2_msgdma.c)
zephyr_library_sources_ifdef(CONFIG_DMA_SAM0 dma_sam0.c)
zephyr_library_sources_ifdef(CONFIG_USERSPACE dma_handlers.c)
zephyr_library_sources_ifdef(CONFIG_DMA_MCHP_DMAC_G1 dma_mchp_dmac_g1.c)
zephyr_library_sources_ifdef(CONFIG_DMA_MCUX_EDMA dma_mcux_edma.c)
zephyr_library_sources_ifdef(CONFIG_DMA_MCUX_EDMA_V3 dma_mcux_edma.c)
zephyr_library_sources_ifdef(CONFIG_DMA_MCUX_EDMA_V4 dma_mcux_edma.c)
Expand Down
2 changes: 2 additions & 0 deletions drivers/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ source "drivers/dma/Kconfig.ifx_cat1"

source "drivers/dma/Kconfig.intel_lpss"

source "drivers/dma/Kconfig.mchp"

source "drivers/dma/Kconfig.mcux_pxp"

source "drivers/dma/Kconfig.max32"
Expand Down
32 changes: 32 additions & 0 deletions drivers/dma/Kconfig.mchp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright (c) 2025 Microchip Technology Inc.
# SPDX-License-Identifier: Apache-2.0

config DMA_MCHP_DMAC_G1
bool "Microchip DMA driver for DMAC G1 Peripherals"
default y
select KERNEL_MEM_POOL
depends on DT_HAS_MICROCHIP_DMAC_G1_DMA_ENABLED && !DMA_64BIT
help
Enables the DMA driver support for Microchip MCUs.

if DMA_MCHP_DMAC_G1

config DMA_MCHP_DMAC_G1_MAX_DESC
int "Number of DMA descriptors allocated in DMA descriptor pool"
range 4 256
default 128
help
Defines the number of DMA descriptors in the dynamically allocated pool.
All DMA channels will share this common pool of descriptors.
Increasing this value may improve performance for systems with high
DMA usage but will increase memory consumption.

config HEAP_MEM_POOL_ADD_SIZE_DMA
int
default 8192
help
Specifies the heap memory required for allocating DMA descriptors
in the memory pool (in bytes). Ensuring sufficient heap memory helps prevent
allocation failures and ensures reliable DMA operation.

endif # DMA_MCHP_DMAC_G1
Loading
Loading