summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorTakashi Iwai2012-03-20 13:07:06 +0100
committerDaniel Vetter2012-03-22 23:23:45 +0100
commit121d527a323f3fde313a8f522060ba859ee405b3 (patch)
tree740533a418e5ba0473d812ae53d9f7442b22b92d /drivers/gpu/drm/i915/intel_display.c
parentdrm/i915: Check VBIOS value for determining LVDS dual channel mode, too (diff)
downloadkernel-qcow2-linux-121d527a323f3fde313a8f522060ba859ee405b3.tar.gz
kernel-qcow2-linux-121d527a323f3fde313a8f522060ba859ee405b3.tar.xz
kernel-qcow2-linux-121d527a323f3fde313a8f522060ba859ee405b3.zip
drm/i915: Add lvds_channel module option
Add a new module optoin lvds_channel to specify the LVDS channel mode explicitly instead of probing the LVDS register value set by BIOS. This will be helpful when VBT is broken or incompatible with the current code. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=42842 Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index a76ac2eb9938..a0e31660381c 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -365,6 +365,10 @@ static bool is_dual_link_lvds(struct drm_i915_private *dev_priv,
{
unsigned int val;
+ /* use the module option value if specified */
+ if (i915_lvds_channel_mode > 0)
+ return i915_lvds_channel_mode == 2;
+
if (dev_priv->lvds_val)
val = dev_priv->lvds_val;
else {