800-dmaengine-mediatek-add-HSDMA-support-for-mt7621.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From d94fc5ce1dc395747c3934ecffcdec0396583755 Mon Sep 17 00:00:00 2001
  2. From: Nick Hainke <[email protected]>
  3. Date: Fri, 26 May 2023 19:46:33 +0200
  4. Subject: [PATCH] dmaengine: mediatek: add HSDMA support for mt7621
  5. Commit 87dd67f496f7 ("staging: mt7621-dma: remove driver from tree")
  6. removed the mt7621-dma driver. Move the driver from staging to the
  7. folder "drivers/dma/mediatek" containing already other mediatek dma
  8. driver implementations and maintain it downstream in OpenWrt.
  9. This patch will not be sent to upstream linux. It is just a workaround.
  10. Signed-off-by: Nick Hainke <[email protected]>
  11. ---
  12. drivers/dma/mediatek/Kconfig | 6 ++++++
  13. drivers/dma/mediatek/Makefile | 1 +
  14. 2 files changed, 7 insertions(+)
  15. --- a/drivers/dma/mediatek/Kconfig
  16. +++ b/drivers/dma/mediatek/Kconfig
  17. @@ -36,3 +36,9 @@ config MTK_UART_APDMA
  18. When SERIAL_8250_MT6577 is enabled, and if you want to use DMA,
  19. you can enable the config. The DMA engine can only be used
  20. with MediaTek SoCs.
  21. +
  22. +config MTK_HSDMA
  23. + tristate "MTK HSDMA support"
  24. + depends on RALINK && SOC_MT7621
  25. + select DMA_ENGINE
  26. + select DMA_VIRTUAL_CHANNELS
  27. --- a/drivers/dma/mediatek/Makefile
  28. +++ b/drivers/dma/mediatek/Makefile
  29. @@ -2,3 +2,4 @@
  30. obj-$(CONFIG_MTK_UART_APDMA) += mtk-uart-apdma.o
  31. obj-$(CONFIG_MTK_HSDMA) += mtk-hsdma.o
  32. obj-$(CONFIG_MTK_CQDMA) += mtk-cqdma.o
  33. +obj-$(CONFIG_MTK_HSDMA) += hsdma-mt7621.o