msm_fb: display: check FB_ACTIVATE_VBL bit only

FB_ACTIVATE_VBL bit is set to enable TE logic at pan_display
and unset to disable TE logic at pan_display for smart panel.
This patch checks for FB_ACTIVATE_VBL bit set only instead of
value.

CRs-fixed: 433399
Change-Id: I6fc913c6752fcca6a27c783c45ab318065217973
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
This commit is contained in:
Kuogee Hsieh 2012-12-17 17:59:33 -08:00 committed by Stephen Boyd
parent c0e1c24799
commit 4adff91942
2 changed files with 4 additions and 1 deletions

View file

@ -862,6 +862,9 @@ static void mdp4_overlay_update_dsi_cmd(struct msm_fb_data_type *mfd)
pipe = vctrl->base_pipe;
}
/* TE enabled */
mdp4_mipi_vsync_enable(mfd, pipe, 0);
MDP_OUTP(MDP_BASE + 0x021c, 10); /* read pointer */
/*

View file

@ -1982,7 +1982,7 @@ static int msm_fb_pan_display_sub(struct fb_var_screeninfo *var,
}
mdp_set_dma_pan_info(info, dirtyPtr,
(var->activate == FB_ACTIVATE_VBL));
(var->activate & FB_ACTIVATE_VBL));
/* async call */
mdp_dma_pan_update(info);