dmaengine: hisilicon: Adapt DMA driver to HiSilicon IP09
authorJie Hai <haijie1@huawei.com>
Tue, 30 Aug 2022 06:22:49 +0000 (14:22 +0800)
committerVinod Koul <vkoul@kernel.org>
Sun, 4 Sep 2022 17:12:35 +0000 (22:42 +0530)
commitfd5273fa0816ce3df10538686ea76c0d70b6d623
tree1d0dabff6b94b35b0cae0c2cc0991c5c61269b92
parent4aa69cf7ed44590e8702eb970ff6951e33dcdabf
dmaengine: hisilicon: Adapt DMA driver to HiSilicon IP09

The HiSilicon IP08 and HiSilicon IP09 are DMA iEPs, they
have the same pci device id but different pci revision.
Unfortunately, they have different register layouts, so
the origin driver cannot run on HiSilicon IP09 correctly.

This patch enables the driver to adapt to HiSilicon IP09.
HiSilicon IP09 offers 4 channels, each channel has a send
queue, a complete queue and an interrupt to help to do tasks.
This DMA engine can do memory copy between memory blocks.

Signed-off-by: Jie Hai <haijie1@huawei.com>
Acked-by: Zhou Wang <wangzhou1@hisilicon.com>
Link: https://lore.kernel.org/r/20220830062251.52993-6-haijie1@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/hisi_dma.c