From patchwork Thu Jun 27 08:24:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13713946 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 9E3FBC3064D for ; Thu, 27 Jun 2024 08:27:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=eH2yKECXTCynWdnuI7zPFelG8JkiJ4ITeyL3pO5lK2Q=; b=tPX9eRvucn405U1TnlJeHqbYcu pg79o7oNSfZc/uj5R9Lz98GDX0ydOBdgaK1C+4xQL9D+ct+DUlVAO/otC/j1xh/aV2LBuTq6b9wQp Y3S7S33VswlIjlgIt3f6AqzO1A6iDymo+qywSV8MiydE1I/v5aNkFLbkZyFyiRaL4Sbsri698o7Z1 JhM2npLFxkjQtpZc9TxaI8XNsRfRvahDwHXSmcr6Uw/TU2wY7tRCcgJ8SGABB6RDmBkQOCfsJVrCc ZcLXaqYJiFNIhNpKRzYNmVLB7lA0h/9IWtU9gg75dUqfSDz1UDHm8SbwKrs1E3bc+/fqOJK+kVKuO +x+6mTWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMkT7-00000009jzP-3H5z; Thu, 27 Jun 2024 08:27:01 +0000 Received: from mail-vi1eur02on20600.outbound.protection.outlook.com ([2a01:111:f403:2607::600] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMkSu-00000009jtA-3tJj for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 08:26:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O5DqunfUJm63ssiZk1N7GfvuNa4RVEXeWr6hqtAak0FYvzRRefRyXo8WCW0Tos7zk+RRUcRwyhQsj85nF6B/bIyuYCqNk2nJut4DFQV07694asb9c9n8EJ1jHEpB3JN+RSY/b+gRGvkb4bpAVe1I1crs2mOf4sXdvoetxB0aqqyEmJ/BN8pJNrDgrHiX3WPRXiKIpXFVfb8xEKw/xqlGqCoqoeWzjEEL+SjAyHtgEbmaYKlmW7+U5MEgEWo7QOi/6/RUKy5YtIpp9c1Su1J0GXMln48Brb2LO6Yqfpf3fY70wjeyj5MhknilPIefECSzGSS/oi7t910RGejwh9OyOw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eH2yKECXTCynWdnuI7zPFelG8JkiJ4ITeyL3pO5lK2Q=; b=kfGodI94oFTkwBlFs/u3dVQz48NY8LTGmMhfvr/DLg6FRgdGrzzNCZgwNB4uFZgy8duHb1IJlv/7i84PjDnj7IvaPR9uONhswf5J+hhiw53BRcW4jRWjdsb6wdnJuaqMOuC7WY42gIxJQXoPcBkRCxJ/UlGEkcI6qYfAIht95hIFsiMcPpBBKanAaQD3C7q5eTX8hIwac/CnMGmlDmnhqP4n1otX8nCJHECK6164Xhm44uXMLqDNPpJuW+74cwb4WOWr9aVq9ZYlKpG0eGarrGs6RQQYhd1BCIpEbvdidKRIh4u45YV4IBY1asDynpcMtsBaGaztyS9U6mVavdQc+A== 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=eH2yKECXTCynWdnuI7zPFelG8JkiJ4ITeyL3pO5lK2Q=; b=BXFYyNNmcPXTjO3HNvrv1tVhqeJRmLMHhRg46neo1C2XOIxF82eftQTsu2f4p8+3xCEqnjq6cch9o75lWroMeucUmDScJlQmi/paoJy/l3R/bmwBvqZfJDBse6FWTKdKzt+xas553v2IO/MnQbt/Y3BTY8jqj81JSqeCdYDtuOM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) by DBAPR04MB7432.eurprd04.prod.outlook.com (2603:10a6:10:1a9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.32; Thu, 27 Jun 2024 08:26:45 +0000 Received: from DB8PR04MB7065.eurprd04.prod.outlook.com ([fe80::8af7:8659:9d42:bd84]) by DB8PR04MB7065.eurprd04.prod.outlook.com ([fe80::8af7:8659:9d42:bd84%4]) with mapi id 15.20.7698.033; Thu, 27 Jun 2024 08:26:45 +0000 From: Pengfei Li To: krzk+dt@kernel.org, robh@kernel.org, abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, ping.bai@nxp.com, ye.li@nxp.com, peng.fan@nxp.com, aisheng.dong@nxp.com, frank.li@nxp.com Cc: kernel@pengutronix.de, festevam@gmail.com, linux-clk@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] clk: imx93: Move IMX93_CLK_END macro to clk driver Date: Thu, 27 Jun 2024 16:24:25 +0800 Message-Id: <20240627082426.394937-2-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240627082426.394937-1-pengfei.li_1@nxp.com> References: <20240627082426.394937-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: AM0PR01CA0128.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::33) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|DBAPR04MB7432:EE_ X-MS-Office365-Filtering-Correlation-Id: 22c66be0-436b-4e76-a4bb-08dc9682e17d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|7416014|376014|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: MqQz69IWmQvUdjR+df6BSqOPSnE6I5hZbk/8grFrkTt2t+bRWxGRwD9nOy7IFukFGpNH4mixD4ZUU6mOC793Zc/2ckB48cj8XimzYx3dWKME5zjaVVKDwK7W3x0qJW83JbmkufZwkfoJ0R6ss/z71BQXMCaOm43EqK0QqWkKtR4dUo8Qd2p4ic53OxLr3yuOeCaeiTdQOMsr5ZgHcwLvaPoJqUL/cTJekNdMeV1tRq26Aff3YKGYfKNnI4XhC1bAGk8L8mqez2/C9t0AI5ACIqijHYKxq9hO6OSlSMfplwLm9ZE2vwUHmbedf5bxazMrYlkZVinQSR3BmD3uYB7qNfglgVdftimCCmqAgchRHTrTf5mHOI9Zat9qt4ru1QlkzSKpra/6vpkxzLhyrsJlvUjF8Ld/ulqmf1zPftnt4ggK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M;H:DB8PR04MB7065.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(7416014)(376014)(366016)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tuY8xlQfv9daw2+vPyzEzOvTs2BYCuWg34Ve4V19H/UuRmV5CIYWWno3ifJj9lU4kuWV6bpMWt1kfJWmhwNZx9IAKOC2ZS8keVdaTiclpgUJW2+JYkfwrWkXf1xQt3OfBO4Qwbp8KrPclnjFaoW9mWBArYbOj2MHP0lDLhQy1tAMoEGPGHp2Ok/OvUsfPvICkWTCoMPsu0C0JyCItxRQPsAn33t8z19aKSwxUcDecasLcWXuyPWf30eXFA29Res0y9YL3aqVjbSPdIK5ZOi8al4srLoGaHv/tHg2fbCUsm5k34CjwbM9gXhDNLmNGbCgz6eAiAfWiD1MbFPlvioQh4LQej1C3m39ZemDgorS8TZVHWOrtlk/x68KwkEF/p3JcJRGnEDBy5BCiWLKxWVDQvwLavs51oX7lk/obo8X41U8kw9eK1kDiF6olUnloXhIdVs94zaUt3y+kuXWdPDkirzS4cCWWq41XJ8kJa9gBNeSylhJVx5ajla2IAnXYXPZjrXiCX2ew1xNVJplQyln+muTxuntqG6ElN2EOEfjvm3lhzUlvklI2cO5bPRs60fieY0NW+LevgL8UpYC4Wn1CWNvMiTXklYfiIRI0orNcDY7rcJNJ8tXvZNGoiafXsPJ3i3vgSOPm6kJtXVDBDnyg6ib/g8F/B3XmnBAJz94YgmexUQU2EUUMhMjXr9aFzc6GuYJY/2VUTBSowoUL4u66xEu+Zwy0AzZhNf+XLUm60xx9xmJ0eZdphx20YIPBandFZ9aDQhAHIR1X27nInTlFzBxQURUMYAhdWkvBW49dn0eNGCwxcKUK+Sye8ZyxlH+ojn1J4OL5m7yq6PCyQ8mSBExi1gJzfVR1lFzbfS5JIGoy1J5p2rc3UmzAwJ9D2WPtoNa8d3RgfYHOIQ4RXGXkp5isleLcrf2k0EE1CHo2xSS4mIe4EjTQ2UhpElu/bRXMEcsmUz/zSkRW32Vh9KpMJMVKPK8SV37Xlf3kCxXlLcLn9wFRH04oLG1oLbDOgYGvX0W48bNjdasIgseqcD23qdYE0kNZoEbf2TdRuTjT7LWEYIyjZfhfcFAXFVngfjMWZZOH8bBj0aOsv4/QNn9G8g7rLMOP6u8qdNKchGooHURKZHenljPu1BgalquvMkGDMu039xoyuvs5nNKCQYzMCk0ewpLhD275f1Tq0jmG6lGRjEjJ+DkYawdpLEHQhSoUM7po8FjEThk/6ZkSoKsOj3fQgrXKWGbmD17jQGuKdahgFEM74Jm6QFhjMviIz6NMiZclfeNy3OlVbLjcM8sThFlnjY8JHVCNaRDpncguCf1HCbDgtMnNJknezG9opWkooek8Jz8q4gHJFbpwooDWzZr6p6wIaMtSf1miJmCDNV3CVdt3CTnEnPKlTQBjpmGVPHsrI0Fp9DeNrxKSgCNiF4Ehb37LGSh31pEVwOnbsY6UfXzJoWbY2hyRYBeNGkfKauJSkyIASeaEJ/rL4qjzQjhHOPYaytbh38QpM4D2pHRAZGk286g5jsHutK4HnmeBO2XjpjCr7ViUzDEZk0bSALmxPMr3AUbL/Ma1qLz5SOW/sI5wud344IGCdwcFyR+ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22c66be0-436b-4e76-a4bb-08dc9682e17d X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB7065.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2024 08:26:45.7511 (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: YEsIQF6I7hGF1CWQvPQ999ZePhWBDBZN7Cwc0urM/DcMqGE16vo1iaxnbzlYwOL91CwQOqeDJEqYVkyksoLKug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7432 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240627_012648_991680_28A1435A X-CRM114-Status: GOOD ( 11.20 ) 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 IMX93_CLK_END was previously defined in imx93-clock.h to indicate the number of clocks, but it is not part of the ABI, so it should be moved to clk driver. Signed-off-by: Pengfei Li --- Notes: Change for v2: - Use pre-processor define to simplify code. drivers/clk/imx/clk-imx93.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index c6a9bc8ecc1f..c8b65146e76e 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -15,6 +15,8 @@ #include "clk.h" +#define IMX93_CLK_END 202 + enum clk_sel { LOW_SPEED_IO_SEL, NON_IO_SEL,