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

Commit 89a62b85 authored by Taniya Das's avatar Taniya Das Committed by Gerrit - the friendly Code Review server
Browse files

clk: msm: clock-gcc: Associate gfx rail voting with gfx3d branch



The root clock of gfx3d_clk_src is required to be voted on before enabling
the oxili gdscr and disabled after disabling gdscr. GFX rail can not handle
any voltage set from clk_disable_unprepare after disable of gdscr, thus
moving the rail voting with the gfx3d branch.

Change-Id: I2a1759cd059f643594d4dbc7ce0329f0e143ac43
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent d171201f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -398,7 +398,6 @@ static struct rcg_clk gfx3d_clk_src = {
	.c = {
		.dbg_name = "gfx3d_clk_src",
		.ops = &clk_ops_rcg,
		.vdd_class = &vdd_gfx,
		CLK_INIT(gfx3d_clk_src.c),
	},
};
@@ -2736,6 +2735,7 @@ static struct branch_clk gcc_oxili_gfx3d_clk = {
	.c = {
		.dbg_name = "gcc_oxili_gfx3d_clk",
		.parent = &gfx3d_clk_src.c,
		.vdd_class = &vdd_gfx,
		.ops = &clk_ops_branch,
		CLK_INIT(gcc_oxili_gfx3d_clk.c),
	},
@@ -3998,7 +3998,7 @@ static int msm_gcc_gfx_probe(struct platform_device *pdev)
		return PTR_ERR(vdd_gfx.regulator[0]);
	}

	ret = of_get_fmax_vdd_class(pdev, &gfx3d_clk_src.c,
	ret = of_get_fmax_vdd_class(pdev, &gcc_oxili_gfx3d_clk.c,
					"qcom,gfxfreq-corner");
	if (ret) {
		dev_err(&pdev->dev, "Unable to get gfx freq-corner mapping info\n");