summaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw
diff options
context:
space:
mode:
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>2016-11-25 17:59:06 +0300
committerVinod Koul <vinod.koul@intel.com>2016-11-30 08:57:17 +0530
commit258f2277a93fe0e3cdac275264d275c526170db6 (patch)
tree59cc5578cc653685388d4e55236a76da17d803af /drivers/dma/dw
parent9dcd74089a1ecf73ea4a355ee097b5b218ccf3dc (diff)
downloadblackbird-op-linux-258f2277a93fe0e3cdac275264d275c526170db6.tar.gz
blackbird-op-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')
-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;
OpenPOWER on IntegriCloud