1
0
Fork 0

MLK-11608 video: mxsfb: add parameter equal bypass count

This parameter bypass count is used to make sure the mipi
dsi be initialized correctly without any display error.
In the mipi dsi initialization, it requires the first
two parameter setting operations should be done really.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
(cherry picked from commit 969122c2f4363dee4cf489b87984c4d85dcd89ce)

Conflicts:
	drivers/video/mxsfb.c
pull/10/head
Fancy Fang 2015-09-23 16:49:12 +08:00 committed by Jason Liu
parent ca18640dd6
commit 8cf8eaa4d9
1 changed files with 7 additions and 3 deletions

View File

@ -646,10 +646,14 @@ static int mxsfb_set_par(struct fb_info *fb_info)
u32 ctrl, vdctrl0, vdctrl4;
int line_size, fb_size;
int reenable = 0;
static u32 equal_bypass = 0;
/* If parameter no change, don't reconfigure. */
if (mxsfb_par_equal(fb_info, host))
return 0;
if (likely(equal_bypass > 1)) {
/* If parameter no change, don't reconfigure. */
if (mxsfb_par_equal(fb_info, host))
return 0;
} else
equal_bypass++;
dev_dbg(&host->pdev->dev, "%s\n", __func__);