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

Commit 2f5ce443 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/dsi-staging: add device tree parsing code for ulps feature" into msm-4.9

parents dd96abd2 c4a90030
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -1512,6 +1512,17 @@ static int dsi_panel_parse_reset_sequence(struct dsi_panel *panel,
	return rc;
}

static int dsi_panel_parse_features(struct dsi_panel *panel,
				     struct device_node *of_node)
{
	panel->ulps_enabled =
		of_property_read_bool(of_node, "qcom,ulps-enabled");

	pr_debug("ulps_enabled:%d\n", panel->ulps_enabled);

	return 0;
}

static int dsi_panel_parse_jitter_config(struct dsi_panel *panel,
				     struct device_node *of_node)
{
@@ -2117,6 +2128,10 @@ struct dsi_panel *dsi_panel_get(struct device *parent,
	if (rc)
		pr_err("failed to parse panel jitter config, rc=%d\n", rc);

	rc = dsi_panel_parse_features(panel, of_node);
	if (rc)
		pr_err("failed to parse panel features, rc=%d\n", rc);

	rc = dsi_panel_parse_hdr_config(panel, of_node);
	if (rc)
		pr_err("failed to parse hdr config, rc=%d\n", rc);