Messages in this thread Patch in this message | | | From | Andy Shevchenko <> | Subject | [PATCH 3/3] dw_dmac: set default alignment | Date | Fri, 13 Jul 2012 11:09:34 +0300 |
| |
The default values are filled to support at least mem-to-mem tests provided by dmatest module. It makes sense to choose the 4 bytes (2 least significant bits) alignment by the default.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- drivers/dma/dw_dmac.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 3d061c6..2a19ab6 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c @@ -1485,6 +1485,12 @@ static int __devinit dw_probe(struct platform_device *pdev) dw->dma.device_tx_status = dwc_tx_status; dw->dma.device_issue_pending = dwc_issue_pending; + /* Set default alignment */ + dw->dma.copy_align = 2; + dw->dma.xor_align = 2; + dw->dma.pq_align = 2; + dw->dma.fill_align = 2; + dma_writel(dw, CFG, DW_CFG_DMA_EN); printk(KERN_INFO "%s: DesignWare DMA Controller, %d channels\n", -- 1.7.10.4
| |