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

Commit 5e60cba6 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 0b826764 39f332e0
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1683,6 +1683,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 */