mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
0ea329fec4
Weijie Gao has submitted an updated version of the patchset adding support for MT7986 and MT7981 to U-Boot. Use that v2 patchset. Changes of v2: - Add cpu driver for print_cpuinfo() - Fix NULL pointer dereference in mtk_image (was already fixed in OpenWrt) - Fix coding style - Minor changes https://patchwork.ozlabs.org/project/uboot/list/?series=316148 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From d7dae84aad997f4f9b5d039f7ab180bd1f54fa37 Mon Sep 17 00:00:00 2001
|
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
|
Date: Wed, 31 Aug 2022 19:04:35 +0800
|
|
Subject: [PATCH 12/32] pwm: mtk: add support for MediaTek MT7986 SoC
|
|
|
|
This patch adds PWM support for MediaTek MT7986 SoC.
|
|
|
|
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|
---
|
|
drivers/pwm/pwm-mtk.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- a/drivers/pwm/pwm-mtk.c
|
|
+++ b/drivers/pwm/pwm-mtk.c
|
|
@@ -171,10 +171,16 @@ static const struct mtk_pwm_soc mt7629_d
|
|
.pwm45_fixup = false,
|
|
};
|
|
|
|
+static const struct mtk_pwm_soc mt7986_data = {
|
|
+ .num_pwms = 2,
|
|
+ .pwm45_fixup = false,
|
|
+};
|
|
+
|
|
static const struct udevice_id mtk_pwm_ids[] = {
|
|
{ .compatible = "mediatek,mt7622-pwm", .data = (ulong)&mt7622_data },
|
|
{ .compatible = "mediatek,mt7623-pwm", .data = (ulong)&mt7623_data },
|
|
{ .compatible = "mediatek,mt7629-pwm", .data = (ulong)&mt7629_data },
|
|
+ { .compatible = "mediatek,mt7986-pwm", .data = (ulong)&mt7986_data },
|
|
{ }
|
|
};
|
|
|