summaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw/platform.c
diff options
context:
space:
mode:
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>2016-11-25 15:59:06 +0100
committerVinod Koul <vinod.koul@intel.com>2016-11-30 04:27:17 +0100
commit258f2277a93fe0e3cdac275264d275c526170db6 (patch)
tree59cc5578cc653685388d4e55236a76da17d803af /drivers/dma/dw/platform.c
parentdmaengine: at_xdmac: Use dma_pool_zalloc (diff)
downloadlinux-258f2277a93fe0e3cdac275264d275c526170db6.tar.xz
linux-258f2277a93fe0e3cdac275264d275c526170db6.zip
dmaengine: DW DMAC: enable memory-to-memory transfers support
All known devices, which use DT for configuration, support memory-to-memory transfers. So enable it by default, if we read configuration from DT. Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw/platform.c')
-rw-r--r--drivers/dma/dw/platform.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dma/dw/platform.c b/drivers/dma/dw/platform.c
index 5bda0eb9f393..aa7a5c1b9bf8 100644
--- a/drivers/dma/dw/platform.c
+++ b/drivers/dma/dw/platform.c
@@ -129,6 +129,12 @@ dw_dma_parse_dt(struct platform_device *pdev)
if (of_property_read_bool(np, "is_private"))
pdata->is_private = true;
+ /*
+ * All known devices, which use DT for configuration, support
+ * memory-to-memory transfers. So enable it by default.
+ */
+ pdata->is_memcpy = true;
+
if (!of_property_read_u32(np, "chan_allocation_order", &tmp))
pdata->chan_allocation_order = (unsigned char)tmp;