aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/oaktrail_crtc.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-11-06 08:49:23 -0500
committerDave Airlie <airlied@redhat.com>2012-11-06 19:59:32 -0500
commit39ec748f717460290424208d23879eadbf5ffb1c (patch)
treea7ce1906f6f50e30d75467c06af81ac6d72ada7b /drivers/gpu/drm/gma500/oaktrail_crtc.c
parent94baf0e27181c6a2f82cdbc5b960b197570e17de (diff)
gma600: Enable HDMI support
There are still some mysteries left, in particular how (and in fact if) the EDID is supposed to work on the HDMI port. However the basic stuff now works and I can plug my Q550 into an HDMI display and get the expected results. [v2: cleans up space/tab and other formatting as per Dave's request] Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/oaktrail_crtc.c')
-rw-r--r--drivers/gpu/drm/gma500/oaktrail_crtc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/gma500/oaktrail_crtc.c b/drivers/gpu/drm/gma500/oaktrail_crtc.c
index cdafd2acc72f..4ec2962f7635 100644
--- a/drivers/gpu/drm/gma500/oaktrail_crtc.c
+++ b/drivers/gpu/drm/gma500/oaktrail_crtc.c
@@ -168,6 +168,11 @@ static void oaktrail_crtc_dpms(struct drm_crtc *crtc, int mode)
168 const struct psb_offset *map = &dev_priv->regmap[pipe]; 168 const struct psb_offset *map = &dev_priv->regmap[pipe];
169 u32 temp; 169 u32 temp;
170 170
171 if (pipe == 1) {
172 oaktrail_crtc_hdmi_dpms(crtc, mode);
173 return;
174 }
175
171 if (!gma_power_begin(dev, true)) 176 if (!gma_power_begin(dev, true))
172 return; 177 return;
173 178
@@ -302,6 +307,9 @@ static int oaktrail_crtc_mode_set(struct drm_crtc *crtc,
302 uint64_t scalingType = DRM_MODE_SCALE_FULLSCREEN; 307 uint64_t scalingType = DRM_MODE_SCALE_FULLSCREEN;
303 struct drm_connector *connector; 308 struct drm_connector *connector;
304 309
310 if (pipe == 1)
311 return oaktrail_crtc_hdmi_mode_set(crtc, mode, adjusted_mode, x, y, old_fb);
312
305 if (!gma_power_begin(dev, true)) 313 if (!gma_power_begin(dev, true))
306 return 0; 314 return 0;
307 315