summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVandana Kannan <vandana.kannan@intel.com>2014-11-18 15:45:29 +0530
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-04-16 11:42:40 +0200
commit9314726b9f7329e223dd279819b42842ab7d413f (patch)
treef9eca76c9ed44e6b471b4288c510ad7186cb6b22 /drivers
parent96fb9f9b154a8dbfe1f74c384cd82f73539fda93 (diff)
downloadlwn-9314726b9f7329e223dd279819b42842ab7d413f.tar.gz
lwn-9314726b9f7329e223dd279819b42842ab7d413f.zip
drm/i915/bxt: Update max level of vswing
Broxton supports 3 voltage swing levels on all DP ports. Max level of pre-emphasis will be taken care with the existing code. v2: Patch rebased v3: (imre) - keep existing behavior for other platforms - clarify commit message Signed-off-by: Vandana Kannan <vandana.kannan@intel.com> (v2) Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 2e27b5215a36..aa13608d27ff 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -2887,7 +2887,9 @@ intel_dp_voltage_max(struct intel_dp *intel_dp)
struct drm_i915_private *dev_priv = dev->dev_private;
enum port port = dp_to_dig_port(intel_dp)->port;
- if (INTEL_INFO(dev)->gen >= 9) {
+ if (IS_BROXTON(dev))
+ return DP_TRAIN_VOLTAGE_SWING_LEVEL_3;
+ else if (INTEL_INFO(dev)->gen >= 9) {
if (dev_priv->vbt.edp_low_vswing && port == PORT_A)
return DP_TRAIN_VOLTAGE_SWING_LEVEL_3;
return DP_TRAIN_VOLTAGE_SWING_LEVEL_2;