• Peng Ma's avatar
    dmaengine: fsl-edma: Add eDMA support for QorIQ LS1028A platform · ed5a0ab4
    Peng Ma authored
    Our platforms(such as LS1021A, LS1012A, LS1043A, LS1046A, LS1028A) with
    below registers(CHCFG0 - CHCFG15) of eDMA as follows:
    *-----------------------------------------------------------*
    |     Offset   |	OTHERS			|		LS1028A			|
    |--------------|--------------------|-----------------------|
    |     0x0      |        CHCFG0      |           CHCFG3      |
    |--------------|--------------------|-----------------------|
    |     0x1      |        CHCFG1      |           CHCFG2      |
    |--------------|--------------------|-----------------------|
    |     0x2      |        CHCFG2      |           CHCFG1      |
    |--------------|--------------------|-----------------------|
    |     0x3      |        CHCFG3      |           CHCFG0      |
    |--------------|--------------------|-----------------------|
    |     ...      |        ......      |           ......      |
    |--------------|--------------------|-----------------------|
    |     0xC      |        CHCFG12     |           CHCFG15     |
    |--------------|--------------------|-----------------------|
    |     0xD      |        CHCFG13     |           CHCFG14     |
    |--------------|--------------------|-----------------------|
    |     0xE      |        CHCFG14     |           CHCFG13     |
    |--------------|--------------------|-----------------------|
    |     0xF      |        CHCFG15     |           CHCFG12     |
    *-----------------------------------------------------------*
    
    This patch is to improve edma driver to fit LS1028A platform.
    Signed-off-by: default avatarPeng Ma <peng.ma@nxp.com>
    Reviewed-by: default avatarRobin Gong <yibin.gong@nxp.com>
    Link: https://lore.kernel.org/r/20191212033714.4090-1-peng.ma@nxp.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
    ed5a0ab4
fsl-edma-common.h 7 KB