Skip to content

Commit

Permalink
dmaengine: mediatek: Add MediaTek Command-Queue DMA controller for MT…
Browse files Browse the repository at this point in the history
…6765 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 <shun-chih.yu@mediatek.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Shun-Chih Yu authored and Vinod Koul committed Nov 11, 2018
1 parent 6510223 commit b1f01e4
Show file tree
Hide file tree
Showing 3 changed files with 965 additions and 0 deletions.
13 changes: 13 additions & 0 deletions drivers/dma/mediatek/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@ config MTK_HSDMA
This controller provides the channels which is dedicated to
memory-to-memory transfer to offload from CPU through ring-
based descriptor management.

config MTK_CQDMA
tristate "MediaTek Command-Queue DMA controller support"
depends on ARCH_MEDIATEK || COMPILE_TEST
select DMA_ENGINE
select DMA_VIRTUAL_CHANNELS
select ASYNC_TX_ENABLE_CHANNEL_SWITCH
help
Enable support for Command-Queue DMA controller on MediaTek
SoCs.

This controller provides the channels which is dedicated to
memory-to-memory transfer to offload from CPU.
1 change: 1 addition & 0 deletions drivers/dma/mediatek/Makefile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
obj-$(CONFIG_MTK_HSDMA) += mtk-hsdma.o
obj-$(CONFIG_MTK_CQDMA) += mtk-cqdma.o
Loading

0 comments on commit b1f01e4

Please sign in to comment.