diff options
author | Cai Huoqing <cai.huoqing@linux.dev> | 2023-05-20 13:08:51 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-05-24 12:20:45 +0530 |
commit | e74c39573d35e9ac441090ff8183aa3dc2540649 (patch) | |
tree | 910f57d5b6f1d7b61baa3fb5672efd27125db077 /include/linux | |
parent | f9c3403f1fabf6b21dad67a2a0641ea18a48de21 (diff) | |
download | linux-stable-e74c39573d35e9ac441090ff8183aa3dc2540649.tar.gz linux-stable-e74c39573d35e9ac441090ff8183aa3dc2540649.tar.bz2 linux-stable-e74c39573d35e9ac441090ff8183aa3dc2540649.zip |
dmaengine: dw-edma: Add support for native HDMA
Add support for HDMA NATIVE, as long the IP design has set
the compatible register map parameter-HDMA_NATIVE,
which allows compatibility for native HDMA register configuration.
The HDMA Hyper-DMA IP is an enhancement of the eDMA embedded-DMA IP.
And the native HDMA registers are different from eDMA, so this patch
add support for HDMA NATIVE mode.
HDMA write and read channels operate independently to maximize
the performance of the HDMA read and write data transfer over
the link When you configure the HDMA with multiple read channels,
then it uses a round robin (RR) arbitration scheme to select
the next read channel to be serviced.The same applies when you
have multiple write channels.
The native HDMA driver also supports a maximum of 16 independent
channels (8 write + 8 read), which can run simultaneously.
Both SAR (Source Address Register) and DAR (Destination Address Register)
are aligned to byte.
Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Link: https://lore.kernel.org/r/20230520050854.73160-4-cai.huoqing@linux.dev
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/dma/edma.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/dma/edma.h b/include/linux/dma/edma.h index ed401c965a87..3080747689f6 100644 --- a/include/linux/dma/edma.h +++ b/include/linux/dma/edma.h @@ -48,7 +48,8 @@ struct dw_edma_plat_ops { enum dw_edma_map_format { EDMA_MF_EDMA_LEGACY = 0x0, EDMA_MF_EDMA_UNROLL = 0x1, - EDMA_MF_HDMA_COMPAT = 0x5 + EDMA_MF_HDMA_COMPAT = 0x5, + EDMA_MF_HDMA_NATIVE = 0x7, }; /** |