From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Robert Marko <robert.marko@sartura.hr>,
andersson@kernel.org, agross@kernel.org, mturquette@baylibre.com,
sboyd@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: luka.perkov@sartura.hr
Subject: Re: [PATCH 6/7] clk: qcom: gcc-ipq4019: move pcnoc clocks up
Date: Thu, 16 Feb 2023 11:41:29 +0100 [thread overview]
Message-ID: <06fa7de2-7c1c-8dc6-68e4-8902c902b619@linaro.org> (raw)
In-Reply-To: <20230214162325.312057-6-robert.marko@sartura.hr>
On 14.02.2023 17:23, Robert Marko wrote:
> Move pcnoc clocks up just after PLL-s to be able to use their
> HW fields.
>
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Konrad
> drivers/clk/qcom/gcc-ipq4019.c | 74 +++++++++++++++++-----------------
> 1 file changed, 37 insertions(+), 37 deletions(-)
>
> diff --git a/drivers/clk/qcom/gcc-ipq4019.c b/drivers/clk/qcom/gcc-ipq4019.c
> index f4bc587131c20..f2728dc1e5521 100644
> --- a/drivers/clk/qcom/gcc-ipq4019.c
> +++ b/drivers/clk/qcom/gcc-ipq4019.c
> @@ -499,6 +499,43 @@ static struct clk_fepll gcc_fepllwcss5g_clk = {
> .pll_vco = &gcc_fepll_vco,
> };
>
> +static const struct freq_tbl ftbl_gcc_pcnoc_ahb_clk[] = {
> + F(48000000, P_XO, 1, 0, 0),
> + F(100000000, P_FEPLL200, 2, 0, 0),
> + { }
> +};
> +
> +static struct clk_rcg2 gcc_pcnoc_ahb_clk_src = {
> + .cmd_rcgr = 0x21024,
> + .hid_width = 5,
> + .parent_map = gcc_xo_200_500_map,
> + .freq_tbl = ftbl_gcc_pcnoc_ahb_clk,
> + .clkr.hw.init = &(struct clk_init_data){
> + .name = "gcc_pcnoc_ahb_clk_src",
> + .parent_names = gcc_xo_200_500,
> + .num_parents = 3,
> + .ops = &clk_rcg2_ops,
> + },
> +};
> +
> +static struct clk_branch pcnoc_clk_src = {
> + .halt_reg = 0x21030,
> + .clkr = {
> + .enable_reg = 0x21030,
> + .enable_mask = BIT(0),
> + .hw.init = &(struct clk_init_data){
> + .name = "pcnoc_clk_src",
> + .parent_names = (const char *[]){
> + "gcc_pcnoc_ahb_clk_src",
> + },
> + .num_parents = 1,
> + .ops = &clk_branch2_ops,
> + .flags = CLK_SET_RATE_PARENT |
> + CLK_IS_CRITICAL,
> + },
> + },
> +};
> +
> static const struct freq_tbl ftbl_gcc_audio_pwm_clk[] = {
> F(48000000, P_XO, 1, 0, 0),
> F(200000000, P_FEPLL200, 1, 0, 0),
> @@ -1541,43 +1578,6 @@ static struct clk_branch gcc_wcss5g_rtc_clk = {
> },
> };
>
> -static const struct freq_tbl ftbl_gcc_pcnoc_ahb_clk[] = {
> - F(48000000, P_XO, 1, 0, 0),
> - F(100000000, P_FEPLL200, 2, 0, 0),
> - { }
> -};
> -
> -static struct clk_rcg2 gcc_pcnoc_ahb_clk_src = {
> - .cmd_rcgr = 0x21024,
> - .hid_width = 5,
> - .parent_map = gcc_xo_200_500_map,
> - .freq_tbl = ftbl_gcc_pcnoc_ahb_clk,
> - .clkr.hw.init = &(struct clk_init_data){
> - .name = "gcc_pcnoc_ahb_clk_src",
> - .parent_names = gcc_xo_200_500,
> - .num_parents = 3,
> - .ops = &clk_rcg2_ops,
> - },
> -};
> -
> -static struct clk_branch pcnoc_clk_src = {
> - .halt_reg = 0x21030,
> - .clkr = {
> - .enable_reg = 0x21030,
> - .enable_mask = BIT(0),
> - .hw.init = &(struct clk_init_data){
> - .name = "pcnoc_clk_src",
> - .parent_names = (const char *[]){
> - "gcc_pcnoc_ahb_clk_src",
> - },
> - .num_parents = 1,
> - .ops = &clk_branch2_ops,
> - .flags = CLK_SET_RATE_PARENT |
> - CLK_IS_CRITICAL,
> - },
> - },
> -};
> -
> static struct clk_regmap *gcc_ipq4019_clocks[] = {
> [AUDIO_CLK_SRC] = &audio_clk_src.clkr,
> [BLSP1_QUP1_I2C_APPS_CLK_SRC] = &blsp1_qup1_i2c_apps_clk_src.clkr,
next prev parent reply other threads:[~2023-02-16 10:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-14 16:23 [PATCH 1/7] dt-bindings: clock: split qcom,gcc-ipq4019 to separate file Robert Marko
2023-02-14 16:23 ` [PATCH 2/7] clk: qcom: gcc-ipq4019: convert XO and sleep clk to parent_data Robert Marko
2023-02-16 10:42 ` Konrad Dybcio
2023-02-16 10:43 ` Konrad Dybcio
2023-02-14 16:23 ` [PATCH 3/7] ARM: dts: qcom: ipq4019: pass XO and sleep clocks to GCC Robert Marko
2023-02-14 16:23 ` [PATCH 4/7] ARM: dts: qcom: ipq4019: remove clk-output-names for sleep clock Robert Marko
2023-02-14 16:23 ` [PATCH 5/7] clk: qcom: gcc-ipq4019: move PLL clocks up Robert Marko
2023-02-14 16:23 ` [PATCH 6/7] clk: qcom: gcc-ipq4019: move pcnoc " Robert Marko
2023-02-16 10:41 ` Konrad Dybcio [this message]
2023-02-14 16:23 ` [PATCH 7/7] clk: qcom: gcc-ipq4019: convert to parent data Robert Marko
2023-02-16 10:16 ` [PATCH 1/7] dt-bindings: clock: split qcom,gcc-ipq4019 to separate file Krzysztof Kozlowski
2023-02-16 10:41 ` Robert Marko
2023-02-16 10:43 ` Krzysztof Kozlowski
2023-03-15 23:35 ` (subset) " Bjorn Andersson
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=06fa7de2-7c1c-8dc6-68e4-8902c902b619@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luka.perkov@sartura.hr \
--cc=mturquette@baylibre.com \
--cc=robert.marko@sartura.hr \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.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;
as well as URLs for NNTP newsgroup(s).