* [PATCH 1/2] gma500: Oaktrail fixes
@ 2011-12-20 15:58 Alan Cox
2011-12-20 15:58 ` [PATCH 2/2] oaktrail: panel display quality fix Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Alan Cox @ 2011-12-20 15:58 UTC (permalink / raw)
To: airlied, linux-kernel
From: Alan Cox <alan@linux.intel.com>
The move to connectors breaks Oaktrail again if we have memory poisoning
enabled. Fix this.
Signed-off-by: Alan Cox <alan@linux.intel.com>
---
drivers/gpu/drm/gma500/oaktrail_lvds.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/gma500/oaktrail_lvds.c b/drivers/gpu/drm/gma500/oaktrail_lvds.c
index 965d47c..7dc892a 100644
--- a/drivers/gpu/drm/gma500/oaktrail_lvds.c
+++ b/drivers/gpu/drm/gma500/oaktrail_lvds.c
@@ -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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] oaktrail: panel display quality fix
2011-12-20 15:58 [PATCH 1/2] gma500: Oaktrail fixes Alan Cox
@ 2011-12-20 15:58 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2011-12-20 15:58 UTC (permalink / raw)
To: airlied, linux-kernel
From: Alan Cox <alan@linux.intel.com>
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 <alan@linux.intel.com>
---
drivers/gpu/drm/gma500/oaktrail_lvds.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/gma500/oaktrail_lvds.c b/drivers/gpu/drm/gma500/oaktrail_lvds.c
index 7dc892a..238bbe1 100644
--- a/drivers/gpu/drm/gma500/oaktrail_lvds.c
+++ b/drivers/gpu/drm/gma500/oaktrail_lvds.c
@@ -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:
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-20 15:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-20 15:58 [PATCH 1/2] gma500: Oaktrail fixes Alan Cox
2011-12-20 15:58 ` [PATCH 2/2] oaktrail: panel display quality fix Alan Cox
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.