drm/i915/display/ehl: Limit eDP to HBR2
Subsystems (3)
PATCH 1/1 drm/i915/display/ehl: Limit eDP to HBR2
Recent update in documentation defeatured eDP HBR3 for EHL and JSL.
BSpec: 32247
Cc Matt Roper <[email protected]>
Cc Vidya Srinivas <[email protected]>
Signed-off-by José Roberto de Souza <[email protected]>
--- drivers/gpu/drm/i915/display/intel_dp.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_dp.c +10 -1
@@ -277,13 +277,20 @@ static int icl_max_source_rate(struct intel_dp *intel_dp)enum phy phy =intel_port_to_phy (dev_priv, dig_port->base.port);if (intel_phy_is_combo (dev_priv, phy) && - !IS_ELKHARTLAKE (dev_priv) && !intel_dp_is_edp (intel_dp))return 540000 ;return 810000 ; } +static int ehl_max_source_rate (struct intel_dp *intel_dp) +{ +if (intel_dp_is_edp (intel_dp)) +return 540000 ; + +return 810000 ; +} +static void intel_dp_set_source_rates (struct intel_dp *intel_dp) {
@@ -318,6 +325,8 @@ intel_dp_set_source_rates(struct intel_dp *intel_dp) size =ARRAY_SIZE (cnl_rates);if (IS_GEN (dev_priv,10 )) max_rate =cnl_max_source_rate (intel_dp); +else if (IS_ELKHARTLAKE (dev_priv)) + max_rate =ehl_max_source_rate (intel_dp);else max_rate =icl_max_source_rate (intel_dp); }else if (IS_GEN9_LP (dev_priv)) {
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx