Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345066
b: refs/heads/master
c: 39ec748
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Dave Airlie committed Nov 7, 2012
1 parent 97cd047 commit 1ed7fe1
Show file tree
Hide file tree
Showing 5 changed files with 366 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94baf0e27181c6a2f82cdbc5b960b197570e17de
refs/heads/master: 39ec748f717460290424208d23879eadbf5ffb1c
6 changes: 6 additions & 0 deletions trunk/drivers/gpu/drm/gma500/oaktrail.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,9 @@ extern void oaktrail_hdmi_i2c_exit(struct pci_dev *dev);
extern void oaktrail_hdmi_save(struct drm_device *dev);
extern void oaktrail_hdmi_restore(struct drm_device *dev);
extern void oaktrail_hdmi_init(struct drm_device *dev, struct psb_intel_mode_device *mode_dev);
extern int oaktrail_crtc_hdmi_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode, int x, int y,
struct drm_framebuffer *old_fb);
extern void oaktrail_crtc_hdmi_dpms(struct drm_crtc *crtc, int mode);


8 changes: 8 additions & 0 deletions trunk/drivers/gpu/drm/gma500/oaktrail_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ static void oaktrail_crtc_dpms(struct drm_crtc *crtc, int mode)
const struct psb_offset *map = &dev_priv->regmap[pipe];
u32 temp;

if (pipe == 1) {
oaktrail_crtc_hdmi_dpms(crtc, mode);
return;
}

if (!gma_power_begin(dev, true))
return;

Expand Down Expand Up @@ -302,6 +307,9 @@ static int oaktrail_crtc_mode_set(struct drm_crtc *crtc,
uint64_t scalingType = DRM_MODE_SCALE_FULLSCREEN;
struct drm_connector *connector;

if (pipe == 1)
return oaktrail_crtc_hdmi_mode_set(crtc, mode, adjusted_mode, x, y, old_fb);

if (!gma_power_begin(dev, true))
return 0;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/gma500/oaktrail_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ const struct psb_ops oaktrail_chip_ops = {
.accel_2d = 1,
.pipes = 2,
.crtcs = 2,
.hdmi_mask = (1 << 0),
.hdmi_mask = (1 << 1),
.lvds_mask = (1 << 0),
.cursor_needs_phys = 0,
.sgx_offset = MRST_SGX_OFFSET,
Expand Down
Loading

0 comments on commit 1ed7fe1

Please sign in to comment.