]> git.karo-electronics.de Git - linux-beck.git/commit
dma: mmp_pdma: add filter function
authorDaniel Mack <zonque@gmail.com>
Sat, 10 Aug 2013 16:52:18 +0000 (18:52 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 14 Aug 2013 08:25:15 +0000 (13:55 +0530)
commit13b3006b8ebd60926a60fc378ff6fe8affa9a194
tree93c92d4f95fc53ab9f8e5e14ee7c2e21e2141781
parent1ac0e845c10685f3643fe81a08c13be4b9416bce
dma: mmp_pdma: add filter function

PXA peripherals need to obtain specific DMA request ids which will
eventually be stored in the DRCMR register.

Currently, clients are expected to store that number inside the slave
config block as slave_id, which is unfortunately incompatible with the
way DMA resources are handled in DT environments.

This patch adds a filter function which stores the filter parameter
passed in by of-dma.c into the channel's drcmr register.

For backward compatability, cfg->slave_id is still used if set to
a non-zero value.

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
include/linux/dma/mmp-pdma.h [new file with mode: 0644]