From patchwork Fri Jun 4 09:09:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12299231 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B65C0C07E94 for ; Fri, 4 Jun 2021 09:19:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8091E6140B for ; Fri, 4 Jun 2021 09:19:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8091E6140B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eaZp7zd08o3t6MgTaSuHsJOtBuF3nfSIaPlByIMp8t8=; b=VR/OqhCx7vrnUj jTt54aArWdy3xxKy/IjpJCZrxWlUeg8x9MwSwg0DZomSMYYS7T++xG0EaJ1pxfvmU5J1IX9MOYyuI T2tgo2m75HoktrwluYR+izuCeQTgKiX+pNtsnY1XKMa3rIK8tRdpFDXhQ99l1oejGgvNN+8QIkyHb jHqEdN7PvV3JdkSBHWk21mzk6FVEv6DoMpTanKbB5YJobsPaABkvXEqRh9cfK3rUCy9f6XN5/jMWd 2C5cXA1pokijkc1abVj7JsJKAZmIZ2tEGcYBRpLIiUjwtbpXSVXYHKAYNJx5xMSMVqtYsD1Tvg5aK oLmqm0yU33Di2sJeHdRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lp5x0-00CYR2-K2; Fri, 04 Jun 2021 09:17:12 +0000 Received: from mail-eopbgr140084.outbound.protection.outlook.com ([40.107.14.84] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lp5rG-00CVnU-4Z for linux-arm-kernel@lists.infradead.org; Fri, 04 Jun 2021 09:11:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f7UAA9sdy4m4tymb9gBXgP4zxbqU4mX0rJ3GklRWRznJ6VHsUBmQ1TjQcU3ruB/h32Hcdtn2mvl9SYuFUbb41qnrzf37C+8vTkGPBJYYkuFpR2e23ymtUFtJoiivbDe9n7YnHs5RShMFfWtKsfTegunpSmazCZO9LGBgLVg6NgyTayyzgfB5eBuVRrMLSxuPCcqlaewxfYgiX/9yMwGEQbI9CqVAZnDYqSjOZnCsqXqwwN06LuhnapRnuVuBOZrG+7L4MIR5CmTosvNIWWqluZ4yjqojJNtU6sCFpwUOGqJKCU+fYcozSw6fGkZctc6E6WVLKoyadJYQs8RpeTbD2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BJuMCtNjl4Evz0hxZuVeKNixObtbgSixxvat92YiYPA=; b=R6F2XxVnXkOwcwlakpo4FRuMxvBD7dDqON2XipliRHWyDH1ra0LH4bXt7BbQIr2i0Q9wcbjuP9mPdOIgX+B3y8kRpS2o441ec5d5nyQiFTxxAxaqurlUHk/zStBJA4OHMyf7qONScI3C+hvCxrxd2KMp9DYllyzU9YXKMMLgl91rHy3ZotV9JoQYuAAUaiRE/ZorBuGg4TIpERgHoHX7Xq9ph0bZic7LAIlxCxbNCACIEkH5nb/2M7W+0FvxOiLjpDWD2+KnFA2OG9lr8KiaA6Dj9NAAkyTL++fW4srY8KZYBPKnWHHPR8CzdDHRaC6gzc7zbnwwtuJNcX79MRaClQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BJuMCtNjl4Evz0hxZuVeKNixObtbgSixxvat92YiYPA=; b=kkOoJDed4+eLoKbNAw+MiwyxS2dt6WGpWNPEiP+GH2HufTW0OsWDQC/n1JO7gTNieQ9xgFOfdDYsdrVlZJhHObLBDBuK61O7iQaWOf7O8JANftnonTrIZMkDppoyihfuK6oQEN3RIWTdxv/mG79bpG6y+hop4/kIeGny855LAck= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) by DU2PR04MB8502.eurprd04.prod.outlook.com (2603:10a6:10:2d1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.23; Fri, 4 Jun 2021 09:11:10 +0000 Received: from DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::508:d95f:f63b:714a]) by DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::508:d95f:f63b:714a%7]) with mapi id 15.20.4195.024; Fri, 4 Jun 2021 09:11:10 +0000 From: Dong Aisheng To: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, sboyd@kernel.org, dongas86@gmail.com, shawnguo@kernel.org, kernel@pengutronix.de, abel.vesa@nxp.com, Anson Huang , Dong Aisheng Subject: [PATCH 06/10] clk: imx: scu: Add A53 frequency scaling support Date: Fri, 4 Jun 2021 17:09:39 +0800 Message-Id: <20210604090943.3519350-7-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210604090943.3519350-1-aisheng.dong@nxp.com> References: <20210604090943.3519350-1-aisheng.dong@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR0601CA0010.apcprd06.prod.outlook.com (2603:1096:3::20) To DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR0601CA0010.apcprd06.prod.outlook.com (2603:1096:3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.24 via Frontend Transport; Fri, 4 Jun 2021 09:11:07 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b24712f0-6940-41bf-8c62-08d92738b1a8 X-MS-TrafficTypeDiagnostic: DU2PR04MB8502: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1013; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: reEh7o9ke3ewDKq26w6NescjO/5M3ZeOriwRAgyxekO8jy42sjQ80wsISIHfJaAwgNK87GUpWLbffist6xcXJ8Y90s7YD0jGVHBQY6tbZ1vsp6plw3oVR5JRd047X26fCqOAjhJ7Hd+QC/15zzWO8YMF/j9tN7+kE6vQCJgD0W+WGZyK6FRvo0PfBLdUhtS3l58mlu2tJ+ZZTEA6KiXbLJM0RDAlii+rnoTFJDVT+vntQC3XA4ArE3uKuZ0Vwv5KMC1VQkn6WjwoYOpuPfa/9jA/yL5/7bjBgBNY0bWkmsZO8626PEQqeWqBI/5/Q5ONEntgibsZuXVcHNlELr+lLGODXYcnFHbIsXBkoxa3N4z65Jskjph0WKtKr+AD1Sn8SgllzfLA/o+ZF259Z5XkgPZl0e+D1fjUvJuxn6y/7OtaYuB4XMpiIj1L62OaC+BdWyQPw32/mtVUZbrLp60yRkO4dRjfmJIx4nsZO5SGCrTvpDp0XMdNRYD9nMQyjSNwUVSzEv+4wHK5OqrSFi6w3+/j7Xl5y7OPfjH7xG3fkG0wRzY7OsginIa3GL0TZH/FaJ6fitdFsusoVVJ6WkrQTBypLjqgqY9Tb2tVvNnK4FKyv4THZd8iDX0IMLw37yvxLK+mmONNDRWYaC7BtugJkJsVfNW7yfz9v3X/Fh0Fc8I7AFHuJsATvVbZMEE0zwiZ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB8477.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(346002)(396003)(39860400002)(52116002)(6916009)(6506007)(478600001)(83380400001)(4326008)(38350700002)(1076003)(5660300002)(6666004)(38100700002)(2906002)(36756003)(16526019)(186003)(26005)(54906003)(316002)(66556008)(66946007)(66476007)(2616005)(956004)(8676002)(86362001)(6512007)(6486002)(8936002)(69590400013); DIR:OU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o6bT2nCi5cFV6OX1vRHe9StQy4LScofy09FK2BupuuzjFsLvc4Fv/f67jQjHMLvDf5scQZn2uqgnp3lZYqw6IaFQ0dQCyYcTXAj08mMe/eaBSFNMlK7vU+F8nQrRpTpTsRI8fLuKoscH64kwQE7FfNgw6iuZyFO5KyrkVXS+f4M6F6FDN8U9nXRvtoA8rWrv6lHG1idaU1Cv6SpPtGcpSXPm4Wr1sOjZM4rVWcWL+dNf6nzwmqGges9O2v34zVTQYTGHAYK6eegRzbSxbgvO1gaRL1veVVSscWIbSVWew2wpgk6Q X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b24712f0-6940-41bf-8c62-08d92738b1a8 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2021 09:11:10.4708 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ixEQ/Hx3vu+WfyOTqo1bw0815nbO7QLSCZ4jb+B4kn4okMf2o+jasKgjpAFWNVOKJmcIGm6Fqz7nggHQNPqG7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8502 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210604_021114_216478_D6FBCAC5 X-CRM114-Status: GOOD ( 12.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Anson Huang Add i.MX8QM cpufreq support for A53 cluster. Signed-off-by: Anson Huang Signed-off-by: Dong Aisheng --- drivers/clk/imx/clk-scu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-scu.c b/drivers/clk/imx/clk-scu.c index 2537e68ded16..8b3eb58e6d12 100644 --- a/drivers/clk/imx/clk-scu.c +++ b/drivers/clk/imx/clk-scu.c @@ -273,7 +273,7 @@ static int clk_scu_atf_set_cpu_rate(struct clk_hw *hw, unsigned long rate, struct arm_smccc_res res; unsigned long cluster_id; - if (clk->rsrc_id == IMX_SC_R_A35) + if (clk->rsrc_id == IMX_SC_R_A35 || clk->rsrc_id == IMX_SC_R_A53) cluster_id = 0; else return -EINVAL; @@ -449,7 +449,7 @@ struct clk_hw *__imx_clk_scu(struct device *dev, const char *name, init.name = name; init.ops = &clk_scu_ops; - if (rsrc_id == IMX_SC_R_A35) + if (rsrc_id == IMX_SC_R_A35 || rsrc_id == IMX_SC_R_A53) init.ops = &clk_scu_cpu_ops; else if (rsrc_id == IMX_SC_R_PI_0_PLL) init.ops = &clk_scu_pi_ops;