diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2015-12-14 22:47:42 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-12-18 11:17:26 +0530 |
commit | 020c62ae38946cae01571a0b4e6f445dfdb7ec1c (patch) | |
tree | 41cdbbab4b18de3734f87f351c839065752d0494 /drivers/dma | |
parent | 23e6723c060faf5a0fc8d7bfbec440d29943fa99 (diff) |
dmaengine: omap-dma: Add support for DMA filter mapping to slave devices
Add support for providing device to filter_fn mapping so client drivers
can switch to use the dma_request_chan() API.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/omap-dma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index 1dfc71c90123..48f77c289cd3 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c @@ -1203,6 +1203,10 @@ static int omap_dma_probe(struct platform_device *pdev) return rc; } + od->ddev.filter.map = od->plat->slave_map; + od->ddev.filter.mapcnt = od->plat->slavecnt; + od->ddev.filter.fn = omap_dma_filter_fn; + rc = dma_async_device_register(&od->ddev); if (rc) { pr_warn("OMAP-DMA: failed to register slave DMA engine device: %d\n", |