Skip to content

Commit

Permalink
drivers: dma: Add initial support for silabs LDMA
Browse files Browse the repository at this point in the history
Initial support of silabs LDMA using hal library em_ldma.

Signed-off-by: Martin Hoff <[email protected]>
  • Loading branch information
Martinhoff-maker committed Dec 12, 2024
1 parent f23558d commit 8448860
Show file tree
Hide file tree
Showing 5 changed files with 552 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/dma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ zephyr_library_sources_ifdef(CONFIG_DMA_MCUX_SMARTDMA dma_mcux_smartdma.c)
zephyr_library_sources_ifdef(CONFIG_DMA_ANDES_ATCDMAC300 dma_andes_atcdmac300.c)
zephyr_library_sources_ifdef(CONFIG_DMA_SEDI dma_sedi.c)
zephyr_library_sources_ifdef(CONFIG_DMA_SI32 dma_si32.c)
zephyr_library_sources_ifdef(CONFIG_DMA_SILABS_LDMA dma_silabs_ldma.c)
zephyr_library_sources_ifdef(CONFIG_DMA_SMARTBOND dma_smartbond.c)
zephyr_library_sources_ifdef(CONFIG_DMA_NXP_SOF_HOST_DMA dma_nxp_sof_host_dma.c)
zephyr_library_sources_ifdef(CONFIG_DMA_EMUL dma_emul.c)
Expand Down
2 changes: 2 additions & 0 deletions drivers/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ source "drivers/dma/Kconfig.sedi"

source "drivers/dma/Kconfig.si32"

source "drivers/dma/Kconfig.silabs"

source "drivers/dma/Kconfig.smartbond"

source "drivers/dma/Kconfig.nxp_sof_host_dma"
Expand Down
21 changes: 21 additions & 0 deletions drivers/dma/Kconfig.silabs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2024 Silicon-labs
# SPDX-License-Identifier: Apache-2.0

config DMA_SILABS_LDMA
bool "Silabs DMA driver"
default y
select SYS_MEM_BLOCKS
select SOC_GECKO_LDMA
depends on DT_HAS_SILABS_LDMA_ENABLED
help
Driver for Silabs DMA.

if DMA_SILABS_LDMA

config DMA_MAX_DESCRIPTOR
int "Max Number of block_config (LDMA_Descriptor)"
default 8
help
Max Number of block_config (LDMA_Descriptor)

endif
Loading

0 comments on commit 8448860

Please sign in to comment.