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