aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_panel.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-02-17 08:44:48 -0500
committerChris Wilson <chris@chris-wilson.co.uk>2011-02-22 10:56:06 -0500
commitfca874092597ef946b8f07031d8c31c58b212144 (patch)
tree38eb33c44f5be00a102a22b7dab177fae5e247fa /drivers/gpu/drm/i915/intel_panel.c
parentc87252266352c5201e2925740018f52578fa92bb (diff)
drm/i915: Add a module parameter to ignore lid status
Seems like we are forever to be cursed with buggy firmware, so allow the user to explicitly set the panel connection status. Of secondary utility for cases where I run laptops with the lid closed, but still want to configure the LVDS. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_panel.c')
-rw-r--r--drivers/gpu/drm/i915/intel_panel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
index 286995a9a84a..784660a3667b 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -287,6 +287,11 @@ intel_panel_detect(struct drm_device *dev)
287{ 287{
288 struct drm_i915_private *dev_priv = dev->dev_private; 288 struct drm_i915_private *dev_priv = dev->dev_private;
289 289
290 if (i915_panel_ignore_lid)
291 return i915_panel_ignore_lid > 0 ?
292 connector_status_connected :
293 connector_status_disconnected;
294
290 /* Assume that the BIOS does not lie through the OpRegion... */ 295 /* Assume that the BIOS does not lie through the OpRegion... */
291 if (dev_priv->opregion.lid_state) 296 if (dev_priv->opregion.lid_state)
292 return ioread32(dev_priv->opregion.lid_state) & 0x1 ? 297 return ioread32(dev_priv->opregion.lid_state) & 0x1 ?