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

Commit 1e816eb0 authored by raghavendra ambadas's avatar raghavendra ambadas
Browse files

clk: qcom: mdss: fix blank / unblank for DSI 28nm pll



During unblank write the cached vreg config values of pll.
For splash enabled vreg is configured in Direct mode,
which needs to be configured back to In-Direct mode
during un-blank.

Change-Id: I739a8fe0b3d643bdf25b58fa2c17dadd19f6bdb7
Signed-off-by: default avatarRaghavendra Ambadas <rambad@codeaurora.org>
parent a5eb56f5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -590,6 +590,7 @@ unsigned long vco_28nm_recalc_rate(struct clk_hw *hw,

	if (dsi_pll_lock_status(rsc)) {
		rsc->handoff_resources = true;
		rsc->cont_splash_enabled = true;
		rsc->pll_on = true;
		vco_rate = vco_get_rate(vco);
	} else {
@@ -629,6 +630,10 @@ int vco_28nm_prepare(struct clk_hw *hw)
		MDSS_PLL_REG_W(rsc->pll_base,
				DSI_PHY_PLL_UNIPHY_PLL_VREG_CFG,
				rsc->cached_vreg_cfg);
	} else if (!rsc->handoff_resources && rsc->cont_splash_enabled) {
		MDSS_PLL_REG_W(rsc->pll_base,
			DSI_PHY_PLL_UNIPHY_PLL_VREG_CFG,
			rsc->cached_vreg_cfg);
	}

	rc = dsi_pll_enable(vco);
+1 −0
Original line number Diff line number Diff line
@@ -146,6 +146,7 @@ struct mdss_pll_resources {
	 * feature is disabled.
	 */
	bool		handoff_resources;
	bool		cont_splash_enabled;

	/*
	 * caching the pll trim codes in the case of dynamic refresh