Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: loongson: New directory for Loongson DMA controllers drivers

Gather the Loongson DMA controllers under drivers/dma/loongson/

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Reviewed-by: Keguang Zhang <keguang.zhang@gmail.com>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Link: https://patch.msgid.link/0a0853a85630724741061f6fe08680610e49a06e.1772853681.git.zhoubinbin@loongson.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Binbin Zhou and committed by
Vinod Koul
ffee2dc0 2d5c2952

+42 -30
+2 -1
MAINTAINERS
··· 14953 14953 L: dmaengine@vger.kernel.org 14954 14954 S: Maintained 14955 14955 F: Documentation/devicetree/bindings/dma/loongson,ls2x-apbdma.yaml 14956 - F: drivers/dma/loongson2-apb-dma.c 14956 + F: drivers/dma/loongson/loongson2-apb-dma.c 14957 14957 14958 14958 LOONGSON LS2X I2C DRIVER 14959 14959 M: Binbin Zhou <zhoubinbin@loongson.cn> ··· 17721 17721 F: arch/mips/configs/loongson1_defconfig 17722 17722 F: arch/mips/loongson32/ 17723 17723 F: drivers/*/*loongson1* 17724 + F: drivers/dma/loongson/loongson1-apb-dma.c 17724 17725 F: drivers/mtd/nand/raw/loongson-nand-controller.c 17725 17726 F: drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c 17726 17727 F: sound/soc/loongson/loongson1_ac97.c
+2 -23
drivers/dma/Kconfig
··· 376 376 Support the DMA engine for Hisilicon K3 platform 377 377 devices. 378 378 379 - config LOONGSON1_APB_DMA 380 - tristate "Loongson1 APB DMA support" 381 - depends on MACH_LOONGSON32 || COMPILE_TEST 382 - select DMA_ENGINE 383 - select DMA_VIRTUAL_CHANNELS 384 - help 385 - This selects support for the APB DMA controller in Loongson1 SoCs, 386 - which is required by Loongson1 NAND and audio support. 387 - 388 - config LOONGSON2_APB_DMA 389 - tristate "Loongson2 APB DMA support" 390 - depends on LOONGARCH || COMPILE_TEST 391 - select DMA_ENGINE 392 - select DMA_VIRTUAL_CHANNELS 393 - help 394 - Support for the Loongson2 APB DMA controller driver. The 395 - DMA controller is having single DMA channel which can be 396 - configured for different peripherals like audio, nand, sdio 397 - etc which is in APB bus. 398 - 399 - This DMA controller transfers data from memory to peripheral fifo. 400 - It does not support memory to memory data transfer. 401 - 402 379 config LPC18XX_DMAMUX 403 380 bool "NXP LPC18xx/43xx DMA MUX for PL080" 404 381 depends on ARCH_LPC18XX || COMPILE_TEST ··· 759 782 source "drivers/dma/fsl-dpaa2-qdma/Kconfig" 760 783 761 784 source "drivers/dma/lgm/Kconfig" 785 + 786 + source "drivers/dma/loongson/Kconfig" 762 787 763 788 source "drivers/dma/stm32/Kconfig" 764 789
+1 -2
drivers/dma/Makefile
··· 49 49 obj-$(CONFIG_INTEL_IOATDMA) += ioat/ 50 50 obj-y += idxd/ 51 51 obj-$(CONFIG_K3_DMA) += k3dma.o 52 - obj-$(CONFIG_LOONGSON1_APB_DMA) += loongson1-apb-dma.o 53 - obj-$(CONFIG_LOONGSON2_APB_DMA) += loongson2-apb-dma.o 54 52 obj-$(CONFIG_LPC18XX_DMAMUX) += lpc18xx-dmamux.o 55 53 obj-$(CONFIG_LPC32XX_DMAMUX) += lpc32xx-dmamux.o 56 54 obj-$(CONFIG_MILBEAUT_HDMAC) += milbeaut-hdmac.o ··· 86 88 obj-$(CONFIG_INTEL_LDMA) += lgm/ 87 89 88 90 obj-y += amd/ 91 + obj-y += loongson/ 89 92 obj-y += mediatek/ 90 93 obj-y += qcom/ 91 94 obj-y += stm32/
+30
drivers/dma/loongson/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + # 3 + # Loongson DMA controllers drivers 4 + # 5 + if MACH_LOONGSON32 || MACH_LOONGSON64 || COMPILE_TEST 6 + 7 + config LOONGSON1_APB_DMA 8 + tristate "Loongson1 APB DMA support" 9 + depends on MACH_LOONGSON32 || COMPILE_TEST 10 + select DMA_ENGINE 11 + select DMA_VIRTUAL_CHANNELS 12 + help 13 + This selects support for the APB DMA controller in Loongson1 SoCs, 14 + which is required by Loongson1 NAND and audio support. 15 + 16 + config LOONGSON2_APB_DMA 17 + tristate "Loongson2 APB DMA support" 18 + depends on MACH_LOONGSON64 || COMPILE_TEST 19 + select DMA_ENGINE 20 + select DMA_VIRTUAL_CHANNELS 21 + help 22 + Support for the Loongson2 APB DMA controller driver. The 23 + DMA controller is having single DMA channel which can be 24 + configured for different peripherals like audio, nand, sdio 25 + etc which is in APB bus. 26 + 27 + This DMA controller transfers data from memory to peripheral fifo. 28 + It does not support memory to memory data transfer. 29 + 30 + endif
+3
drivers/dma/loongson/Makefile
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + obj-$(CONFIG_LOONGSON1_APB_DMA) += loongson1-apb-dma.o 3 + obj-$(CONFIG_LOONGSON2_APB_DMA) += loongson2-apb-dma.o
+2 -2
drivers/dma/loongson1-apb-dma.c drivers/dma/loongson/loongson1-apb-dma.c
··· 16 16 #include <linux/platform_device.h> 17 17 #include <linux/slab.h> 18 18 19 - #include "dmaengine.h" 20 - #include "virt-dma.h" 19 + #include "../dmaengine.h" 20 + #include "../virt-dma.h" 21 21 22 22 /* Loongson-1 DMA Control Register */ 23 23 #define LS1X_DMA_CTRL 0x0
+2 -2
drivers/dma/loongson2-apb-dma.c drivers/dma/loongson/loongson2-apb-dma.c
··· 17 17 #include <linux/platform_device.h> 18 18 #include <linux/slab.h> 19 19 20 - #include "dmaengine.h" 21 - #include "virt-dma.h" 20 + #include "../dmaengine.h" 21 + #include "../virt-dma.h" 22 22 23 23 /* Global Configuration Register */ 24 24 #define LDMA_ORDER_ERG 0x0