Skip to content

Commit 71e7d3c

Browse files
AaronDotvinodkoul
authored andcommitted
dmaengine: ls2x-apb: New driver for the Loongson LS2X APB DMA controller
The Loongson LS2X APB DMA controller is available on Loongson-2K chips. It is a single-channel, configurable DMA controller IP core based on the AXI bus, whose main function is to integrate DMA functionality on a chip dedicated to carrying data between memory and peripherals in APB bus (e.g. nand). Signed-off-by: Binbin Zhou <[email protected]> Signed-off-by: Yingkun Meng <[email protected]> Link: https://lore.kernel.org/r/8df2a0199434fba3535831082966c2442ecf1cae.1702365725.git.zhoubinbin@loongson.cn Signed-off-by: Vinod Koul <[email protected]>
1 parent 3b3b533 commit 71e7d3c

File tree

4 files changed

+721
-0
lines changed

4 files changed

+721
-0
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12512,6 +12512,7 @@ M: Binbin Zhou <[email protected]>
1251212512
1251312513
S: Maintained
1251412514
F: Documentation/devicetree/bindings/dma/loongson,ls2x-apbdma.yaml
12515+
F: drivers/dma/ls2x-apb-dma.c
1251512516

1251612517
LOONGSON LS2X I2C DRIVER
1251712518
M: Binbin Zhou <[email protected]>

drivers/dma/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,20 @@ config LPC18XX_DMAMUX
378378
Enable support for DMA on NXP LPC18xx/43xx platforms
379379
with PL080 and multiplexed DMA request lines.
380380

381+
config LS2X_APB_DMA
382+
tristate "Loongson LS2X APB DMA support"
383+
depends on LOONGARCH || COMPILE_TEST
384+
select DMA_ENGINE
385+
select DMA_VIRTUAL_CHANNELS
386+
help
387+
Support for the Loongson LS2X APB DMA controller driver. The
388+
DMA controller is having single DMA channel which can be
389+
configured for different peripherals like audio, nand, sdio
390+
etc which is in APB bus.
391+
392+
This DMA controller transfers data from memory to peripheral fifo.
393+
It does not support memory to memory data transfer.
394+
381395
config MCF_EDMA
382396
tristate "Freescale eDMA engine support, ColdFire mcf5441x SoCs"
383397
depends on M5441x || COMPILE_TEST

drivers/dma/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ obj-$(CONFIG_INTEL_IOATDMA) += ioat/
4848
obj-y += idxd/
4949
obj-$(CONFIG_K3_DMA) += k3dma.o
5050
obj-$(CONFIG_LPC18XX_DMAMUX) += lpc18xx-dmamux.o
51+
obj-$(CONFIG_LS2X_APB_DMA) += ls2x-apb-dma.o
5152
obj-$(CONFIG_MILBEAUT_HDMAC) += milbeaut-hdmac.o
5253
obj-$(CONFIG_MILBEAUT_XDMAC) += milbeaut-xdmac.o
5354
obj-$(CONFIG_MMP_PDMA) += mmp_pdma.o

0 commit comments

Comments
 (0)