From: Varadarajan Narayanan <quic_varada@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: <robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>,
<angelogioacchino.delregno@collabora.com>, <andersson@kernel.org>,
<konrad.dybcio@linaro.org>, <mturquette@baylibre.com>,
<sboyd@kernel.org>, <ulf.hansson@linaro.org>,
<quic_sibis@quicinc.com>, <quic_rjendra@quicinc.com>,
<luca@z3ntu.xyz>, <abel.vesa@linaro.org>,
<quic_rohiagar@quicinc.com>, <danila@jiaxyga.com>,
<otto.pflueger@abscue.de>, <linux-arm-msm@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-clk@vger.kernel.org>, <linux-pm@vger.kernel.org>
Subject: Re: [PATCH v1 5/7] clk: qcom: gcc-ipq9574: Add CPR clock definition
Date: Fri, 21 Jun 2024 16:50:05 +0530 [thread overview]
Message-ID: <ZnVh5d8RfPnMBvN8@hu-varada-blr.qualcomm.com> (raw)
In-Reply-To: <wadru6axfhvws74vcd6umdhnm6gl5poegoljvb7fgbtuz2mccp@hrclt6qesp6e>
On Thu, Jun 20, 2024 at 06:11:32PM +0300, Dmitry Baryshkov wrote:
> On Thu, Jun 20, 2024 at 01:44:25PM GMT, Varadarajan Narayanan wrote:
> > Add the CPR clock definition needed for enabling access to
> > CPR register space.
> >
> > Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
> > ---
> > drivers/clk/qcom/gcc-ipq9574.c | 38 ++++++++++++++++++++++++++++++++++
> > 1 file changed, 38 insertions(+)
> >
> > diff --git a/drivers/clk/qcom/gcc-ipq9574.c b/drivers/clk/qcom/gcc-ipq9574.c
> > index e1dc74d04ed1..7c8eb94f654b 100644
> > --- a/drivers/clk/qcom/gcc-ipq9574.c
> > +++ b/drivers/clk/qcom/gcc-ipq9574.c
> > @@ -3994,6 +3994,43 @@ static struct clk_branch gcc_xo_div4_clk = {
> > },
> > };
> >
> > +static const struct freq_tbl ftbl_hmss_rbcpr_clk_src[] = {
> > + F(24000000, P_XO, 1, 0, 0),
> > + { }
> > +};
> > +
> > +static struct clk_rcg2 rbcpr_clk_src = {
> > + .cmd_rcgr = 0x48044,
> > + .mnd_width = 0,
> > + .hid_width = 5,
> > + .parent_map = gcc_xo_map,
> > + .freq_tbl = ftbl_gp1_clk_src,
> > + .clkr.hw.init = &(struct clk_init_data){
> > + .name = "rbcpr_clk_src",
> > + .parent_data = gcc_xo_gpll0_gpll4,
> > + .num_parents = ARRAY_SIZE(gcc_xo_map),
> > + .ops = &clk_rcg2_ops,
> > + },
> > +};
> > +
> > +static struct clk_branch gcc_rbcpr_clk = {
> > + .halt_reg = 0x48008,
> > + .halt_check = BRANCH_HALT,
> > + .clkr = {
> > + .enable_reg = 0x48008,
> > + .enable_mask = BIT(0),
> > + .hw.init = &(struct clk_init_data){
> > + .name = "gcc_rbcpr_clk",
> > + .parent_hws = (const struct clk_hw *[]) {
> > + &rbcpr_clk_src.clkr.hw,
>
> Where is the &rbcpr_clk_src registered?
Oops. Missed it. Will post a corrected patch.
Thanks
Varada
> > + },
> > + .num_parents = 1,
> > + .flags = CLK_SET_RATE_PARENT,
> > + .ops = &clk_branch2_ops,
> > + },
> > + },
> > +};
> > +
> > static struct clk_hw *gcc_ipq9574_hws[] = {
> > &gpll0_out_main_div2.hw,
> > &gcc_xo_div4_clk_src.hw,
> > @@ -4219,6 +4256,7 @@ static struct clk_regmap *gcc_ipq9574_clks[] = {
> > [GCC_PCIE1_PIPE_CLK] = &gcc_pcie1_pipe_clk.clkr,
> > [GCC_PCIE2_PIPE_CLK] = &gcc_pcie2_pipe_clk.clkr,
> > [GCC_PCIE3_PIPE_CLK] = &gcc_pcie3_pipe_clk.clkr,
> > + [GCC_RBCPR_CLK] = &gcc_rbcpr_clk.clkr,
> > };
> >
> > static const struct qcom_reset_map gcc_ipq9574_resets[] = {
> > --
> > 2.34.1
next prev parent reply other threads:[~2024-06-21 11:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-20 8:14 [PATCH v1 0/7] Enable CPR for IPQ9574 Varadarajan Narayanan
2024-06-20 8:14 ` [PATCH v1 1/7] dt-bindings: power: rpmpd: Add IPQ9574 power domains Varadarajan Narayanan
2024-06-20 13:26 ` Krzysztof Kozlowski
2024-06-20 8:14 ` [PATCH v1 2/7] dt-bindings: soc: qcom: cpr3: Add bindings for IPQ9574 Varadarajan Narayanan
2024-06-20 13:28 ` Krzysztof Kozlowski
2024-06-20 8:14 ` [PATCH v1 3/7] pmdomain: qcom: rpmpd: Add IPQ9574 power domains Varadarajan Narayanan
2024-06-20 15:09 ` Dmitry Baryshkov
2024-06-21 7:30 ` Varadarajan Narayanan
2024-06-21 20:55 ` Dmitry Baryshkov
2024-06-24 5:04 ` Varadarajan Narayanan
2024-06-20 8:14 ` [PATCH v1 4/7] dt-bindings: clock: Add CPR clock defines for IPQ9574 Varadarajan Narayanan
2024-06-20 13:30 ` Krzysztof Kozlowski
2024-06-20 8:14 ` [PATCH v1 5/7] clk: qcom: gcc-ipq9574: Add CPR clock definition Varadarajan Narayanan
2024-06-20 15:11 ` Dmitry Baryshkov
2024-06-21 11:20 ` Varadarajan Narayanan [this message]
2024-06-20 8:14 ` [PATCH v1 6/7] soc: qcom: cpr3: Add IPQ9574 definitions Varadarajan Narayanan
2024-06-20 8:14 ` [PATCH v1 7/7] dts: arm64: qcom: ipq9574: Enable CPR Varadarajan Narayanan
2024-06-20 15:16 ` Dmitry Baryshkov
2024-06-20 15:55 ` [PATCH v1 0/7] Enable CPR for IPQ9574 Konrad Dybcio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZnVh5d8RfPnMBvN8@hu-varada-blr.qualcomm.com \
--to=quic_varada@quicinc.com \
--cc=abel.vesa@linaro.org \
--cc=andersson@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=danila@jiaxyga.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=luca@z3ntu.xyz \
--cc=mturquette@baylibre.com \
--cc=otto.pflueger@abscue.de \
--cc=quic_rjendra@quicinc.com \
--cc=quic_rohiagar@quicinc.com \
--cc=quic_sibis@quicinc.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®