Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 050c2024 authored by Deepak Katragadda's avatar Deepak Katragadda
Browse files

clk: qcom: gcc-sdm845: Only vote on active-only resources for rbcpr clock



The current design of the cpuss_rbcpr clock would result in
blocking XO shutdown due to its always present votes on the
CXO and VDD_CX resources. Vote on the active-only states for
these resources on behalf of the clock.

Change-Id: Ia271ad63da923c37c5d067f9f768419b66701201
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent e40d860d
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -158,6 +158,12 @@ static const char * const gcc_parent_names_7[] = {
	"core_bi_pll_test_se",
};

static const char * const gcc_parent_names_8[] = {
	"bi_tcxo_ao",
	"gpll0",
	"core_bi_pll_test_se",
};

static struct clk_dummy measure_only_snoc_clk = {
	.rrate = 1000,
	.hw.init = &(struct clk_init_data){
@@ -298,11 +304,11 @@ static struct clk_rcg2 gcc_cpuss_rbcpr_clk_src = {
	.freq_tbl = ftbl_gcc_cpuss_rbcpr_clk_src,
	.clkr.hw.init = &(struct clk_init_data){
		.name = "gcc_cpuss_rbcpr_clk_src",
		.parent_names = gcc_parent_names_3,
		.parent_names = gcc_parent_names_8,
		.num_parents = 3,
		.flags = CLK_SET_RATE_PARENT,
		.ops = &clk_rcg2_ops,
		VDD_CX_FMAX_MAP1(
		VDD_CX_FMAX_MAP1_AO(
			MIN, 19200000),
	},
};