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

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

drm/msm/shd: add display-type support in shared display



Add display-type support in shared display to support shared
display as primary display.

Change-Id: I2e64935b064344ce9e567b0ce0a6981784dbc071
Signed-off-by: default avatarXiaowen Wu <wxiaowen@codeaurora.org>
parent 0adca3fb
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -687,6 +687,9 @@ static int shd_conn_set_info_blob(struct drm_connector *connector,
	sde_kms_info_add_keyint(info, "max_blendstages",
				shd_display->stage_range.size);

	sde_kms_info_add_keystr(info, "display type",
				shd_display->display_type);

	return 0;
}

@@ -1120,6 +1123,11 @@ static int shd_parse_display(struct shd_display *display)
		display->stage_range.start,
		display->stage_range.size);

	display->display_type = of_get_property(of_node,
		"qcom,display-type", NULL);
	if (!display->display_type)
		display->display_type = "unknown";

error:
	return rc;
}
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ struct shd_display_base {
struct shd_display {
	struct drm_device *drm_dev;
	const char *name;
	const char *display_type;

	struct shd_display_base *base;
	struct drm_bridge *bridge;