mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-25 06:26:15 +00:00
f19f8a886b
This is an automatically generated commit. During a `git bisect` session, `git bisect --skip` is recommended. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
From d94fc5ce1dc395747c3934ecffcdec0396583755 Mon Sep 17 00:00:00 2001
|
|
From: Nick Hainke <vincent@systemli.org>
|
|
Date: Fri, 26 May 2023 19:46:33 +0200
|
|
Subject: [PATCH] dmaengine: mediatek: add HSDMA support for mt7621
|
|
|
|
Commit 87dd67f496f7 ("staging: mt7621-dma: remove driver from tree")
|
|
removed the mt7621-dma driver. Move the driver from staging to the
|
|
folder "drivers/dma/mediatek" containing already other mediatek dma
|
|
driver implementations and maintain it downstream in OpenWrt.
|
|
|
|
This patch will not be sent to upstream linux. It is just a workaround.
|
|
|
|
Signed-off-by: Nick Hainke <vincent@systemli.org>
|
|
---
|
|
drivers/dma/mediatek/Kconfig | 6 ++++++
|
|
drivers/dma/mediatek/Makefile | 1 +
|
|
2 files changed, 7 insertions(+)
|
|
|
|
--- a/drivers/dma/mediatek/Kconfig
|
|
+++ b/drivers/dma/mediatek/Kconfig
|
|
@@ -36,3 +36,9 @@ config MTK_UART_APDMA
|
|
When SERIAL_8250_MT6577 is enabled, and if you want to use DMA,
|
|
you can enable the config. The DMA engine can only be used
|
|
with MediaTek SoCs.
|
|
+
|
|
+config MTK_HSDMA
|
|
+ tristate "MTK HSDMA support"
|
|
+ depends on RALINK && SOC_MT7621
|
|
+ select DMA_ENGINE
|
|
+ select DMA_VIRTUAL_CHANNELS
|
|
--- a/drivers/dma/mediatek/Makefile
|
|
+++ b/drivers/dma/mediatek/Makefile
|
|
@@ -2,3 +2,4 @@
|
|
obj-$(CONFIG_MTK_UART_APDMA) += mtk-uart-apdma.o
|
|
obj-$(CONFIG_MTK_HSDMA) += mtk-hsdma.o
|
|
obj-$(CONFIG_MTK_CQDMA) += mtk-cqdma.o
|
|
+obj-$(CONFIG_MTK_HSDMA) += hsdma-mt7621.o
|