Skip to content

Commit e5e7ee8

Browse files
abonislawskifabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent 9bb0b6d commit e5e7ee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/dma/dma_dw_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ int dw_dma_config(const struct device *dev, uint32_t channel,
292292
/* Assign a hardware handshake interface (0-15) to the
293293
* destination of the channel
294294
*/
295-
chan_data->cfg_hi |= DW_CFGH_DST_PER(cfg->dma_slot);
295+
chan_data->cfg_hi |= DW_CFGH_DST(cfg->dma_slot);
296296
break;
297297
case PERIPHERAL_TO_MEMORY:
298298
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,
311311
/* Assign a hardware handshake interface (0-15) to the
312312
* source of the channel
313313
*/
314-
chan_data->cfg_hi |= DW_CFGH_SRC_PER(cfg->dma_slot);
314+
chan_data->cfg_hi |= DW_CFGH_SRC(cfg->dma_slot);
315315
break;
316316
default:
317317
LOG_ERR("%s: dma %s channel %d invalid direction %d",

0 commit comments

Comments
 (0)