DMA:pl330: add burst length config
authorhhb <hhb@rock-chips.com>
Fri, 17 Oct 2014 01:17:41 +0000 (09:17 +0800)
committerhhb <hhb@rock-chips.com>
Fri, 17 Oct 2014 01:17:41 +0000 (09:17 +0800)
drivers/dma/pl330.c

index 2ea17d0f2970663bb6666fd93628d10eefcb76b1..5a5614d83f34dbc65e27ab70cf2639394eb10a7e 100755 (executable)
@@ -2918,7 +2918,11 @@ static struct dma_async_tx_descriptor *pl330_prep_dma_cyclic(
                }
 
                desc->rqcfg.brst_size = pch->burst_sz;
+#ifdef CONFIG_ARCH_ROCKCHIP
+               desc->rqcfg.brst_len = pch->burst_len;
+#else
                desc->rqcfg.brst_len = 1;
+#endif
                desc->req.infiniteloop = *infinite;
                fill_px(&desc->px, dst, src, period_len);
 
@@ -3047,7 +3051,11 @@ pl330_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
                }
 
                desc->rqcfg.brst_size = pch->burst_sz;
+#ifdef CONFIG_ARCH_ROCKCHIP
+               desc->rqcfg.brst_len = pch->burst_len;
+#else
                desc->rqcfg.brst_len = 1;
+#endif
        }
 
        /* Return the last desc in the chain */