diff options
author | Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> | 2016-11-25 17:59:06 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-11-30 06:27:17 +0300 |
commit | 258f2277a93fe0e3cdac275264d275c526170db6 (patch) | |
tree | 59cc5578cc653685388d4e55236a76da17d803af /drivers/dma | |
parent | 9dcd74089a1ecf73ea4a355ee097b5b218ccf3dc (diff) | |
download | linux-258f2277a93fe0e3cdac275264d275c526170db6.tar.xz |
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')
-rw-r--r-- | drivers/dma/dw/platform.c | 6 |
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; |