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

Commit bacd9858 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 2f26850f 75c1104b
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 */