Skip to contentSkip to conversation

gma500: Oaktrail fixes

PATCH New Alan Cox 1 participant 2 messages Dec 20, 2011

Subsystems (3)
lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/2 gma500: Oaktrail fixes

From: Alan Cox <[email protected]>

The move to connectors breaks Oaktrail again if we have memory poisoning enabled. Fix this.

---

 drivers/gpu/drm/gma500/oaktrail_lvds.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/gma500/oaktrail_lvds.c +2 -3
index 965d47c..7dc892a 100644
@@ -329,8 +329,7 @@ void oaktrail_lvds_init(struct drm_device *dev,
 	struct psb_intel_connector *psb_intel_connector;
 	struct drm_connector *connector;
 	struct drm_encoder *encoder;
-	struct drm_psb_private *dev_priv =
-				(struct drm_psb_private *) dev->dev_private;
+	struct drm_psb_private *dev_priv = dev->dev_private;
 	struct edid *edid;
 	int ret = 0;
 	struct i2c_adapter *i2c_adap;
@@ -340,7 +339,7 @@ void oaktrail_lvds_init(struct drm_device *dev,
 	if (!psb_intel_encoder)
 		return;
 
-	psb_intel_connector = kzalloc(sizeof(struct psb_intel_encoder), GFP_KERNEL);
+	psb_intel_connector = kzalloc(sizeof(struct psb_intel_connector), GFP_KERNEL);
 	if (!psb_intel_connector)
 		goto failed_connector;
 
author
#1 lore raw

PATCH 2/2 oaktrail: panel display quality fix

From: Alan Cox <[email protected]>

The GCT setup was used on Moorestown. The Oaktrail version uses a normal PC interface. That means we must also honour the dither info from the BIOS data.

---

 drivers/gpu/drm/gma500/oaktrail_lvds.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/gma500/oaktrail_lvds.c +2 -0
index 7dc892a..238bbe1 100644
@@ -375,6 +375,8 @@ void oaktrail_lvds_init(struct drm_device *dev,
 	if (dev_priv->vbt_data.size != 0x00)
 		mode_dev->panel_wants_dither = (dev_priv->gct_data.
 			Panel_Port_Control & MRST_PANEL_8TO6_DITHER_ENABLE);
+        if (dev_priv->lvds_dither)
+                mode_dev->panel_wants_dither = 1;
 
 	/*
 	 * LVDS discovery: