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

Commit e43acca7 authored by Jayaprakash's avatar Jayaprakash
Browse files

disp: msm: sde: modify setting of split_display flag



For CTL_ACTIVE targets, slave ctl need not to be reserved
as both the interfaces can be driven with single ctl.
Add a necessary check before enabling the feature.

Change-Id: Id68d7dd4fc1cf9534466fd5bfa50c3f551d06ce4
Signed-off-by: default avatarJayaprakash <jmadiset@codeaurora.org>
parent dc7e1224
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1622,7 +1622,8 @@ static int sde_ctl_parse_dt(struct device_node *np,
				ctl_prop[HW_DISP].prop_name, i, &disp_pref);
		if (disp_pref && !strcmp(disp_pref, "primary"))
			set_bit(SDE_CTL_PRIMARY_PREF, &ctl->features);
		if (i < MAX_SPLIT_DISPLAY_CTL)
		if ((i < MAX_SPLIT_DISPLAY_CTL) &&
			!(IS_SDE_CTL_REV_100(sde_cfg->ctl_rev)))
			set_bit(SDE_CTL_SPLIT_DISPLAY, &ctl->features);
		if (i < MAX_PP_SPLIT_DISPLAY_CTL)
			set_bit(SDE_CTL_PINGPONG_SPLIT, &ctl->features);