Message ID | 20230101175740.1010258-2-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3857306wrt; Sun, 1 Jan 2023 09:58:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXuShSMziYqKOj/Sz7nvakBypg8V83tVXpPw98FzEp+3r2aPzuKBEdN+SHcZ+24ShYrcEYoR X-Received: by 2002:aa7:d893:0:b0:47f:ab65:b3fe with SMTP id u19-20020aa7d893000000b0047fab65b3femr27480507edq.33.1672595919883; Sun, 01 Jan 2023 09:58:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672595919; cv=none; d=google.com; s=arc-20160816; b=NTiREk00n4OzcbQVLkDnVjOdIzAVyUCcuvMs4E8XTnjZ+t4rELaDBO3CxRhWSlCMEM pnePkF2fdlPv2d9fhHSDERTlbgUQnqj7jACBAulYx0hizHdp2HQCLp3KUKSaIPEI6fZN HH5P1Jx55s0wjqB6OVfaVxzFXfTUwTJACYTPbWUjy9RZa5rZQxxYsk1U05GdkZBS2JqS 3vTwnY4R/pTWmzc0+/q469tza13YpeYGcRB69LjexYSa9fYLbvIF58h44eYXJraFhSNe sthsITiNoClVdepJQftMCUhr15h30+KqlK3KRS5izLkwRg8+lLKhRJUzdO1ZidwWqkEx ZiUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3DfiqceF+LdTWM6vdUk9wI6D8zoODeFMSPagFkfVzoU=; b=xqiQfI38aZR3lHCg8rjhPIOiL065F3s/0X/0sablY9UR/P4q7BZa+YJ5kWaBxye+Pj A8qOR9aqAuz6IEz2c/4J8gbK8obcBvwFLUv5L86BlOlXFnnoNp/S2MmJTcJvGZ4UIYV1 m3Mle1R1RrHWpE+vCYqdCMbsPsAzAN6p2wDMfpkzFBWTP1m8FkKF+GcAI9lBJoF9ECwv SX5oSuMSijB+0npV2U5dPmozvpzo3He2bUdGHMU/n/6p2LcJp4c+0sSfNO9syD8hTD+a EfGzwDRx9IU6m7EtMzuG5Ewc3i/aGu4G5LkC+PnPp0zL3BQXsQn0c00jYNIIQvQE7G/a trFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=AIzTs2vS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020a0564021e9200b00485a5f6323bsi17030123edf.12.2023.01.01.09.58.15; Sun, 01 Jan 2023 09:58:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=AIzTs2vS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231433AbjAAR54 (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Sun, 1 Jan 2023 12:57:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbjAAR5x (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 1 Jan 2023 12:57:53 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECE4C26F4 for <linux-kernel@vger.kernel.org>; Sun, 1 Jan 2023 09:57:49 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id u19so62201802ejm.8 for <linux-kernel@vger.kernel.org>; Sun, 01 Jan 2023 09:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3DfiqceF+LdTWM6vdUk9wI6D8zoODeFMSPagFkfVzoU=; b=AIzTs2vSaEXUe50V8v8kYmMn59yf7UAHUi9pIpYv41LR+iQIclW+UFLOhHAEB+y6Y8 9sFAuLlFjgcX/LhclHOoZ7UyRzmOOeZrHz+LsmYXNCGFArw2olR9eBo8wBfsunrR8wHo YHNaQSYyh22BzSnNaIiJCfiHb/gjA8yayO8Rk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3DfiqceF+LdTWM6vdUk9wI6D8zoODeFMSPagFkfVzoU=; b=k4oEr16tSKBggmb65QOXh4J0Pkdk7J0hMbBiY7UxFwgnBnaA5RhAfUykI3nICWy+QX Z0m2FX0Lk/hVwERd3qPenCZHKIplgeVuyo9xa4klS7dRSUheknDpQMOWZr5v/E9Yoaj1 jl/3RIU8brzRsMtD0radj0TyRDFXGp2XWBeY8PHm5ZXT3hwJ3PThPVrLhGMCbjVYFyuq c7NWZc1JmsjxSLW0EtrqOHFINgBuxrqkOwBfVKjO561xzjzt0+Xhvy37RWbvyp80S733 LGYT+ouCw1WvFJC6YTE4eoRrpnXdj0TF9m+cgAh0DKtr3Ow5qUAeRajvK6LQU+6XYbdJ riCA== X-Gm-Message-State: AFqh2krjAvOwIKjy9HkxJAAOuVVfs/ZAXf/ruBgrXAtSFWm/pMaMhnE0 dOPsPfIPlsyP4ZfNVZF0Pq1uR95hr76pMdsGaMQ= X-Received: by 2002:a17:906:5048:b0:7c0:b770:df94 with SMTP id e8-20020a170906504800b007c0b770df94mr33606021ejk.63.1672595868343; Sun, 01 Jan 2023 09:57:48 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-180-23-57.retail.telecomitalia.it. [80.180.23.57]) by smtp.gmail.com with ESMTPSA id q2-20020a1709063d4200b0082ddfb47d06sm12273018ejf.148.2023.01.01.09.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Jan 2023 09:57:48 -0800 (PST) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: angelo@amarulasolutions.com, michael@amarulasolutions.com, tommaso.merciai@amarulasolutions.com, Chen-Yu Tsai <wenst@chromium.org>, linux-amarula@amarulasolutions.com, anthony@amarulasolutions.com, jagan@amarulasolutions.com, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Abel Vesa <abelvesa@kernel.org>, Fabio Estevam <festevam@gmail.com>, Michael Turquette <mturquette@baylibre.com>, NXP Linux Team <linux-imx@nxp.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Sascha Hauer <s.hauer@pengutronix.de>, Shawn Guo <shawnguo@kernel.org>, Stephen Boyd <sboyd@kernel.org>, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [RFC PATCH v2 01/11] clk: imx: add structure to extend register accesses Date: Sun, 1 Jan 2023 18:57:30 +0100 Message-Id: <20230101175740.1010258-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230101175740.1010258-1-dario.binacchi@amarulasolutions.com> References: <20230101175740.1010258-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753843939262591852?= X-GMAIL-MSGID: =?utf-8?q?1753843939262591852?= |
Series |
clk: imx8mn: setup clocks from the device tree
|
|
Commit Message
Dario Binacchi
Jan. 1, 2023, 5:57 p.m. UTC
The imx_clk_reg structure allows accessing both registers that belong to
specific modules and those that are registered in syscon through the use
of the regmap API.
This is a preparation patch for the upcoming support to setup clocks
directly from the device tree.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
(no changes since v1)
drivers/clk/imx/clk.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 689b3ad927c0..86538c990a0d 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -89,6 +89,18 @@ struct imx_fracn_gppll_clk { int flags; }; +/** + * struct imx_clk_reg - imx register declaration + * @base: the register base address + * @regmap: the register map + * @offset: the offset within @base or @regmap + */ +struct imx_clk_reg { + void __iomem *base; + struct regmap *regmap; + u16 offset; +}; + struct clk_hw *imx_clk_fracn_gppll(const char *name, const char *parent_name, void __iomem *base, const struct imx_fracn_gppll_clk *pll_clk);