]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: qcom: gcc: limit GPLL0_AO_OUT operating frequency
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Mon, 25 Nov 2019 13:59:04 +0000 (14:59 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 19 Dec 2019 06:07:52 +0000 (22:07 -0800)
Limit the GPLL0_AO_OUT_MAIN operating frequency as per its hardware
specifications.

Co-developed-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20191125135910.679310-3-niklas.cassel@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/clk-alpha-pll.c
drivers/clk/qcom/clk-alpha-pll.h
drivers/clk/qcom/gcc-qcs404.c

index 055318f97991535bc0d3d17360f8cf5c93d815ac..9228b7b1f56e59831216523d26f9030d94d2a12b 100644 (file)
@@ -878,6 +878,14 @@ static long clk_trion_pll_round_rate(struct clk_hw *hw, unsigned long rate,
        return clamp(rate, min_freq, max_freq);
 }
 
+const struct clk_ops clk_alpha_pll_fixed_ops = {
+       .enable = clk_alpha_pll_enable,
+       .disable = clk_alpha_pll_disable,
+       .is_enabled = clk_alpha_pll_is_enabled,
+       .recalc_rate = clk_alpha_pll_recalc_rate,
+};
+EXPORT_SYMBOL_GPL(clk_alpha_pll_fixed_ops);
+
 const struct clk_ops clk_alpha_pll_ops = {
        .enable = clk_alpha_pll_enable,
        .disable = clk_alpha_pll_disable,
index 15f27f4b06df5ec7570d42f4b53342161d246372..c28eb1a08c0cac61214290b9f7686832ece76f29 100644 (file)
@@ -109,6 +109,7 @@ struct alpha_pll_config {
 };
 
 extern const struct clk_ops clk_alpha_pll_ops;
+extern const struct clk_ops clk_alpha_pll_fixed_ops;
 extern const struct clk_ops clk_alpha_pll_hwfsm_ops;
 extern const struct clk_ops clk_alpha_pll_postdiv_ops;
 extern const struct clk_ops clk_alpha_pll_huayra_ops;
index 9b0c4ce2ef4eccafc9eddfeefb86cd246ab5f1f2..46d314d69250584d715c5a28ce2ecf5dba043398 100644 (file)
@@ -330,7 +330,7 @@ static struct clk_alpha_pll gpll0_ao_out_main = {
                        .parent_names = (const char *[]){ "cxo" },
                        .num_parents = 1,
                        .flags = CLK_IS_CRITICAL,
-                       .ops = &clk_alpha_pll_ops,
+                       .ops = &clk_alpha_pll_fixed_ops,
                },
        },
 };