summaryrefslogtreecommitdiff
path: root/drivers/pwm
diff options
context:
space:
mode:
authorWeijie Gao <weijie.gao@mediatek.com>2023-07-19 17:16:24 +0800
committerTom Rini <trini@konsulko.com>2023-08-03 09:40:49 -0400
commitfec8ee6a85301fa2f2deea7f8f1da124dd1fb09b (patch)
tree210c0b4f9edf82dc96a77763e61901106a0180ba /drivers/pwm
parent0a648bd0f70be459e8728eae89cb4c956f681d6f (diff)
downloadu-boot-fec8ee6a85301fa2f2deea7f8f1da124dd1fb09b.tar.gz
u-boot-fec8ee6a85301fa2f2deea7f8f1da124dd1fb09b.tar.bz2
u-boot-fec8ee6a85301fa2f2deea7f8f1da124dd1fb09b.zip
pwm: mtk: add support for MediaTek MT7988 SoC
This patch adds PWM support for MediaTek MT7988 SoC. Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-mtk.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c
index 605142eab0..11e7444019 100644
--- a/drivers/pwm/pwm-mtk.c
+++ b/drivers/pwm/pwm-mtk.c
@@ -205,12 +205,19 @@ static const struct mtk_pwm_soc mt7986_data = {
.reg_ver = PWM_REG_V1,
};
+static const struct mtk_pwm_soc mt7988_data = {
+ .num_pwms = 8,
+ .pwm45_fixup = false,
+ .reg_ver = PWM_REG_V2,
+};
+
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,mt7981-pwm", .data = (ulong)&mt7981_data },
{ .compatible = "mediatek,mt7986-pwm", .data = (ulong)&mt7986_data },
+ { .compatible = "mediatek,mt7988-pwm", .data = (ulong)&mt7988_data },
{ }
};