[Intel-gfx] [PATCH] drm/i915/dsi: Add PORT_TX_DW7 programming to DSI vswing sequence
clinton.a.taylor at intel.com
clinton.a.taylor at intel.com
Fri Dec 14 18:06:42 UTC 2018
From: Clint Taylor <clinton.a.taylor at intel.com>
Program PORT_TX_DW7 to the value specified in the DDI Buffer section of the
BSPEC.
BSEPC: 21257
Cc: Madhav Chauhan <madhav.chauhan at intel.com>
Cc: Jani Nikula <jani.nikula at intel.com>
Cc: Imre Deak <imre.deak at intel.com>
Signed-off-by: Clint Taylor <clinton.a.taylor at intel.com>
---
drivers/gpu/drm/i915/icl_dsi.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/gpu/drm/i915/icl_dsi.c b/drivers/gpu/drm/i915/icl_dsi.c
index 4dd793b..f57aa0d 100644
--- a/drivers/gpu/drm/i915/icl_dsi.c
+++ b/drivers/gpu/drm/i915/icl_dsi.c
@@ -236,6 +236,16 @@ static void dsi_program_swing_and_deemphasis(struct intel_encoder *encoder)
tmp |= RCOMP_SCALAR(0x98);
I915_WRITE(ICL_PORT_TX_DW2_AUX(port), tmp);
+ tmp = I915_READ(ICL_PORT_TX_DW7_LN0(port));
+ tmp &= ~(N_SCALAR_MASK);
+ tmp |= N_SCALAR(0x7f);
+ I915_WRITE(ICL_PORT_TX_DW7_GRP(port), tmp);
+
+ tmp = I915_READ(ICL_PORT_TX_DW7_AUX(port));
+ tmp &= ~(N_SCALAR_MASK);
+ tmp |= N_SCALAR(0x7f);
+ I915_WRITE(ICL_PORT_TX_DW7_AUX(port), tmp);
+
tmp = I915_READ(ICL_PORT_TX_DW4_AUX(port));
tmp &= ~(POST_CURSOR_1_MASK | POST_CURSOR_2_MASK |
CURSOR_COEFF_MASK);
--
1.9.1
More information about the Intel-gfx
mailing list