Skip to content

Commit b7f6374

Browse files
hhhui-Lopsiff
authored andcommitted
ddma: phytium: Add DDMA controller driver support
This patch provides DDMA (DEVICE DMA) support mainly for DMA transmission on low-speed devices, such as UART/SPI. Signed-off-by: Li Guohui <liguohui2061@phytium.com.cn> Signed-off-by: Liu Tianyu <liutianyu1250@phytium.com.cn> Signed-off-by: Lan Hengyu <lanhengyu1395@phytium.com.cn> Signed-off-by: Li Mingzhe <limingzhe1839@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn> Link: deepin-community#142 (cherry picked from commit 8d9b728) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent b8e51be commit b7f6374

File tree

5 files changed

+1138
-0
lines changed

5 files changed

+1138
-0
lines changed

drivers/dma/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,14 @@ config XILINX_ZYNQMP_DPDMA
749749
driver provides the dmaengine required by the DisplayPort subsystem
750750
display driver.
751751

752+
config PHYTIUM_DDMA
753+
bool "Phytium PE220x DDMA support"
754+
depends on (ARCH_PHYTIUM || COMPILE_TEST)
755+
select DMA_ENGINE
756+
select DMA_VIRTUAL_CHANNELS
757+
help
758+
Enable support for Phytium PE220x DDMA controller.
759+
752760
# driver files
753761
source "drivers/dma/amd/Kconfig"
754762

drivers/dma/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,4 @@ obj-y += qcom/
9292
obj-y += stm32/
9393
obj-y += ti/
9494
obj-y += xilinx/
95+
obj-y += phytium/

drivers/dma/phytium/Makefile

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

0 commit comments

Comments
 (0)