From patchwork Mon Mar 7 12:25:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jia-Wei Chang X-Patchwork-Id: 549102 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2627C433FE for ; Mon, 7 Mar 2022 12:26:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242238AbiCGM13 (ORCPT ); Mon, 7 Mar 2022 07:27:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236485AbiCGM11 (ORCPT ); Mon, 7 Mar 2022 07:27:27 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E397C8092B; Mon, 7 Mar 2022 04:26:32 -0800 (PST) X-UUID: 243c8acfc913456a8d91bb9f07546a9a-20220307 X-UUID: 243c8acfc913456a8d91bb9f07546a9a-20220307 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 375587973; Mon, 07 Mar 2022 20:26:27 +0800 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Mon, 7 Mar 2022 20:26:26 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 7 Mar 2022 20:26:26 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 7 Mar 2022 20:26:25 +0800 From: Tim Chang To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , "Rob Herring" , Matthias Brugger , "Liam Girdwood" , Mark Brown , "Jia-Wei Chang" CC: , , , , , , , , , , , Jia-Wei Chang Subject: [PATCH 3/3] devfreq: mediatek: add platform data to support mt8186 Date: Mon, 7 Mar 2022 20:25:13 +0800 Message-ID: <20220307122513.11822-4-jia-wei.chang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220307122513.11822-1-jia-wei.chang@mediatek.com> References: <20220307122513.11822-1-jia-wei.chang@mediatek.com> MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org add specific platform data to support mt8186. Signed-off-by: Jia-Wei Chang --- drivers/devfreq/mtk-cci-devfreq.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);