[Intel-gfx] [PATCH 12/12] drm/i915/icl: Transcoder timings for command mode
Madhav Chauhan
madhav.chauhan at intel.com
Wed Aug 8 12:15:59 UTC 2018
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 at intel.com>
---
drivers/gpu/drm/i915/icl_dsi.c | 6 ++++++
1 file changed, 6 insertions(+)
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");
--
2.7.4
More information about the Intel-gfx
mailing list