Jelajahi Sumber

disp: msm: dsi: update default physical panel width and height

Change updates connector edid node with proper panel physical
dimensions based on panel device tree file.

Change-Id: I36db9c3e5b5aee926a0d029ae742166fc8c7591c
Signed-off-by: Vara Reddy <[email protected]>
Vara Reddy 6 tahun lalu
induk
melakukan
4920154558
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      msm/dsi/dsi_drm.c

+ 4 - 1
msm/dsi/dsi_drm.c

@@ -802,7 +802,7 @@ int dsi_connector_get_modes(struct drm_connector *connector, void *data,
 	const u8 edid_buf[EDID_LENGTH] = {
 		0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x44, 0x6D,
 		0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1B, 0x10, 0x01, 0x03,
-		0x80, 0x50, 0x2D, 0x78, 0x0A, 0x0D, 0xC9, 0xA0, 0x57, 0x47,
+		0x80, 0x00, 0x00, 0x78, 0x0A, 0x0D, 0xC9, 0xA0, 0x57, 0x47,
 		0x98, 0x27, 0x12, 0x48, 0x4C, 0x00, 0x00, 0x00, 0x01, 0x01,
 		0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
 		0x01, 0x01, 0x01, 0x01,
@@ -852,6 +852,9 @@ int dsi_connector_get_modes(struct drm_connector *connector, void *data,
 		goto end;
 	}
 
+	edid.width_cm = (connector->display_info.width_mm) / 10;
+	edid.height_cm = (connector->display_info.height_mm) / 10;
+
 	dsi_drm_update_dtd(&edid, modes, count);
 	dsi_drm_update_checksum(&edid);
 	rc =  drm_connector_update_edid_property(connector, &edid);