Message ID | 20250306112959.242131-11-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRB2EOU27AMGQEQKH5C4I@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3D5A040D3A for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 6 Mar 2025 12:30:49 +0100 (CET) Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-391079c9798sf256157f8f.3 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 06 Mar 2025 03:30:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1741260649; cv=pass; d=google.com; s=arc-20240605; b=AKdLEE+nnuqc1FawxLf+9xFdW2u3miKRHkpSm3vpDFGQohrC4iuzGtZNfGJbG0MbSO 3apDzmM1uS5tUIWvtQc/HLhuD/LLMEDVDevkUYq6hj0LfqzaoqX0IMgpJu4k2oZVLcwj 84ja9Q1QVi0TezARH5s0Dz07v7Xxs9UUrHsuH2nhkFQGThnACW6O2dKmp5D6uLsXudaq GU/IpF/7xorPtS7THX0qLlHya24Djx/vRxVkhy+4mCWqjcBuT3F7ztrA2bsQEa1pu9Cl +PFo9t86vS22LiUHybmJb1xMCePerGlkDqbSzT34FFZCyAYNFqbgf8TpUwT6tojv+N97 9v2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=S3YkaQvzzIlgAs8pxHgZhSdUl1AMqHA2s2sSXSuzETk=; fh=LWKz1pOxGeVfx8Rxh99Zpg7AmiUbBI/+kPl4oA5fmaY=; b=OYzz40N1RgjoGlQG8jioLN9U7apRjMY5NSkfww7qSjvN+wvmthbrciqsFMj7mC1MqU OR9aB7hGGqQ2ta0O5K/XdhKzFKzyQ3YpNlUVuh3DJMXvdxvCh6/JjlvKjey38C/FPC8h mz4216WlgI8t3VwGpWi+ghZbE7PkzEZwvUylk8voOytDxeym5z9U8+hGj2cg0NGe3WtP 25pvr7JlmGXQz+9L1cnU4HGQZdgTwbdNzc7k8yMQK6x/HVDh4CFZJxjBwAl/F3iAWBvl T3LQ3fBfWN5Rzq3a3DZeOCPKqXulEThlXS9ydGj0QGaHmZVGQ9mlKV6pW2pfsr6uE3Av g57g==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RQE2srFa; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1741260649; x=1741865449; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=S3YkaQvzzIlgAs8pxHgZhSdUl1AMqHA2s2sSXSuzETk=; b=roKH6QLNKBEZIqjjmB89hBvDXBfhRda7egQcI9LtsqTFlCKPJu6UnJ2SFN+N21L66I 7S1FG25kXMmJoZNzYBpnQjAfEyBrbPvdqBF8PT+PYsSAUx94+63vqM8cwqlqwX4W/mf2 j1/Ek6wYxHf5wLxWxNjO8kT9NthGstOQXOIcA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741260649; x=1741865449; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=S3YkaQvzzIlgAs8pxHgZhSdUl1AMqHA2s2sSXSuzETk=; b=SbcYKPbwGvWsZ7l2qpNDOaaRv8ssU341fdS/a7SnFi1epbwz8zpOU9sRctkjIi0mMp lZhCVZv8nyClI2z/g5lsjSMC5YhAzDn/plcUgu1Gpyl8tngU59lOCkNrt26IeWyDbdW3 e9JWXxRLCCFdRjgtz/6x0nyRnqnVDmxNe5ECepK+xF8/yfay3EsJcR3nl08Psowq0KSH NCR4VC6AIqM+AbWttXIMTiYqhOc6ENqmJ/8A9X3a+5GE/OMOU7cn+FvnbI7zrF023Chv LObYFbVDS+nFc9fs2Cc7A8+I3kvIjOPxgv+l6axsaZJSKsGqfNz5x45vLuaTrC/din0u 47dQ== X-Forwarded-Encrypted: i=2; AJvYcCW4UXVHhFHsN+Cdzy/EWZtrkRwcgfNKYAMSGIARVvJjsY8cVreH3ZFkg3qhoFdW2faWGm3owU4Nxre2CnY4@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwHtzXjc925JiYWgNqAG5qt/cSn+ANqJjymtABHoGgWNlCaK2vD zD/J7+gZ4YU2HSR8ekeu+dq38nU30IxXBpF47n39pMP5BHFA+0/WQp/CK2BktvurOg== X-Google-Smtp-Source: AGHT+IEISgMRW/Pwk+da6vduX712MH0Jn1pBq4kVzMd32snNpsa6nn+vvg26U949DAr++cbSMJqERQ== X-Received: by 2002:a5d:588a:0:b0:391:2e6a:30fe with SMTP id ffacd0b85a97d-3912e6a3392mr1084287f8f.39.1741260648832; Thu, 06 Mar 2025 03:30:48 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com; h=Adn5yVGmVnONZHvrokYFJ30FJHEgXo0rXVqgvNJlEdYp2x2GVw== Received: by 2002:adf:b648:0:b0:390:df6c:594f with SMTP id ffacd0b85a97d-391295fea1cls479989f8f.1.-pod-prod-06-eu; Thu, 06 Mar 2025 03:30:47 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWoAXrPmhtij2KeKUltp33R7KpWok2iiz/eNEGjb05QZEEW7BRMuxmTBKLvrNhXzWeY9IgMIAZaNdSW63k9@amarulasolutions.com X-Received: by 2002:a05:6000:4183:b0:38f:3c01:fb1f with SMTP id ffacd0b85a97d-3911f75aed1mr4213630f8f.30.1741260647006; Thu, 06 Mar 2025 03:30:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741260646; cv=none; d=google.com; s=arc-20240605; b=kL4xJ1uAm+iUBG1VZVPkZ2jq/MpzvGyJ0gBJuFtp0x8WAHsmivYH0KxScBuJSvIowp kJQeLpp7QGeUm4Njn0Q2CRpJVjpYUjKWnaRPdHK84H3jPGnmdT85AaQa7zSNNB9VrUTw gNArFcsWcLtV04J3Qi0RiIGVY9RTSNG7lT+zFsHE8qOtBVFIH4/DWg9Kw1GrwB84/OK5 f4x2Q1bZHUWP0WlLdhzTb2lqXtSWtU63/lVA+HHezEYl97jn//pew9sthjwS4P0SpmE4 uUu47hixd+FWFtCoZo5fBerO4nkVoUVmr8WjDWLFFDmrUgqjXAgaXJ+sUzLksgC7nqBr E0fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=gDZuiTdlw8039p8GoLYv+uw7eDAfVUu6FSj2o7a4bY0=; fh=6pAm1Ec1pqbkQJ20BMY0AUkEvwKO8Y0+MCg7iCBcs5I=; b=RulHCdA/0PpugN9hVAEBB1L/i70YrzV28at9RTwXuy9JyGkbFJ8sdeuqjtm1Ksia1M cWtNUTxqaLzAmFwy0+vIIByWvdpEkiMsihpROfvSuwCP4fffW1fJtWcSWpyK5DHJu3QC f91PSzj6fPSHV4UVmDO1xVO6+JqqDe8vgHs1A1bE2qcQ8HRWnm3NoiEW1vNzhmLg860Y usQRn1VLyNmhSZHXvDD6Cujd0yyTElVUNuRlDjiAZyyy85X6Bth60FJCThNvm4jmRdgW dfZwAPGtc1iNcRSDZVjrvYfusvidfC+arxAyW01CgixcRxeoU1RKBa7+vr6urICZezqC rkBQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RQE2srFa; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-43bdd93e4a3sor4086895e9.7.2025.03.06.03.30.46 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Thu, 06 Mar 2025 03:30:46 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCU8UACZzrLQ/eFa2rPVIgghs8CYidCyjq5Mk0X2aGbsfj1hs8oe2pubgbR8NfcK0SL0hocJtfR9KS9wPiva@amarulasolutions.com X-Gm-Gg: ASbGncvU9GrpKE8qbJt9Z3VNKonmenwsS+Nk4oSS0IIsg+wenSWgY+8QIUCXxVUWI+P +bvNbRoWsOWdtV38YYx2pY1XPhdZQmRJ4UAkdQf4Qn22C88Q/2Ony46ZzTZgJrAd8/AphMfecKN Zs6o5wISE7Ob1Jj+hJBBwGyRHb8hhp+U4LDyGDfzn7W6AvFm98V7vugwF5iWiHWe5XoMZS3ZDHG Gh13IH30gA/tJH8rwTPgnvKDrFZNMKkdYJuoA3jr69Fa+aX2agjIA0awFLiCk9vC2uPHiuRDyDe /bV1iT2OcCjxyefLqh6f62Sv/Rh++Jz30y1Mr5zbT/3IPWjPS7HG0/f2aGfHjDQeIH0EPgF2CDs J/zo5zA== X-Received: by 2002:a05:600c:5117:b0:439:a6db:1824 with SMTP id 5b1f17b1804b1-43bd29d6c7fmr66278975e9.16.1741260646580; Thu, 06 Mar 2025 03:30:46 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:4703:aa8c:6eab:8161]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3912bfb79b9sm1749650f8f.3.2025.03.06.03.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Mar 2025 03:30:46 -0800 (PST) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: Stephen Boyd <sboyd@kernel.org>, Peng Fan <peng.fan@nxp.com>, Abel Vesa <abelvesa@kernel.org>, linux-amarula@amarulasolutions.com, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Fabio Estevam <festevam@gmail.com>, Michael Turquette <mturquette@baylibre.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Sascha Hauer <s.hauer@pengutronix.de>, Shawn Guo <shawnguo@kernel.org>, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH v10 10/18] clk: imx: add hw API imx_anatop_get_clk_hw Date: Thu, 6 Mar 2025 12:27:59 +0100 Message-ID: <20250306112959.242131-11-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250306112959.242131-1-dario.binacchi@amarulasolutions.com> References: <20250306112959.242131-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RQE2srFa; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/clk/imx/clk.c b/drivers/clk/imx/clk.c index df83bd939492..a906d3cd960b 100644 --- a/drivers/clk/imx/clk.c +++ b/drivers/clk/imx/clk.c @@ -128,6 +128,21 @@ struct clk_hw *imx_get_clk_hw_by_name(struct device_node *np, const char *name) } EXPORT_SYMBOL_GPL(imx_get_clk_hw_by_name); +struct clk_hw *imx_anatop_get_clk_hw(struct device_node *np, int id) +{ + struct of_phandle_args args; + struct clk_hw *hw; + + args.np = np; + args.args_count = 1; + args.args[0] = id; + + hw = __clk_get_hw(of_clk_get_from_provider(&args)); + pr_debug("%s: got clk: %s\n", __func__, clk_hw_get_name(hw)); + return hw; +} +EXPORT_SYMBOL_GPL(imx_anatop_get_clk_hw); + /* * This fixups the register CCM_CSCMR1 write value. * The write/read/divider values of the aclk_podf field diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index aa5202f284f3..50e407cf48d9 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -487,4 +487,6 @@ struct clk_hw *imx_clk_gpr_mux(const char *name, const char *compatible, u32 reg, const char **parent_names, u8 num_parents, const u32 *mux_table, u32 mask); +struct clk_hw *imx_anatop_get_clk_hw(struct device_node *np, int id); + #endif