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

Commit e9628329 authored by Radhika Ranjan Soni's avatar Radhika Ranjan Soni
Browse files

msm: mdss: add MDP hw revision check for msm8939 panic/robust feature



Add MDP hw revision check to support panic/robust signalling
feature for msm8939. This feature enables MDP hardware to send
panic/robust signal to bimc based on fill level for all pipes
connected to realtime interfaces.

Change-Id: Idf8908eb6e4d2827d02f929161e43b58ca56757a
Signed-off-by: default avatarRadhika Ranjan Soni <rrsoni@codeaurora.org>
parent 81e5235b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -561,7 +561,10 @@ static inline int mdss_mdp_line_buffer_width(void)
static inline int mdss_mdp_panic_signal_supported(
	struct mdss_data_type *mdata, struct mdss_mdp_pipe *pipe)
{
	return (IS_MDSS_MAJOR_MINOR_SAME(mdata->mdp_rev, MDSS_MDP_HW_REV_105) &&
	return ((IS_MDSS_MAJOR_MINOR_SAME(mdata->mdp_rev,
					MDSS_MDP_HW_REV_105) ||
		IS_MDSS_MAJOR_MINOR_SAME(mdata->mdp_rev,
					MDSS_MDP_HW_REV_108)) &&
		pipe->mixer_left &&
		pipe->mixer_left->type == MDSS_MDP_MIXER_TYPE_INTF);
}