dmaengine: dw-axi-dmac: Supports channels > 8 or hardware handshakes > 16.
authorsamin <samin.guo@starfivetech.com>
Mon, 22 Nov 2021 06:14:37 +0000 (14:14 +0800)
committersamin <samin.guo@starfivetech.com>
Tue, 23 Nov 2021 03:36:30 +0000 (11:36 +0800)
commit9b746045e4cd02cd08c482b433068a35a1e8a237
treee88940c934f5a4828da34d4a18b8b3d04c9f471f
parentecc4e687db156205001b04d2c17fa123d6edc773
dmaengine: dw-axi-dmac: Supports channels > 8 or hardware handshakes > 16.

1)Different num of chan/hw-handshakes  have different register offsets.
When the channel > 8, DMA uses DMAC_CHENREG2 instead of DMAC_CHENREG.
When the channel > 8 or hw-handshake > 16, DMA uses CHx_CFG2 instead of CHx_CFG.

2)add OSR(Outstanding Request Limit) configuration
OSR can greatly improve performance in dma-memcpy.

Signed-off-by: samin <samin.guo@starfivetech.com>
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
drivers/dma/dw-axi-dmac/dw-axi-dmac.h