Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205142
b: refs/heads/master
c: 2377b74
h: refs/heads/master
v: v3
  • Loading branch information
Jesse Barnes authored and Eric Anholt committed Aug 2, 2010
1 parent f01d161 commit f088d4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 3ca87e82831f040986f27aef44fc61c8ddf6ee79
refs/heads/master: 2377b741abec485449d145e5065dd2b7dd64226f
7 changes: 5 additions & 2 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ struct intel_limit {
#define IRONLAKE_DP_P1_MIN 1
#define IRONLAKE_DP_P1_MAX 2

/* FDI */
#define IRONLAKE_FDI_FREQ 2700000 /* in kHz for mode->clock */

static bool
intel_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc,
int target, int refclk, intel_clock_t *best_clock);
Expand Down Expand Up @@ -2421,8 +2424,8 @@ static bool intel_crtc_mode_fixup(struct drm_crtc *crtc,
struct drm_device *dev = crtc->dev;
if (HAS_PCH_SPLIT(dev)) {
/* FDI link clock is fixed at 2.7G */
if (mode->clock * 3 > 27000 * 4)
return MODE_CLOCK_HIGH;
if (mode->clock * 3 > IRONLAKE_FDI_FREQ * 4)
return false;
}

drm_mode_set_crtcinfo(adjusted_mode, 0);
Expand Down

0 comments on commit f088d4a

Please sign in to comment.