dmaengine: dw-axi-dmac: support DMAX_NUM_CHANNELS > 8
authorPandith N <pandith.n@intel.com>
Fri, 1 Oct 2021 14:08:10 +0000 (19:38 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 18 Oct 2021 06:44:19 +0000 (12:14 +0530)
commit824351668a413af7d6d88e4ee2c9bee7c60daad2
tree066f04e26911f68849ff4693675a0ec964468b95
parentaf229d2c2557b5cf2a3b1eb39847ec1de7446873
dmaengine: dw-axi-dmac: support DMAX_NUM_CHANNELS > 8

Added support for DMA controller with more than 8 channels.
DMAC register map changes based on number of channels.

Enabling DMAC channel:
DMAC_CHENREG has to be used when number of channels <= 8
DMAC_CHENREG2 has to be used when number of channels > 8

Configuring DMA channel:
CHx_CFG has to be used when number of channels <= 8
CHx_CFG2 has to be used when number of channels > 8

Suspending and resuming channel:
DMAC_CHENREG has to be used when number of channels <= 8 DMAC_CHSUSPREG
has to be used for suspending a channel > 8

Signed-off-by: Pandith N <pandith.n@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211001140812.24977-2-pandith.n@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
drivers/dma/dw-axi-dmac/dw-axi-dmac.h