diff mbox series

[12/12] drm/i915/icl: Transcoder timings for command mode

Message ID 1533730559-461-13-git-send-email-madhav.chauhan@intel.com (mailing list archive)
State New, archived
Headers show
Series ICL DSI CMD MODE | expand

Commit Message

Chauhan, Madhav Aug. 8, 2018, 12:15 p.m. UTC
This patch calculate HOTAL and VTOTAL value to be programmed
when DSI is operating in command mode as per BSPEC.

Signed-off-by: Madhav Chauhan <madhav.chauhan@intel.com>
---
 drivers/gpu/drm/i915/icl_dsi.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/icl_dsi.c b/drivers/gpu/drm/i915/icl_dsi.c
index af72b57..c93d02c 100644
--- a/drivers/gpu/drm/i915/icl_dsi.c
+++ b/drivers/gpu/drm/i915/icl_dsi.c
@@ -811,6 +811,12 @@  static void gen11_dsi_set_transcoder_timings(struct intel_encoder *encoder,
 		htotal /= 2;
 	}
 
+	if (intel_dsi->operation_mode == INTEL_DSI_COMMAND_MODE) {
+		htotal = hactive + 160;
+		//TODO: Calculate VTOTAL = ceiling( 400us / Line Time)
+		//Info missing from BSPEC
+	}
+
 	/* minimum hactive as per bspec: 256 pixels */
 	if (adjusted_mode->crtc_hdisplay < 256)
 		DRM_ERROR("hactive is less then 256 pixels\n");