mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
42 lines
1.6 KiB
Diff
42 lines
1.6 KiB
Diff
|
From 4983a1517e7ddbc6f53fc07607e4ebeb51412843 Mon Sep 17 00:00:00 2001
|
||
|
From: Sam Shih <sam.shih@mediatek.com>
|
||
|
Date: Tue, 28 Feb 2023 19:59:22 +0800
|
||
|
Subject: [PATCH 21/21] cpufreq: mediatek: Add support for MT7988
|
||
|
|
||
|
This add cpufreq support for mediatek MT7988 SoC.
|
||
|
|
||
|
The platform data of MT7988 is different from previous MediaTek SoCs,
|
||
|
so we add a new compatible and platform data for it.
|
||
|
|
||
|
Signed-off-by: Sam Shih <sam.shih@mediatek.com>
|
||
|
---
|
||
|
drivers/cpufreq/mediatek-cpufreq.c | 10 ++++++++++
|
||
|
1 file changed, 10 insertions(+)
|
||
|
|
||
|
--- a/drivers/cpufreq/mediatek-cpufreq.c
|
||
|
+++ b/drivers/cpufreq/mediatek-cpufreq.c
|
||
|
@@ -702,6 +702,15 @@ static const struct mtk_cpufreq_platform
|
||
|
.ccifreq_supported = false,
|
||
|
};
|
||
|
|
||
|
+static const struct mtk_cpufreq_platform_data mt7988_platform_data = {
|
||
|
+ .min_volt_shift = 100000,
|
||
|
+ .max_volt_shift = 200000,
|
||
|
+ .proc_max_volt = 900000,
|
||
|
+ .sram_min_volt = 0,
|
||
|
+ .sram_max_volt = 1150000,
|
||
|
+ .ccifreq_supported = true,
|
||
|
+};
|
||
|
+
|
||
|
static const struct mtk_cpufreq_platform_data mt8183_platform_data = {
|
||
|
.min_volt_shift = 100000,
|
||
|
.max_volt_shift = 200000,
|
||
|
@@ -735,6 +744,7 @@ static const struct of_device_id mtk_cpu
|
||
|
{ .compatible = "mediatek,mt2712", .data = &mt2701_platform_data },
|
||
|
{ .compatible = "mediatek,mt7622", .data = &mt7622_platform_data },
|
||
|
{ .compatible = "mediatek,mt7623", .data = &mt7622_platform_data },
|
||
|
+ { .compatible = "mediatek,mt7988", .data = &mt7988_platform_data },
|
||
|
{ .compatible = "mediatek,mt8167", .data = &mt8516_platform_data },
|
||
|
{ .compatible = "mediatek,mt817x", .data = &mt2701_platform_data },
|
||
|
{ .compatible = "mediatek,mt8173", .data = &mt2701_platform_data },
|