Skip to content

Commit 9ff1a3b

Browse files
Taniya Dasbebarino
authored andcommitted
clk: qcom: gcc: Use active only source for CPUSS clocks
The clocks of the CPUSS such as "gcc_cpuss_ahb_clk_src" is a CRITICAL clock and needs to vote on the active only source of XO, so as to keep the vote as long as CPUSS is active. Similar rbcpr_clk_src is also has the same requirement. Signed-off-by: Taniya Das <tdas@codeaurora.org> Fixes: 06391ed ("clk: qcom: Add Global Clock controller (GCC) driver for SDM845") Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 303aef8 commit 9ff1a3b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

drivers/clk/qcom/gcc-sdm845.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ static const char * const gcc_parent_names_6[] = {
115115
"core_bi_pll_test_se",
116116
};
117117

118-
static const char * const gcc_parent_names_7[] = {
119-
"bi_tcxo",
118+
static const char * const gcc_parent_names_7_ao[] = {
119+
"bi_tcxo_ao",
120120
"gpll0",
121121
"gpll0_out_even",
122122
"core_bi_pll_test_se",
@@ -128,6 +128,12 @@ static const char * const gcc_parent_names_8[] = {
128128
"core_bi_pll_test_se",
129129
};
130130

131+
static const char * const gcc_parent_names_8_ao[] = {
132+
"bi_tcxo_ao",
133+
"gpll0",
134+
"core_bi_pll_test_se",
135+
};
136+
131137
static const struct parent_map gcc_parent_map_10[] = {
132138
{ P_BI_TCXO, 0 },
133139
{ P_GPLL0_OUT_MAIN, 1 },
@@ -210,7 +216,7 @@ static struct clk_rcg2 gcc_cpuss_ahb_clk_src = {
210216
.freq_tbl = ftbl_gcc_cpuss_ahb_clk_src,
211217
.clkr.hw.init = &(struct clk_init_data){
212218
.name = "gcc_cpuss_ahb_clk_src",
213-
.parent_names = gcc_parent_names_7,
219+
.parent_names = gcc_parent_names_7_ao,
214220
.num_parents = 4,
215221
.ops = &clk_rcg2_ops,
216222
},
@@ -229,7 +235,7 @@ static struct clk_rcg2 gcc_cpuss_rbcpr_clk_src = {
229235
.freq_tbl = ftbl_gcc_cpuss_rbcpr_clk_src,
230236
.clkr.hw.init = &(struct clk_init_data){
231237
.name = "gcc_cpuss_rbcpr_clk_src",
232-
.parent_names = gcc_parent_names_8,
238+
.parent_names = gcc_parent_names_8_ao,
233239
.num_parents = 3,
234240
.ops = &clk_rcg2_ops,
235241
},

0 commit comments

Comments
 (0)