gma500: Oaktrail fixes
Subsystems (3)
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.
Signed-off-by Alan Cox <[email protected]>
---
drivers/gpu/drm/gma500/oaktrail_lvds.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/gma500/oaktrail_lvds.c +2 -3
@@ -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;
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.
Signed-off-by Alan Cox <[email protected]>
---
drivers/gpu/drm/gma500/oaktrail_lvds.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/gma500/oaktrail_lvds.c +2 -0
@@ -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: