1
0
Fork 0

MLK-22239-1: dmaengine: imx-sdma: Support 24bit/3bytes for sg mode

Support 24bit/3bytes for sg mode.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Robin Gong <yibin.gong@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Shengjiu Wang 2019-07-11 11:05:14 +08:00 committed by Dong Aisheng
parent b9416dfe21
commit 95fdc2b77f
1 changed files with 3 additions and 0 deletions

View File

@ -1680,6 +1680,9 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg(
if (count & 3 || sg->dma_address & 3)
goto err_bd_out;
break;
case DMA_SLAVE_BUSWIDTH_3_BYTES:
bd->mode.command = 3;
break;
case DMA_SLAVE_BUSWIDTH_2_BYTES:
bd->mode.command = 2;
if (count & 1 || sg->dma_address & 1)