1# SPDX-License-Identifier: GPL-2.0-only 2# 3# Loongson DMA controllers drivers 4# 5if MACH_LOONGSON32 || MACH_LOONGSON64 || COMPILE_TEST 6 7config 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 16config 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 30config LOONGSON2_APB_CMC_DMA 31 tristate "Loongson2 Chain Multi-Channel DMA support" 32 depends on MACH_LOONGSON64 || COMPILE_TEST 33 select DMA_ENGINE 34 select DMA_VIRTUAL_CHANNELS 35 help 36 Support for the Loongson Chain Multi-Channel DMA controller driver. 37 It is discovered on the Loongson-2K chip (Loongson-2K0300/Loongson-2K3000), 38 which has 4/8 channels internally, enabling bidirectional data transfer 39 between devices and memory. 40 41endif 42