mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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>
This commit is contained in:
parent
2d5c2952b9
commit
ffee2dc04e
|
|
@ -14953,7 +14953,7 @@ M: Binbin Zhou <zhoubinbin@loongson.cn>
|
|||
L: dmaengine@vger.kernel.org
|
||||
S: Maintained
|
||||
F: Documentation/devicetree/bindings/dma/loongson,ls2x-apbdma.yaml
|
||||
F: drivers/dma/loongson2-apb-dma.c
|
||||
F: drivers/dma/loongson/loongson2-apb-dma.c
|
||||
|
||||
LOONGSON LS2X I2C DRIVER
|
||||
M: Binbin Zhou <zhoubinbin@loongson.cn>
|
||||
|
|
@ -17721,6 +17721,7 @@ F: arch/mips/boot/dts/loongson/loongson1*
|
|||
F: arch/mips/configs/loongson1_defconfig
|
||||
F: arch/mips/loongson32/
|
||||
F: drivers/*/*loongson1*
|
||||
F: drivers/dma/loongson/loongson1-apb-dma.c
|
||||
F: drivers/mtd/nand/raw/loongson-nand-controller.c
|
||||
F: drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c
|
||||
F: sound/soc/loongson/loongson1_ac97.c
|
||||
|
|
|
|||
|
|
@ -376,29 +376,6 @@ config K3_DMA
|
|||
Support the DMA engine for Hisilicon K3 platform
|
||||
devices.
|
||||
|
||||
config LOONGSON1_APB_DMA
|
||||
tristate "Loongson1 APB DMA support"
|
||||
depends on MACH_LOONGSON32 || COMPILE_TEST
|
||||
select DMA_ENGINE
|
||||
select DMA_VIRTUAL_CHANNELS
|
||||
help
|
||||
This selects support for the APB DMA controller in Loongson1 SoCs,
|
||||
which is required by Loongson1 NAND and audio support.
|
||||
|
||||
config LOONGSON2_APB_DMA
|
||||
tristate "Loongson2 APB DMA support"
|
||||
depends on LOONGARCH || COMPILE_TEST
|
||||
select DMA_ENGINE
|
||||
select DMA_VIRTUAL_CHANNELS
|
||||
help
|
||||
Support for the Loongson2 APB DMA controller driver. The
|
||||
DMA controller is having single DMA channel which can be
|
||||
configured for different peripherals like audio, nand, sdio
|
||||
etc which is in APB bus.
|
||||
|
||||
This DMA controller transfers data from memory to peripheral fifo.
|
||||
It does not support memory to memory data transfer.
|
||||
|
||||
config LPC18XX_DMAMUX
|
||||
bool "NXP LPC18xx/43xx DMA MUX for PL080"
|
||||
depends on ARCH_LPC18XX || COMPILE_TEST
|
||||
|
|
@ -783,6 +760,8 @@ source "drivers/dma/fsl-dpaa2-qdma/Kconfig"
|
|||
|
||||
source "drivers/dma/lgm/Kconfig"
|
||||
|
||||
source "drivers/dma/loongson/Kconfig"
|
||||
|
||||
source "drivers/dma/stm32/Kconfig"
|
||||
|
||||
# clients
|
||||
|
|
|
|||
|
|
@ -49,8 +49,6 @@ obj-$(CONFIG_INTEL_IDMA64) += idma64.o
|
|||
obj-$(CONFIG_INTEL_IOATDMA) += ioat/
|
||||
obj-y += idxd/
|
||||
obj-$(CONFIG_K3_DMA) += k3dma.o
|
||||
obj-$(CONFIG_LOONGSON1_APB_DMA) += loongson1-apb-dma.o
|
||||
obj-$(CONFIG_LOONGSON2_APB_DMA) += loongson2-apb-dma.o
|
||||
obj-$(CONFIG_LPC18XX_DMAMUX) += lpc18xx-dmamux.o
|
||||
obj-$(CONFIG_LPC32XX_DMAMUX) += lpc32xx-dmamux.o
|
||||
obj-$(CONFIG_MILBEAUT_HDMAC) += milbeaut-hdmac.o
|
||||
|
|
@ -88,6 +86,7 @@ obj-$(CONFIG_FSL_DPAA2_QDMA) += fsl-dpaa2-qdma/
|
|||
obj-$(CONFIG_INTEL_LDMA) += lgm/
|
||||
|
||||
obj-y += amd/
|
||||
obj-y += loongson/
|
||||
obj-y += mediatek/
|
||||
obj-y += qcom/
|
||||
obj-y += stm32/
|
||||
|
|
|
|||
30
drivers/dma/loongson/Kconfig
Normal file
30
drivers/dma/loongson/Kconfig
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Loongson DMA controllers drivers
|
||||
#
|
||||
if MACH_LOONGSON32 || MACH_LOONGSON64 || COMPILE_TEST
|
||||
|
||||
config LOONGSON1_APB_DMA
|
||||
tristate "Loongson1 APB DMA support"
|
||||
depends on MACH_LOONGSON32 || COMPILE_TEST
|
||||
select DMA_ENGINE
|
||||
select DMA_VIRTUAL_CHANNELS
|
||||
help
|
||||
This selects support for the APB DMA controller in Loongson1 SoCs,
|
||||
which is required by Loongson1 NAND and audio support.
|
||||
|
||||
config LOONGSON2_APB_DMA
|
||||
tristate "Loongson2 APB DMA support"
|
||||
depends on MACH_LOONGSON64 || COMPILE_TEST
|
||||
select DMA_ENGINE
|
||||
select DMA_VIRTUAL_CHANNELS
|
||||
help
|
||||
Support for the Loongson2 APB DMA controller driver. The
|
||||
DMA controller is having single DMA channel which can be
|
||||
configured for different peripherals like audio, nand, sdio
|
||||
etc which is in APB bus.
|
||||
|
||||
This DMA controller transfers data from memory to peripheral fifo.
|
||||
It does not support memory to memory data transfer.
|
||||
|
||||
endif
|
||||
3
drivers/dma/loongson/Makefile
Normal file
3
drivers/dma/loongson/Makefile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
obj-$(CONFIG_LOONGSON1_APB_DMA) += loongson1-apb-dma.o
|
||||
obj-$(CONFIG_LOONGSON2_APB_DMA) += loongson2-apb-dma.o
|
||||
|
|
@ -16,8 +16,8 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
#include "dmaengine.h"
|
||||
#include "virt-dma.h"
|
||||
#include "../dmaengine.h"
|
||||
#include "../virt-dma.h"
|
||||
|
||||
/* Loongson-1 DMA Control Register */
|
||||
#define LS1X_DMA_CTRL 0x0
|
||||
|
|
@ -17,8 +17,8 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
#include "dmaengine.h"
|
||||
#include "virt-dma.h"
|
||||
#include "../dmaengine.h"
|
||||
#include "../virt-dma.h"
|
||||
|
||||
/* Global Configuration Register */
|
||||
#define LDMA_ORDER_ERG 0x0
|
||||
Loading…
Reference in New Issue
Block a user