Skip to content

Commit b1f01e4

Browse files
Shun-Chih Yuvinodkoul
authored andcommitted
dmaengine: mediatek: Add MediaTek Command-Queue DMA controller for MT6765 SoC
MediaTek Command-Queue DMA controller (CQDMA) on MT6765 SoC is dedicated to memory-to-memory transfer through queue based descriptor management. There are only 3 physical channels inside CQDMA, while the driver is extended to support 32 virtual channels for multiple dma users to issue dma requests onto the CQDMA simultaneously. Signed-off-by: Shun-Chih Yu <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
1 parent 6510223 commit b1f01e4

File tree

3 files changed

+965
-0
lines changed

3 files changed

+965
-0
lines changed

drivers/dma/mediatek/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,16 @@ config MTK_HSDMA
1111
This controller provides the channels which is dedicated to
1212
memory-to-memory transfer to offload from CPU through ring-
1313
based descriptor management.
14+
15+
config MTK_CQDMA
16+
tristate "MediaTek Command-Queue DMA controller support"
17+
depends on ARCH_MEDIATEK || COMPILE_TEST
18+
select DMA_ENGINE
19+
select DMA_VIRTUAL_CHANNELS
20+
select ASYNC_TX_ENABLE_CHANNEL_SWITCH
21+
help
22+
Enable support for Command-Queue DMA controller on MediaTek
23+
SoCs.
24+
25+
This controller provides the channels which is dedicated to
26+
memory-to-memory transfer to offload from CPU.

drivers/dma/mediatek/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
obj-$(CONFIG_MTK_HSDMA) += mtk-hsdma.o
2+
obj-$(CONFIG_MTK_CQDMA) += mtk-cqdma.o

0 commit comments

Comments
 (0)