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

Commit c606e855 authored by Jayant Shekhar's avatar Jayant Shekhar
Browse files

msm: mdss: Add mdss rotator OT settings for msm8940



Update rotator OT settings for msm8940. For 1080p 60fps
recommended OT is 8. As MDP rev is same for msm8940 and
msm8937, the setting is done based on AXI OT difference.

Change-Id: I8500110f542654d776be1633f87dc890b4139c50
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent 0579c67d
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -4444,7 +4444,8 @@ static void apply_dynamic_ot_limit(u32 *ot_lim,
	struct mdss_mdp_set_ot_params *params)
{
	struct mdss_data_type *mdata = mdss_mdp_get_mdata();
	u32 res;
	u32 res, read_vbif_ot;
	u32 rot_ot = 4;

	if (false == test_bit(MDSS_QOS_OTLIM, mdata->mdss_qos_map))
		return;
@@ -4461,12 +4462,19 @@ static void apply_dynamic_ot_limit(u32 *ot_lim,

	switch (mdata->mdp_rev) {
	case MDSS_MDP_HW_REV_114:
		/*
		 * MDP rev is same for msm8937 and msm8940, but rotator OT
		 * recommendations are different. Setting it based on AXI OT.
		 */
		read_vbif_ot = MDSS_VBIF_READ(mdata, MMSS_VBIF_OUT_RD_LIM_CONF0,
					false);
		rot_ot  = (read_vbif_ot == 0x10) ? 4 : 8;
	case MDSS_MDP_HW_REV_115:
	case MDSS_MDP_HW_REV_116:
		if ((res <= RES_1080p) && (params->frame_rate <= 30))
			*ot_lim = 2;
		else if (params->is_rot && params->is_yuv)
			*ot_lim = 4;
			*ot_lim = rot_ot;
		else
			*ot_lim = 6;
		break;
+1 −0
Original line number Diff line number Diff line
@@ -818,6 +818,7 @@ enum mdss_mdp_pingpong_index {
#define MMSS_VBIF_CLKON			0x4
#define MMSS_VBIF_RD_LIM_CONF			0x0B0
#define MMSS_VBIF_WR_LIM_CONF			0x0C0
#define MMSS_VBIF_OUT_RD_LIM_CONF0		0x0D0

#define MMSS_VBIF_XIN_HALT_CTRL0	0x200
#define MMSS_VBIF_XIN_HALT_CTRL1	0x204