forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mediatek: use cpufreq fix suggested by MediaTek
Use suggested fix for mediatek-cpufreq, patch will also be sent upstream. Signed-off-by: Daniel Golle <[email protected]>
- Loading branch information
Showing
2 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
...inux/mediatek/patches-5.15/351-cpufreq-mediatek-correct-voltages-for-MT7622-and-MT7.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
From e7697814c142c99f470c3458d49e41b25a575f23 Mon Sep 17 00:00:00 2001 | ||
From: Daniel Golle <[email protected]> | ||
Date: Fri, 26 May 2023 10:31:40 +0100 | ||
Subject: [PATCH] cpufreq: mediatek: correct voltages for MT7622 and MT7623 | ||
|
||
The MT6380 regulator typically used together with MT7622 does not | ||
support the current maximum processor and SRAM voltage in the cpufreq | ||
driver (1360000uV). | ||
For MT7622 limit processor and SRAM supply voltages to 1350000uV to | ||
avoid having the tracking algorithm request unsupported voltages from | ||
the regulator. | ||
|
||
On MT7623 there is no separate SRAM supply and the maximum voltage used | ||
is 1300000uV. Create dedicated platform data for MT7623 to cover that | ||
case as well. | ||
|
||
Fixes: 0883426fd07e3 ("cpufreq: mediatek: Raise proc and sram max voltage for MT7622/7623") | ||
Suggested-by: Jia-wei Chang <[email protected]> | ||
Signed-off-by: Daniel Golle <[email protected]> | ||
--- | ||
drivers/cpufreq/mediatek-cpufreq.c | 13 ++++++++++--- | ||
1 file changed, 10 insertions(+), 3 deletions(-) | ||
|
||
--- a/drivers/cpufreq/mediatek-cpufreq.c | ||
+++ b/drivers/cpufreq/mediatek-cpufreq.c | ||
@@ -696,9 +696,16 @@ static const struct mtk_cpufreq_platform | ||
static const struct mtk_cpufreq_platform_data mt7622_platform_data = { | ||
.min_volt_shift = 100000, | ||
.max_volt_shift = 200000, | ||
- .proc_max_volt = 1360000, | ||
+ .proc_max_volt = 1350000, | ||
.sram_min_volt = 0, | ||
- .sram_max_volt = 1360000, | ||
+ .sram_max_volt = 1350000, | ||
+ .ccifreq_supported = false, | ||
+}; | ||
+ | ||
+static const struct mtk_cpufreq_platform_data mt7623_platform_data = { | ||
+ .min_volt_shift = 100000, | ||
+ .max_volt_shift = 200000, | ||
+ .proc_max_volt = 1300000, | ||
.ccifreq_supported = false, | ||
}; | ||
|
||
@@ -743,7 +750,7 @@ static const struct of_device_id mtk_cpu | ||
{ .compatible = "mediatek,mt2701", .data = &mt2701_platform_data }, | ||
{ .compatible = "mediatek,mt2712", .data = &mt2701_platform_data }, | ||
{ .compatible = "mediatek,mt7622", .data = &mt7622_platform_data }, | ||
- { .compatible = "mediatek,mt7623", .data = &mt7622_platform_data }, | ||
+ { .compatible = "mediatek,mt7623", .data = &mt7623_platform_data }, | ||
{ .compatible = "mediatek,mt7988", .data = &mt7988_platform_data }, | ||
{ .compatible = "mediatek,mt8167", .data = &mt8516_platform_data }, | ||
{ .compatible = "mediatek,mt817x", .data = &mt2701_platform_data }, |
29 changes: 0 additions & 29 deletions
29
.../linux/mediatek/patches-5.15/351-cpufreq-mediatek-don-t-request-unsupported-voltage.patch
This file was deleted.
Oops, something went wrong.