Skip to content

Commit

Permalink
dmaengine: mediatek: Add MediaTek UART APDMA support
Browse files Browse the repository at this point in the history
Add 8250 UART APDMA to support MediaTek UART. If MediaTek UART is
enabled by SERIAL_8250_MT6577, and we can enable this driver to offload
the UART device moving bytes.

Signed-off-by: Long Cheng <long.cheng@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Long Cheng authored and Vinod Koul committed Jun 7, 2019
1 parent 2fe5575 commit 9135408
Show file tree
Hide file tree
Showing 3 changed files with 678 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/dma/mediatek/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ config MTK_CQDMA

This controller provides the channels which is dedicated to
memory-to-memory transfer to offload from CPU.

config MTK_UART_APDMA
tristate "MediaTek SoCs APDMA support for UART"
depends on OF && SERIAL_8250_MT6577
select DMA_ENGINE
select DMA_VIRTUAL_CHANNELS
help
Support for the UART DMA engine found on MediaTek MTK SoCs.
When SERIAL_8250_MT6577 is enabled, and if you want to use DMA,
you can enable the config. The DMA engine can only be used
with MediaTek SoCs.
1 change: 1 addition & 0 deletions drivers/dma/mediatek/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
obj-$(CONFIG_MTK_UART_APDMA) += mtk-uart-apdma.o
obj-$(CONFIG_MTK_HSDMA) += mtk-hsdma.o
obj-$(CONFIG_MTK_CQDMA) += mtk-cqdma.o
Loading

0 comments on commit 9135408

Please sign in to comment.