diff mbox series

[3/3] devfreq: mediatek: add platform data to support mt8186

Message ID 20220307122513.11822-4-jia-wei.chang@mediatek.com (mailing list archive)
State New, archived
Delegated to: viresh kumar
Headers show
Series devfreq: mediatek: introduce MTK cci devfreq | expand

Commit Message

Jia-wei Chang (張佳偉) March 7, 2022, 12:25 p.m. UTC
add specific platform data to support mt8186.

Signed-off-by: Jia-Wei Chang <jia-wei.chang@mediatek.corp-partner.google.com>
---
 drivers/devfreq/mtk-cci-devfreq.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Krzysztof Kozlowski March 7, 2022, 9:52 p.m. UTC | #1
On 07/03/2022 13:25, Tim Chang wrote:
> add specific platform data to support mt8186.
> 

You just added this driver in patch 2. No need to split such actions
because this is initial submission, so it can support two devices.
Squash with previous.

Best regards,
Krzysztof
Jia-wei Chang (張佳偉) March 24, 2022, 12:19 p.m. UTC | #2
On Mon, 2022-03-07 at 22:52 +0100, Krzysztof Kozlowski wrote:
> On 07/03/2022 13:25, Tim Chang wrote:
> > add specific platform data to support mt8186.
> > 
> 
> You just added this driver in patch 2. No need to split such actions
> because this is initial submission, so it can support two devices.
> Squash with previous.

Sure, I will squash this commit with previous one.

> 
> Best regards,
> Krzysztof
diff mbox series

Patch

diff --git a/drivers/devfreq/mtk-cci-devfreq.c b/drivers/devfreq/mtk-cci-devfreq.c
index 986f34689f5c..ade09794b404 100644
--- a/drivers/devfreq/mtk-cci-devfreq.c
+++ b/drivers/devfreq/mtk-cci-devfreq.c
@@ -439,8 +439,18 @@  static const struct mtk_ccifreq_platform_data mtk_platform_data = {
 	.need_voltage_tracking = false,
 };
 
+static const struct mtk_ccifreq_platform_data mt8186_platform_data = {
+	.min_volt_shift = 100000,
+	.max_volt_shift = 250000,
+	.proc_max_volt = 1118750,
+	.sram_min_volt = 850000,
+	.sram_max_volt = 1118750,
+	.need_voltage_tracking = true,
+};
+
 static const struct of_device_id mtk_ccifreq_machines[] = {
 	{ .compatible = "mediatek,mt8183-cci", .data = &mtk_platform_data },
+	{ .compatible = "mediatek,mt8186-cci", .data = &mt8186_platform_data },
 	{ },
 };
 MODULE_DEVICE_TABLE(of, mtk_ccifreq_machines);