diff options
author | Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> | 2016-11-25 09:59:06 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-11-29 22:27:17 -0500 |
commit | 258f2277a93fe0e3cdac275264d275c526170db6 (patch) | |
tree | 59cc5578cc653685388d4e55236a76da17d803af | |
parent | 9dcd74089a1ecf73ea4a355ee097b5b218ccf3dc (diff) |
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>
-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) | |||
129 | if (of_property_read_bool(np, "is_private")) | 129 | if (of_property_read_bool(np, "is_private")) |
130 | pdata->is_private = true; | 130 | pdata->is_private = true; |
131 | 131 | ||
132 | /* | ||
133 | * All known devices, which use DT for configuration, support | ||
134 | * memory-to-memory transfers. So enable it by default. | ||
135 | */ | ||
136 | pdata->is_memcpy = true; | ||
137 | |||
132 | if (!of_property_read_u32(np, "chan_allocation_order", &tmp)) | 138 | if (!of_property_read_u32(np, "chan_allocation_order", &tmp)) |
133 | pdata->chan_allocation_order = (unsigned char)tmp; | 139 | pdata->chan_allocation_order = (unsigned char)tmp; |
134 | 140 | ||