Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307056
b: refs/heads/master
c: 618563e
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter committed Apr 9, 2012
1 parent 8e99811 commit be44980
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc0daf488fc4a255733ad19fe0de995f4a4d745f
refs/heads/master: 618563e3945b9d0864154bab3c607865b557cecc
22 changes: 22 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* Eric Anholt <eric@anholt.net>
*/

#include <linux/dmi.h>
#include <linux/cpufreq.h>
#include <linux/module.h>
#include <linux/input.h>
Expand Down Expand Up @@ -418,6 +419,24 @@ static void vlv_init_dpio(struct drm_device *dev)
POSTING_READ(DPIO_CTL);
}

static int intel_dual_link_lvds_callback(const struct dmi_system_id *id)
{
DRM_INFO("Forcing lvds to dual link mode on %s\n", id->ident);
return 1;
}

static const struct dmi_system_id intel_dual_link_lvds[] = {
{
.callback = intel_dual_link_lvds_callback,
.ident = "Apple MacBook Pro (Core i5/i7 Series)",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro8,2"),
},
},
{ } /* terminating entry */
};

static bool is_dual_link_lvds(struct drm_i915_private *dev_priv,
unsigned int reg)
{
Expand All @@ -427,6 +446,9 @@ static bool is_dual_link_lvds(struct drm_i915_private *dev_priv,
if (i915_lvds_channel_mode > 0)
return i915_lvds_channel_mode == 2;

if (dmi_check_system(intel_dual_link_lvds))
return true;

if (dev_priv->lvds_val)
val = dev_priv->lvds_val;
else {
Expand Down

0 comments on commit be44980

Please sign in to comment.