162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciconfig MTK_HSDMA
462306a36Sopenharmony_ci	tristate "MediaTek High-Speed DMA controller support"
562306a36Sopenharmony_ci	depends on ARCH_MEDIATEK || COMPILE_TEST
662306a36Sopenharmony_ci	select DMA_ENGINE
762306a36Sopenharmony_ci	select DMA_VIRTUAL_CHANNELS
862306a36Sopenharmony_ci	help
962306a36Sopenharmony_ci	  Enable support for High-Speed DMA controller on MediaTek
1062306a36Sopenharmony_ci	  SoCs.
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci	  This controller provides the channels which is dedicated to
1362306a36Sopenharmony_ci	  memory-to-memory transfer to offload from CPU through ring-
1462306a36Sopenharmony_ci	  based descriptor management.
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciconfig MTK_CQDMA
1762306a36Sopenharmony_ci	tristate "MediaTek Command-Queue DMA controller support"
1862306a36Sopenharmony_ci	depends on ARCH_MEDIATEK || COMPILE_TEST
1962306a36Sopenharmony_ci	select DMA_ENGINE
2062306a36Sopenharmony_ci	select DMA_VIRTUAL_CHANNELS
2162306a36Sopenharmony_ci	select ASYNC_TX_ENABLE_CHANNEL_SWITCH
2262306a36Sopenharmony_ci	help
2362306a36Sopenharmony_ci	  Enable support for Command-Queue DMA controller on MediaTek
2462306a36Sopenharmony_ci	  SoCs.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci	  This controller provides the channels which is dedicated to
2762306a36Sopenharmony_ci	  memory-to-memory transfer to offload from CPU.
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ciconfig MTK_UART_APDMA
3062306a36Sopenharmony_ci	tristate "MediaTek SoCs APDMA support for UART"
3162306a36Sopenharmony_ci	depends on OF && SERIAL_8250_MT6577
3262306a36Sopenharmony_ci	select DMA_ENGINE
3362306a36Sopenharmony_ci	select DMA_VIRTUAL_CHANNELS
3462306a36Sopenharmony_ci	help
3562306a36Sopenharmony_ci	  Support for the UART DMA engine found on MediaTek MTK SoCs.
3662306a36Sopenharmony_ci	  When SERIAL_8250_MT6577 is enabled, and if you want to use DMA,
3762306a36Sopenharmony_ci	  you can enable the config. The DMA engine can only be used
3862306a36Sopenharmony_ci	  with MediaTek SoCs.
39