drivers: dma: siwx91x: SRAM desc alignment bug fix

Addressed an issue where alignment of dma desc varaible
of dma0 is corrected to 1024 instead of 512.

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
This commit is contained in:
Sai Santhosh Malae 2025-04-21 12:14:16 +05:30 committed by Benjamin Cabé
commit 0d547d4e8a

View file

@ -671,7 +671,7 @@ static DEVICE_API(dma, siwx91x_dma_api) = {
CONFIG_DMA_SILABS_SIWX91X_SG_BUFFER_COUNT, 4); \ CONFIG_DMA_SILABS_SIWX91X_SG_BUFFER_COUNT, 4); \
COND_CODE_1(DT_INST_NODE_HAS_PROP(inst, silabs_sram_region), \ COND_CODE_1(DT_INST_NODE_HAS_PROP(inst, silabs_sram_region), \
(), \ (), \
(static __aligned(512) RSI_UDMA_DESC_T \ (static __aligned(1024) RSI_UDMA_DESC_T \
siwx91x_dma_chan_desc##inst[DT_INST_PROP(inst, dma_channels) * 2];)) \ siwx91x_dma_chan_desc##inst[DT_INST_PROP(inst, dma_channels) * 2];)) \
static struct dma_siwx91x_channel_info \ static struct dma_siwx91x_channel_info \
zephyr_channel_info_##inst[DT_INST_PROP(inst, dma_channels)]; \ zephyr_channel_info_##inst[DT_INST_PROP(inst, dma_channels)]; \