• Daniel Mack's avatar
    dma: mmp_pdma: add filter function · 13b3006b
    Daniel Mack authored
    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: default avatarDaniel Mack <zonque@gmail.com>
    Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
    13b3006b
mmp_pdma.c 23.1 KB