diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-10-10 17:28:52 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-10-20 18:26:41 -0400 |
commit | c4f9c4c2b3f1831e932e04db992cf6fe92c2a95a (patch) | |
tree | 1c37fdd843f64122b121833c565735b69ebe4fb9 /drivers/gpu | |
parent | 8d31528703ceda6f631e39953130abe9b3ca52b2 (diff) |
drm/i915: always set FDI composite sync bit
It's needed for 3 pipe support as well as just regular functionality
(e.g. DisplayPort).
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Tested-by: Adam Jackson <ajax@redhat.com>
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 6f6eed169630..d8bf9cf348ec 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -3189,6 +3189,7 @@ | |||
3189 | #define FDI_LINK_TRAIN_NONE_IVB (3<<8) | 3189 | #define FDI_LINK_TRAIN_NONE_IVB (3<<8) |
3190 | 3190 | ||
3191 | /* both Tx and Rx */ | 3191 | /* both Tx and Rx */ |
3192 | #define FDI_COMPOSITE_SYNC (1<<11) | ||
3192 | #define FDI_LINK_TRAIN_AUTO (1<<10) | 3193 | #define FDI_LINK_TRAIN_AUTO (1<<10) |
3193 | #define FDI_SCRAMBLING_ENABLE (0<<7) | 3194 | #define FDI_SCRAMBLING_ENABLE (0<<7) |
3194 | #define FDI_SCRAMBLING_DISABLE (1<<7) | 3195 | #define FDI_SCRAMBLING_DISABLE (1<<7) |
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 186cde29994d..2e28c687010c 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -2601,6 +2601,7 @@ static void ivb_manual_fdi_link_train(struct drm_crtc *crtc) | |||
2601 | temp |= FDI_LINK_TRAIN_PATTERN_1_IVB; | 2601 | temp |= FDI_LINK_TRAIN_PATTERN_1_IVB; |
2602 | temp &= ~FDI_LINK_TRAIN_VOL_EMP_MASK; | 2602 | temp &= ~FDI_LINK_TRAIN_VOL_EMP_MASK; |
2603 | temp |= FDI_LINK_TRAIN_400MV_0DB_SNB_B; | 2603 | temp |= FDI_LINK_TRAIN_400MV_0DB_SNB_B; |
2604 | temp |= FDI_COMPOSITE_SYNC; | ||
2604 | I915_WRITE(reg, temp | FDI_TX_ENABLE); | 2605 | I915_WRITE(reg, temp | FDI_TX_ENABLE); |
2605 | 2606 | ||
2606 | reg = FDI_RX_CTL(pipe); | 2607 | reg = FDI_RX_CTL(pipe); |
@@ -2608,6 +2609,7 @@ static void ivb_manual_fdi_link_train(struct drm_crtc *crtc) | |||
2608 | temp &= ~FDI_LINK_TRAIN_AUTO; | 2609 | temp &= ~FDI_LINK_TRAIN_AUTO; |
2609 | temp &= ~FDI_LINK_TRAIN_PATTERN_MASK_CPT; | 2610 | temp &= ~FDI_LINK_TRAIN_PATTERN_MASK_CPT; |
2610 | temp |= FDI_LINK_TRAIN_PATTERN_1_CPT; | 2611 | temp |= FDI_LINK_TRAIN_PATTERN_1_CPT; |
2612 | temp |= FDI_COMPOSITE_SYNC; | ||
2611 | I915_WRITE(reg, temp | FDI_RX_ENABLE); | 2613 | I915_WRITE(reg, temp | FDI_RX_ENABLE); |
2612 | 2614 | ||
2613 | POSTING_READ(reg); | 2615 | POSTING_READ(reg); |