Skip to content

Commit 548c459

Browse files
moore-brosVinod Koul
authored andcommitted
dmaengine: mediatek: Add MediaTek High-Speed DMA controller for MT7622 and MT7623 SoC
MediaTek High-Speed DMA controller (HSDMA) on MT7622 and MT7623 SoC has a single ring is dedicated to memory-to-memory transfer through ring based descriptor management. Even though there is only one physical ring available inside HSDMA, the driver can be easily extended to the support of multiple virtual channels processing simultaneously by means of DMA_VIRTUAL_CHANNELS effort. Signed-off-by: Sean Wang <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Fengguang Wu <[email protected]> Cc: Julia Lawall <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
1 parent 33f32c0 commit 548c459

File tree

5 files changed

+1073
-0
lines changed

5 files changed

+1073
-0
lines changed

drivers/dma/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,8 @@ config ZX_DMA
633633
# driver files
634634
source "drivers/dma/bestcomm/Kconfig"
635635

636+
source "drivers/dma/mediatek/Kconfig"
637+
636638
source "drivers/dma/qcom/Kconfig"
637639

638640
source "drivers/dma/dw/Kconfig"

drivers/dma/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,6 @@ obj-$(CONFIG_XGENE_DMA) += xgene-dma.o
7575
obj-$(CONFIG_ZX_DMA) += zx_dma.o
7676
obj-$(CONFIG_ST_FDMA) += st_fdma.o
7777

78+
obj-y += mediatek/
7879
obj-y += qcom/
7980
obj-y += xilinx/

drivers/dma/mediatek/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
config MTK_HSDMA
3+
tristate "MediaTek High-Speed DMA controller support"
4+
depends on ARCH_MEDIATEK || COMPILE_TEST
5+
select DMA_ENGINE
6+
select DMA_VIRTUAL_CHANNELS
7+
---help---
8+
Enable support for High-Speed DMA controller on MediaTek
9+
SoCs.
10+
11+
This controller provides the channels which is dedicated to
12+
memory-to-memory transfer to offload from CPU through ring-
13+
based descriptor management.

drivers/dma/mediatek/Makefile

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

0 commit comments

Comments
 (0)