[Intel-gfx] [PATCH 42/43] drm/i915: HACK: hard code existing mode clock to 137500

Chris Wilson chris at chris-wilson.co.uk
Fri May 25 14:33:21 CEST 2012


From: Jesse Barnes <jbarnes at virtuousgeek.org>

This is roughly 1920x1080 with reduced blanking.  Hack it for now until
we read out the real clock from HW or from the panel's native mode.
---
 drivers/gpu/drm/i915/intel_display.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index bbe7419..9a29604 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -5679,6 +5679,7 @@ struct drm_display_mode *intel_crtc_mode_get(struct drm_crtc *crtc)
 	mode->vtotal = ((vtot & 0xffff0000) >> 16) + 1;
 	mode->vsync_start = (vsync & 0xffff) + 1;
 	mode->vsync_end = ((vsync & 0xffff0000) >> 16) + 1;
+	mode->clock = 137500;
 	mode->flags = intel_crtc_mode_flags(crtc);
 
 	drm_mode_set_name(mode);
-- 
1.7.10




More information about the Intel-gfx mailing list