Skip to content

Commit 39b3601

Browse files
jiaweichang-mtkvireshk
authored andcommitted
cpufreq: mediatek: Add support for MT8186
The platform data of MT8186 is different from previous MediaTek SoCs, so we add a new compatible and platform data for it. Signed-off-by: Jia-Wei Chang <[email protected]> Signed-off-by: Rex-BC Chen <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent 0daa473 commit 39b3601

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/cpufreq/mediatek-cpufreq.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,15 @@ static const struct mtk_cpufreq_platform_data mt8183_platform_data = {
699699
.ccifreq_supported = true,
700700
};
701701

702+
static const struct mtk_cpufreq_platform_data mt8186_platform_data = {
703+
.min_volt_shift = 100000,
704+
.max_volt_shift = 250000,
705+
.proc_max_volt = 1118750,
706+
.sram_min_volt = 850000,
707+
.sram_max_volt = 1118750,
708+
.ccifreq_supported = true,
709+
};
710+
702711
/* List of machines supported by this driver */
703712
static const struct of_device_id mtk_cpufreq_machines[] __initconst = {
704713
{ .compatible = "mediatek,mt2701", .data = &mt2701_platform_data },
@@ -710,6 +719,7 @@ static const struct of_device_id mtk_cpufreq_machines[] __initconst = {
710719
{ .compatible = "mediatek,mt8173", .data = &mt2701_platform_data },
711720
{ .compatible = "mediatek,mt8176", .data = &mt2701_platform_data },
712721
{ .compatible = "mediatek,mt8183", .data = &mt8183_platform_data },
722+
{ .compatible = "mediatek,mt8186", .data = &mt8186_platform_data },
713723
{ .compatible = "mediatek,mt8365", .data = &mt2701_platform_data },
714724
{ .compatible = "mediatek,mt8516", .data = &mt2701_platform_data },
715725
{ }

0 commit comments

Comments
 (0)