[Intel-gfx] [RFC 06/10] drm/i915/config: Add init-time configuration of eDP PPS delays.

Bob Paauwe bob.j.paauwe at intel.com
Mon Apr 13 13:51:07 PDT 2015


Allow the configuration file to overide the various panel power
sequence delay values.

Signed-off-by: Bob Paauwe <bob.j.paauwe at intel.com>
---
 drivers/gpu/drm/i915/intel_dp.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index b05ff6d..7defb3a 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -5565,6 +5565,20 @@ intel_dp_init_connector(struct intel_digital_port *intel_dig_port,
 		else
 			intel_dp_init_panel_power_sequencer(dev, intel_dp);
 		pps_unlock(intel_dp);
+
+		/* Check for config overides for PPS delays */
+#define CONFIG_PANEL_POWER_DELAY(delay_name)  \
+	intel_config_get_integer(dev_priv, CFG_CONNECTOR, \
+				 intel_dp->attached_connector->base.name, \
+				 #delay_name, \
+				 (uint32_t *)&intel_dp->pps_delays.delay_name)
+
+		CONFIG_PANEL_POWER_DELAY(t1_t3);
+		CONFIG_PANEL_POWER_DELAY(t8);
+		CONFIG_PANEL_POWER_DELAY(t9);
+		CONFIG_PANEL_POWER_DELAY(t10);
+		CONFIG_PANEL_POWER_DELAY(t11_t12);
+#undef CONFIG_PANEL_POWER_DELAY
 	}
 
 	intel_dp_aux_init(intel_dp, intel_connector);
-- 
2.1.0



More information about the Intel-gfx mailing list