aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/oaktrail_crtc.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2011-11-29 17:21:03 -0500
committerDave Airlie <airlied@redhat.com>2011-12-06 04:55:33 -0500
commita746092b679e6045dae91ceacb9abc6c83e38e0e (patch)
treef1cc7a4da7f183dd5b2dab52ba4fabe7cb420fd9 /drivers/gpu/drm/gma500/oaktrail_crtc.c
parent700e59f6924719c70ac63e004ccafc6f15074fb0 (diff)
gma500: do a pass over the FIXME tags
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.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/gpu/drm/gma500/oaktrail_crtc.c b/drivers/gpu/drm/gma500/oaktrail_crtc.c
index 7f9c791fbe78..8e15b5af1213 100644
--- a/drivers/gpu/drm/gma500/oaktrail_crtc.c
+++ b/drivers/gpu/drm/gma500/oaktrail_crtc.c
@@ -521,12 +521,11 @@ int oaktrail_pipe_set_base(struct drm_crtc *crtc,
521 int x, int y, struct drm_framebuffer *old_fb) 521 int x, int y, struct drm_framebuffer *old_fb)
522{ 522{
523 struct drm_device *dev = crtc->dev; 523 struct drm_device *dev = crtc->dev;
524 /* struct drm_i915_master_private *master_priv; */
525 struct psb_intel_crtc *psb_intel_crtc = to_psb_intel_crtc(crtc); 524 struct psb_intel_crtc *psb_intel_crtc = to_psb_intel_crtc(crtc);
526 struct psb_framebuffer *psbfb = to_psb_fb(crtc->fb); 525 struct psb_framebuffer *psbfb = to_psb_fb(crtc->fb);
527 int pipe = psb_intel_crtc->pipe; 526 int pipe = psb_intel_crtc->pipe;
528 unsigned long start, offset; 527 unsigned long start, offset;
529 /* FIXME: check if we need this surely MRST is pipe 0 only */ 528
530 int dspbase = (pipe == 0 ? DSPALINOFF : DSPBBASE); 529 int dspbase = (pipe == 0 ? DSPALINOFF : DSPBBASE);
531 int dspsurf = (pipe == 0 ? DSPASURF : DSPBSURF); 530 int dspsurf = (pipe == 0 ? DSPASURF : DSPBSURF);
532 int dspstride = (pipe == 0) ? DSPASTRIDE : DSPBSTRIDE; 531 int dspstride = (pipe == 0) ? DSPASTRIDE : DSPBSTRIDE;
@@ -572,15 +571,10 @@ int oaktrail_pipe_set_base(struct drm_crtc *crtc,
572 } 571 }
573 REG_WRITE(dspcntr_reg, dspcntr); 572 REG_WRITE(dspcntr_reg, dspcntr);
574 573
575 if (0 /* FIXMEAC - check what PSB needs */) { 574 REG_WRITE(dspbase, offset);
576 REG_WRITE(dspbase, offset); 575 REG_READ(dspbase);
577 REG_READ(dspbase); 576 REG_WRITE(dspsurf, start);
578 REG_WRITE(dspsurf, start); 577 REG_READ(dspsurf);
579 REG_READ(dspsurf);
580 } else {
581 REG_WRITE(dspbase, start + offset);
582 REG_READ(dspbase);
583 }
584 578
585pipe_set_base_exit: 579pipe_set_base_exit:
586 gma_power_end(dev); 580 gma_power_end(dev);