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

Commit 06383cda authored by Shashank Babu Chinta Venkata's avatar Shashank Babu Chinta Venkata Committed by Steve Cohen
Browse files

msm: clk: qcom: add clock handoff for vco to support continuous splash



Add clock handoff for 10nm pll driver to support continuous splash
on SDM845.

Change-Id: If52768311103698206991107f274bf48f5630fae
Signed-off-by: default avatarShashank Babu Chinta Venkata <sbchin@codeaurora.org>
Signed-off-by: default avatarChandan Uddaraju <chandanu@codeaurora.org>
parent fefb488c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -762,6 +762,10 @@ static int vco_10nm_prepare(struct clk_hw *hw)
		return -EINVAL;
	}

	/* Skip vco recalculation for continuous splash use case */
	if (pll->handoff_resources == true)
		return 0;

	rc = mdss_pll_resource_enable(pll, true);
	if (rc) {
		pr_err("failed to enable pll (%d) resource, rc=%d\n",
@@ -834,6 +838,9 @@ static unsigned long vco_10nm_recalc_rate(struct clk_hw *hw,
		return 0;
	}

	if (!dsi_pll_10nm_lock_status(pll))
		pll->handoff_resources = true;

	dec = MDSS_PLL_REG_R(pll->pll_base, PLL_DECIMAL_DIV_START_1);
	dec &= 0xFF;