[Intel-gfx] [PATCH 2/3] drm/i915: 830M doesn't have an LVDS port
ville.syrjala at linux.intel.com
ville.syrjala at linux.intel.com
Fri Jan 10 13:06:46 CET 2014
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
There's no LVDS port on 830M so don't go reading the LVDS control
register.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
drivers/gpu/drm/i915/intel_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 9f8c5b5..e29d24f 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -7963,7 +7963,7 @@ static void i9xx_crtc_clock_get(struct intel_crtc *crtc,
else
i9xx_clock(refclk, &clock);
} else {
- u32 lvds = I915_READ(LVDS);
+ u32 lvds = IS_I830(dev) ? 0 : I915_READ(LVDS);
bool is_lvds = (pipe == 1) && (lvds & LVDS_PORT_EN);
if (is_lvds) {
--
1.8.3.2
More information about the Intel-gfx
mailing list