Skip to content

Commit

Permalink
dma: axi-dmac: Add support for interleaved cyclic transfers
Browse files Browse the repository at this point in the history
An example when this mode can be enabled is where the controller
is used as a Video DMA.

Signed-off-by: Dragos Bogdan <[email protected]>
  • Loading branch information
dbogdan authored and commodo committed Aug 20, 2018
1 parent ea8d9aa commit 78f1a03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/dma/dma-axi-dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,9 @@ static struct dma_async_tx_descriptor *axi_dmac_prep_interleaved(
desc->sg[0].y_len = 1;
}

if (flags & DMA_CYCLIC)
desc->cyclic = true;

return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags);
}

Expand Down

0 comments on commit 78f1a03

Please sign in to comment.