aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw_dmac.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2011-03-03 05:17:18 -0500
committerVinod Koul <vinod.koul@intel.com>2011-03-06 14:42:27 -0500
commita02274564dd78f7edde3c9ff197ed44f2f8a5a81 (patch)
treeffbce0c15b05ea36a1fb2470ad5ab573ba175f98 /drivers/dma/dw_dmac.c
parent569432efa7975f5795efb8142134f5a098942381 (diff)
dw_dmac: Adding support for 64 bit access width for memcpy xfers
Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw_dmac.c')
-rw-r--r--drivers/dma/dw_dmac.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
index 2b0d5e99ae71..e5d97bf9264a 100644
--- a/drivers/dma/dw_dmac.c
+++ b/drivers/dma/dw_dmac.c
@@ -583,7 +583,9 @@ dwc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src,
583 * We can be a lot more clever here, but this should take care 583 * We can be a lot more clever here, but this should take care
584 * of the most common optimization. 584 * of the most common optimization.
585 */ 585 */
586 if (!((src | dest | len) & 3)) 586 if (!((src | dest | len) & 7))
587 src_width = dst_width = 3;
588 else if (!((src | dest | len) & 3))
587 src_width = dst_width = 2; 589 src_width = dst_width = 2;
588 else if (!((src | dest | len) & 1)) 590 else if (!((src | dest | len) & 1))
589 src_width = dst_width = 1; 591 src_width = dst_width = 1;