Skip to content

Commit 3d06ae8

Browse files
committed
drivers: dma: siwx91x: Add siwx91x GPDMA driver
Implement GPDMA driver for siwx91x device Signed-off-by: Sai Santhosh Malae <[email protected]>
1 parent f86f83b commit 3d06ae8

File tree

5 files changed

+562
-1
lines changed

5 files changed

+562
-1
lines changed

drivers/dma/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ zephyr_library_sources_ifdef(CONFIG_DMA_SEDI dma_sedi.c)
4444
zephyr_library_sources_ifdef(CONFIG_DMA_SI32 dma_si32.c)
4545
zephyr_library_sources_ifdef(CONFIG_DMA_SILABS_LDMA dma_silabs_ldma.c)
4646
zephyr_library_sources_ifdef(CONFIG_DMA_SILABS_SIWX91X dma_silabs_siwx91x.c)
47+
zephyr_library_sources_ifdef(CONFIG_DMA_SILABS_SIWX91X_GPDMA dma_silabs_siwx91x_gpdma.c)
4748
zephyr_library_sources_ifdef(CONFIG_DMA_SMARTBOND dma_smartbond.c)
4849
zephyr_library_sources_ifdef(CONFIG_DMA_NXP_SOF_HOST_DMA dma_nxp_sof_host_dma.c)
4950
zephyr_library_sources_ifdef(CONFIG_DMA_EMUL dma_emul.c)

drivers/dma/Kconfig.siwx91x

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,26 @@ config DMA_SILABS_SIWX91X
99
help
1010
Enable the High Power(HP)/Ultra Low Power(ULP) DMA driver for the Silabs SiWx91x SoC series.
1111

12+
config DMA_SILABS_SIWX91X_GPDMA
13+
bool "Silabs SiWx91x GPDMA driver"
14+
default y
15+
select SYS_MEM_BLOCKS
16+
depends on DT_HAS_SILABS_SIWX91X_GPDMA_ENABLED
17+
help
18+
Enable the GDMA driver for the Silabs SiWx91x SoC series.
19+
1220
if DMA_SILABS_SIWX91X
1321

1422
config DMA_SILABS_SIWX91X_SG_BUFFER_COUNT
1523
int "The maximum allowable number of buffers for scatter-gather transfers"
1624
default 30
1725

1826
endif
27+
28+
if DMA_SILABS_SIWX91X_GPDMA
29+
30+
config GPDMA_SILABS_SIWX91X_DESCRIPTOR_COUNT
31+
int "The maximum GPDMA descriptor count"
32+
default 32
33+
34+
endif

0 commit comments

Comments
 (0)