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

Commit f41bc1aa authored by Deepak Katragadda's avatar Deepak Katragadda
Browse files

clk: qcom: Add the CRITICAL flag to multimedia XO and GDSC clocks



The multimedia XO and GDSC clocks are required to be enabled
for the relevant GDSCs to turn on. Keep an always-on vote on
these clocks so that the dependency is met. The state of these
clocks will then toggle based on the MMCX rail state.

Change-Id: Ica61cb587ea943d569f461ce7d3e979b163c85db
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent cbb8c328
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1518,6 +1518,7 @@ static struct clk_branch cam_cc_gdsc_clk = {
		.enable_mask = BIT(0),
		.hw.init = &(struct clk_init_data){
			.name = "cam_cc_gdsc_clk",
			.flags = CLK_IS_CRITICAL,
			.ops = &clk_branch2_ops,
		},
	},
+1 −1
Original line number Diff line number Diff line
@@ -1376,7 +1376,7 @@ static struct clk_branch disp_cc_xo_clk = {
		.enable_mask = BIT(0),
		.hw.init = &(struct clk_init_data){
			.name = "disp_cc_xo_clk",
			.flags = CLK_SET_RATE_PARENT,
			.flags = CLK_IS_CRITICAL,
			.ops = &clk_branch2_ops,
		},
	},
+1 −0
Original line number Diff line number Diff line
@@ -210,6 +210,7 @@ static struct clk_branch video_cc_xo_clk = {
		.enable_mask = BIT(0),
		.hw.init = &(struct clk_init_data){
			.name = "video_cc_xo_clk",
			.flags = CLK_IS_CRITICAL,
			.ops = &clk_branch2_ops,
		},
	},