hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/dma/mediatek/Kconfig
....@@ -1,13 +1,38 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12
23 config MTK_HSDMA
34 tristate "MediaTek High-Speed DMA controller support"
45 depends on ARCH_MEDIATEK || COMPILE_TEST
56 select DMA_ENGINE
67 select DMA_VIRTUAL_CHANNELS
7
- ---help---
8
+ help
89 Enable support for High-Speed DMA controller on MediaTek
910 SoCs.
1011
1112 This controller provides the channels which is dedicated to
1213 memory-to-memory transfer to offload from CPU through ring-
1314 based descriptor management.
15
+
16
+config MTK_CQDMA
17
+ tristate "MediaTek Command-Queue DMA controller support"
18
+ depends on ARCH_MEDIATEK || COMPILE_TEST
19
+ select DMA_ENGINE
20
+ select DMA_VIRTUAL_CHANNELS
21
+ select ASYNC_TX_ENABLE_CHANNEL_SWITCH
22
+ help
23
+ Enable support for Command-Queue DMA controller on MediaTek
24
+ SoCs.
25
+
26
+ This controller provides the channels which is dedicated to
27
+ memory-to-memory transfer to offload from CPU.
28
+
29
+config MTK_UART_APDMA
30
+ tristate "MediaTek SoCs APDMA support for UART"
31
+ depends on OF && SERIAL_8250_MT6577
32
+ select DMA_ENGINE
33
+ select DMA_VIRTUAL_CHANNELS
34
+ help
35
+ Support for the UART DMA engine found on MediaTek MTK SoCs.
36
+ When SERIAL_8250_MT6577 is enabled, and if you want to use DMA,
37
+ you can enable the config. The DMA engine can only be used
38
+ with MediaTek SoCs.