mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
This DMA controller appears in Loongson-2K0300 and Loongson-2K3000. It is a chain multi-channel controller that enables data transfers from memory to memory, device to memory, and memory to device, as well as channel prioritization configurable through the channel configuration registers. In addition, there are slight differences between Loongson-2K0300 and Loongson-2K3000, such as channel register offsets and the number of channels. Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Reviewed-by: Huacai Chen <chenhuacai@loongson.cn> Link: https://patch.msgid.link/73bc32ba6249f1eef94fec9b349bc9efa98278ea.1772853681.git.zhoubinbin@loongson.cn Signed-off-by: Vinod Koul <vkoul@kernel.org>
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
# 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.
|
|
|
|
config LOONGSON2_APB_CMC_DMA
|
|
tristate "Loongson2 Chain Multi-Channel DMA support"
|
|
depends on MACH_LOONGSON64 || COMPILE_TEST
|
|
select DMA_ENGINE
|
|
select DMA_VIRTUAL_CHANNELS
|
|
help
|
|
Support for the Loongson Chain Multi-Channel DMA controller driver.
|
|
It is discovered on the Loongson-2K chip (Loongson-2K0300/Loongson-2K3000),
|
|
which has 4/8 channels internally, enabling bidirectional data transfer
|
|
between devices and memory.
|
|
|
|
endif
|