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

Commit 6c7e8e12 authored by Deepak Katragadda's avatar Deepak Katragadda
Browse files

clk: qcom: gpucc-sdm845: Toggle GFX3D RCG during GX GDSC enable/disable



The gpu_cc_gx_gfx3d_clk_src RCG needs to be force enabled prior to
turning on the GPU GX GDSC on SDM845. Add support for this.

Change-Id: If4e4ef088c06b0e6ac4efebcc2e0ae703fc5078c
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 0b0737dd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2114,6 +2114,9 @@
};

&gpu_gx_gdsc {
	clock-names = "core_root_clk";
	clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
	qcom,force-enable-root-clk;
	parent-supply = <&pm8005_s1_level>;
	status = "ok";
};
+1 −1
Original line number Diff line number Diff line
@@ -211,9 +211,9 @@ static struct clk_rcg2 gpu_cc_gx_gfx3d_clk_src = {
	.cmd_rcgr = 0x101c,
	.mnd_width = 0,
	.hid_width = 5,
	.enable_safe_config = true,
	.parent_map = gpu_cc_parent_map_1,
	.freq_tbl = ftbl_gpu_cc_gx_gfx3d_clk_src,
	.flags = FORCE_ENABLE_RCG,
	.clkr.hw.init = &(struct clk_init_data){
		.name = "gpu_cc_gx_gfx3d_clk_src",
		.parent_names = gpu_cc_parent_names_1,