From e5e7ee88a324e99ff68faa291f5871d959e27f15 Mon Sep 17 00:00:00 2001 From: Adrian Bonislawski Date: Fri, 2 Sep 2022 16:13:28 +0200 Subject: [PATCH] dma: gpdma: fix channel config This will use DW_CFGH_DST instead of DW_CFGH_DST_PER to correctly setup cfg_hi. This is critical for ALH transfer. Signed-off-by: Adrian Bonislawski --- drivers/dma/dma_dw_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/dma_dw_common.c b/drivers/dma/dma_dw_common.c index 749a508cc67..90d19aebb17 100644 --- a/drivers/dma/dma_dw_common.c +++ b/drivers/dma/dma_dw_common.c @@ -292,7 +292,7 @@ int dw_dma_config(const struct device *dev, uint32_t channel, /* Assign a hardware handshake interface (0-15) to the * destination of the channel */ - chan_data->cfg_hi |= DW_CFGH_DST_PER(cfg->dma_slot); + chan_data->cfg_hi |= DW_CFGH_DST(cfg->dma_slot); break; case PERIPHERAL_TO_MEMORY: lli_desc->ctrl_lo |= DW_CTLL_FC_P2M | DW_CTLL_SRC_FIX | @@ -311,7 +311,7 @@ int dw_dma_config(const struct device *dev, uint32_t channel, /* Assign a hardware handshake interface (0-15) to the * source of the channel */ - chan_data->cfg_hi |= DW_CFGH_SRC_PER(cfg->dma_slot); + chan_data->cfg_hi |= DW_CFGH_SRC(cfg->dma_slot); break; default: LOG_ERR("%s: dma %s channel %d invalid direction %d",