diff options
author | Sonika Jindal <sonika.jindal@intel.com> | 2014-08-10 23:36:39 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-08-11 05:27:33 -0400 |
commit | 3bb11b536c1037143765b4efc8056600438df7f6 (patch) | |
tree | 57a8aa723a33dc0cbcc1213c6a925745d96c64e0 /drivers/gpu/drm/i915/intel_display.c | |
parent | 22c59960d9fe72f3fbd28de69cc43c5522dd5fe6 (diff) |
drm/i915: Continuation of future readiness series
Removing the check for HAS_PCH_SPLIT, it looks redundant here. Anyways all the
platforms are checked separately.
v2: Reordering as per the gen (Ville)
Signed-off-by: Sonika Jindal <sonika.jindal@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index f306c91b74a5..0746590ed4e3 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -12354,29 +12354,27 @@ static void intel_init_display(struct drm_device *dev) | |||
12354 | dev_priv->display.get_display_clock_speed = | 12354 | dev_priv->display.get_display_clock_speed = |
12355 | i830_get_display_clock_speed; | 12355 | i830_get_display_clock_speed; |
12356 | 12356 | ||
12357 | if (HAS_PCH_SPLIT(dev)) { | 12357 | if (IS_G4X(dev)) { |
12358 | if (IS_GEN5(dev)) { | ||
12359 | dev_priv->display.fdi_link_train = ironlake_fdi_link_train; | ||
12360 | dev_priv->display.write_eld = ironlake_write_eld; | ||
12361 | } else if (IS_GEN6(dev)) { | ||
12362 | dev_priv->display.fdi_link_train = gen6_fdi_link_train; | ||
12363 | dev_priv->display.write_eld = ironlake_write_eld; | ||
12364 | dev_priv->display.modeset_global_resources = | ||
12365 | snb_modeset_global_resources; | ||
12366 | } else if (IS_IVYBRIDGE(dev)) { | ||
12367 | /* FIXME: detect B0+ stepping and use auto training */ | ||
12368 | dev_priv->display.fdi_link_train = ivb_manual_fdi_link_train; | ||
12369 | dev_priv->display.write_eld = ironlake_write_eld; | ||
12370 | dev_priv->display.modeset_global_resources = | ||
12371 | ivb_modeset_global_resources; | ||
12372 | } else if (IS_HASWELL(dev) || IS_GEN8(dev)) { | ||
12373 | dev_priv->display.fdi_link_train = hsw_fdi_link_train; | ||
12374 | dev_priv->display.write_eld = haswell_write_eld; | ||
12375 | dev_priv->display.modeset_global_resources = | ||
12376 | haswell_modeset_global_resources; | ||
12377 | } | ||
12378 | } else if (IS_G4X(dev)) { | ||
12379 | dev_priv->display.write_eld = g4x_write_eld; | 12358 | dev_priv->display.write_eld = g4x_write_eld; |
12359 | } else if (IS_GEN5(dev)) { | ||
12360 | dev_priv->display.fdi_link_train = ironlake_fdi_link_train; | ||
12361 | dev_priv->display.write_eld = ironlake_write_eld; | ||
12362 | } else if (IS_GEN6(dev)) { | ||
12363 | dev_priv->display.fdi_link_train = gen6_fdi_link_train; | ||
12364 | dev_priv->display.write_eld = ironlake_write_eld; | ||
12365 | dev_priv->display.modeset_global_resources = | ||
12366 | snb_modeset_global_resources; | ||
12367 | } else if (IS_IVYBRIDGE(dev)) { | ||
12368 | /* FIXME: detect B0+ stepping and use auto training */ | ||
12369 | dev_priv->display.fdi_link_train = ivb_manual_fdi_link_train; | ||
12370 | dev_priv->display.write_eld = ironlake_write_eld; | ||
12371 | dev_priv->display.modeset_global_resources = | ||
12372 | ivb_modeset_global_resources; | ||
12373 | } else if (IS_HASWELL(dev) || IS_GEN8(dev)) { | ||
12374 | dev_priv->display.fdi_link_train = hsw_fdi_link_train; | ||
12375 | dev_priv->display.write_eld = haswell_write_eld; | ||
12376 | dev_priv->display.modeset_global_resources = | ||
12377 | haswell_modeset_global_resources; | ||
12380 | } else if (IS_VALLEYVIEW(dev)) { | 12378 | } else if (IS_VALLEYVIEW(dev)) { |
12381 | dev_priv->display.modeset_global_resources = | 12379 | dev_priv->display.modeset_global_resources = |
12382 | valleyview_modeset_global_resources; | 12380 | valleyview_modeset_global_resources; |