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

Commit bd40201d authored by Vishnuvardhan Prodduturi's avatar Vishnuvardhan Prodduturi
Browse files

msm: mdss: Enable mdp clocks before accessing panic control registers



Crashes are observed during bootup due to unclocked access of Panic
control registers. Take care of the same by enabling appropriate clocks.

Change-Id: Ic8df1f9c3c3928b9a3e9b21d63a5d9bba4f2152c
Signed-off-by: default avatarVishnuvardhan Prodduturi <vproddut@codeaurora.org>
parent 4c45f010
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -61,6 +61,7 @@ int mdss_mdp_pipe_panic_signal_ctrl(struct mdss_mdp_pipe *pipe, bool enable)
	if (!mdata->has_panic_ctrl)
	if (!mdata->has_panic_ctrl)
		goto end;
		goto end;


	mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_ON);
	panic_robust_ctrl = readl_relaxed(mdata->mdp_base +
	panic_robust_ctrl = readl_relaxed(mdata->mdp_base +
			MMSS_MDP_PANIC_ROBUST_CTRL);
			MMSS_MDP_PANIC_ROBUST_CTRL);
	if (enable)
	if (enable)
@@ -69,6 +70,7 @@ int mdss_mdp_pipe_panic_signal_ctrl(struct mdss_mdp_pipe *pipe, bool enable)
		panic_robust_ctrl &= ~BIT(pipe->panic_ctrl_ndx);
		panic_robust_ctrl &= ~BIT(pipe->panic_ctrl_ndx);
	writel_relaxed(panic_robust_ctrl,
	writel_relaxed(panic_robust_ctrl,
				mdata->mdp_base + MMSS_MDP_PANIC_ROBUST_CTRL);
				mdata->mdp_base + MMSS_MDP_PANIC_ROBUST_CTRL);
	mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF);


end:
end:
	return 0;
	return 0;