]> git.baikalelectronics.ru Git - kernel.git/commit
dma: mmp_pdma: make the controller a DMA provider
authorDaniel Mack <zonque@gmail.com>
Sat, 10 Aug 2013 16:52:19 +0000 (18:52 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 14 Aug 2013 08:25:15 +0000 (13:55 +0530)
commit522d1aefef3c2422fe414f4e28076e82489ccf94
tree5ee01d6efb976c7aa758aa716a82ab43d657db5e
parente83d8590d05b6e13f77581e6800b0d6d132ca0af
dma: mmp_pdma: make the controller a DMA provider

This patch makes the mmp_pdma controller able to provide DMA resources
in DT environments by providing an dma xlate function.

of_dma_simple_xlate() isn't used here, because if fails to handle
multiple different DMA engines or several instances of the same
controller. Instead, a private implementation is provided that makes use
of the newly introduced dma_get_slave_channel() call.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mmp_pdma.c