Skip to content

Commit e06c432

Browse files
kelvincheungvinodkoul
authored andcommitted
dmaengine: Loongson1: Add Loongson-1 APB DMA driver
Add APB DMA driver for Loongson-1 SoCs. Reviewed-by: Jiaxun Yang <[email protected]> Signed-off-by: Keguang Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 7ea270b commit e06c432

File tree

3 files changed

+670
-0
lines changed

3 files changed

+670
-0
lines changed

drivers/dma/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,15 @@ config K3_DMA
369369
Support the DMA engine for Hisilicon K3 platform
370370
devices.
371371

372+
config LOONGSON1_APB_DMA
373+
tristate "Loongson1 APB DMA support"
374+
depends on MACH_LOONGSON32 || COMPILE_TEST
375+
select DMA_ENGINE
376+
select DMA_VIRTUAL_CHANNELS
377+
help
378+
This selects support for the APB DMA controller in Loongson1 SoCs,
379+
which is required by Loongson1 NAND and audio support.
380+
372381
config LPC18XX_DMAMUX
373382
bool "NXP LPC18xx/43xx DMA MUX for PL080"
374383
depends on ARCH_LPC18XX || COMPILE_TEST

drivers/dma/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ obj-$(CONFIG_INTEL_IDMA64) += idma64.o
4949
obj-$(CONFIG_INTEL_IOATDMA) += ioat/
5050
obj-y += idxd/
5151
obj-$(CONFIG_K3_DMA) += k3dma.o
52+
obj-$(CONFIG_LOONGSON1_APB_DMA) += loongson1-apb-dma.o
5253
obj-$(CONFIG_LPC18XX_DMAMUX) += lpc18xx-dmamux.o
5354
obj-$(CONFIG_LS2X_APB_DMA) += ls2x-apb-dma.o
5455
obj-$(CONFIG_MILBEAUT_HDMAC) += milbeaut-hdmac.o

0 commit comments

Comments
 (0)