Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345258
b: refs/heads/master
c: 270b304
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter committed Nov 11, 2012
1 parent 8580a6c commit 97d5917
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cfc1a062063bb5b8e3fa2b007043dfc9e27b5a40
refs/heads/master: 270b30420c5e0d5f779aa76882367f9265c5aa7d
18 changes: 7 additions & 11 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -8269,16 +8269,6 @@ static void intel_setup_outputs(struct drm_device *dev)
I915_WRITE(PFIT_CONTROL, 0);
}

if (HAS_PCH_SPLIT(dev)) {
dpd_is_edp = intel_dpd_is_edp(dev);

if (has_edp_a(dev))
intel_dp_init(dev, DP_A, PORT_A);

if (dpd_is_edp && (I915_READ(PCH_DP_D) & DP_DETECTED))
intel_dp_init(dev, PCH_DP_D, PORT_D);
}

intel_crt_init(dev);

if (IS_HASWELL(dev)) {
Expand All @@ -8302,6 +8292,10 @@ static void intel_setup_outputs(struct drm_device *dev)
intel_ddi_init(dev, PORT_D);
} else if (HAS_PCH_SPLIT(dev)) {
int found;
dpd_is_edp = intel_dpd_is_edp(dev);

if (has_edp_a(dev))
intel_dp_init(dev, DP_A, PORT_A);

if (I915_READ(HDMIB) & PORT_DETECTED) {
/* PCH SDVOB multiplex with HDMIB */
Expand All @@ -8321,7 +8315,7 @@ static void intel_setup_outputs(struct drm_device *dev)
if (I915_READ(PCH_DP_C) & DP_DETECTED)
intel_dp_init(dev, PCH_DP_C, PORT_C);

if (!dpd_is_edp && (I915_READ(PCH_DP_D) & DP_DETECTED))
if (I915_READ(PCH_DP_D) & DP_DETECTED)
intel_dp_init(dev, PCH_DP_D, PORT_D);
} else if (IS_VALLEYVIEW(dev)) {
int found;
Expand Down Expand Up @@ -8397,6 +8391,8 @@ static void intel_setup_outputs(struct drm_device *dev)

if (HAS_PCH_IBX(dev) || HAS_PCH_CPT(dev))
ironlake_init_pch_refclk(dev);

drm_helper_move_panel_connectors_to_head(dev);
}

static void intel_user_framebuffer_destroy(struct drm_framebuffer *fb)
Expand Down

0 comments on commit 97d5917

Please sign in to comment.