Skip to content

Commit d863492

Browse files
affenull2345andersson
authored andcommitted
clk: qcom: gcc-msm8917: Enable GPLL0_SLEEP_CLK_SRC
This is the parent clock of gpll0_early, so it needs to be enabled for gpll0_early to return the correct rate. Enable GPLL0_SLEEP_CLK_SRC by adding its existing definition to the clock list. This clock also doesn't work with clk_alpha_pll_ops, use clk_branch_simple_ops instead to make it enable and disable correctly. Signed-off-by: Otto Pflüger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 593576a commit d863492

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clk/qcom/gcc-msm8917.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static struct clk_alpha_pll gpll0_sleep_clk_src = {
6464
.index = DT_XO,
6565
},
6666
.num_parents = 1,
67-
.ops = &clk_alpha_pll_ops,
67+
.ops = &clk_branch_simple_ops,
6868
},
6969
},
7070
};
@@ -3042,6 +3042,7 @@ static struct gdsc cpp_gdsc = {
30423042
static struct clk_regmap *gcc_msm8917_clocks[] = {
30433043
[GPLL0] = &gpll0.clkr,
30443044
[GPLL0_EARLY] = &gpll0_early.clkr,
3045+
[GPLL0_SLEEP_CLK_SRC] = &gpll0_sleep_clk_src.clkr,
30453046
[GPLL3] = &gpll3.clkr,
30463047
[GPLL3_EARLY] = &gpll3_early.clkr,
30473048
[GPLL4] = &gpll4.clkr,

0 commit comments

Comments
 (0)