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

Commit 39f332e0 authored by Xiaowen Wu's avatar Xiaowen Wu Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: Add crtc num preference option in dtsi



With the help of RM, the number of crtc is not tied to hardware.
Add crtc num preference option to allow user choose the best
number of crtcs.

Change-Id: I98f88961dedd46a2c8f59901ee1bfb4c4b1797fe
Signed-off-by: default avatarXiaowen Wu <wxiaowen@codeaurora.org>
parent e80972da
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1682,6 +1682,11 @@ static int _sde_kms_drm_obj_init(struct sde_kms *sde_kms)
	if (!_sde_kms_get_displays(sde_kms))
		(void)_sde_kms_setup_displays(dev, priv, sde_kms);

	/* Follow user setting if preferred crtc number is set */
	if (!of_property_read_u32(dev->dev->of_node,
			"qcom,sde-crtc-num-pref", &max_crtc_count))
		max_crtc_count = min(max_crtc_count, MAX_CRTCS);
	else
		max_crtc_count = min(catalog->mixer_count, priv->num_encoders);

	/* Create the planes */