From: Liu Ying Date: Fri, 30 Mar 2012 01:22:00 +0000 (+0800) Subject: ENGR00178456 IPUv3 fb:Unblank primary fb only by default X-Git-Tag: v3.0.35-fsl~1259 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b1ea62798020f87507f80c05fc69f18d8c587d45;p=karo-tx-linux.git ENGR00178456 IPUv3 fb:Unblank primary fb only by default This patch changes IPUv3 fb probe function logic to unblank the primary fb only by default so that the secondary fb using IPU DP BG channel won't be unblanked when system boot-ups. This avoids the HDMI fb(as the secondary fb using IPU DP BG channel) is unblanked accidentally without plugging in HDMI cable. Signed-off-by: Liu Ying (cherry picked from commit 2c8188de61f84e40e26e662138af5ef4f81a0969) --- diff --git a/drivers/video/mxc/mxc_ipuv3_fb.c b/drivers/video/mxc/mxc_ipuv3_fb.c index 62685a5197e7..8eade2c99d1a 100644 --- a/drivers/video/mxc/mxc_ipuv3_fb.c +++ b/drivers/video/mxc/mxc_ipuv3_fb.c @@ -2077,7 +2077,11 @@ static int mxcfb_probe(struct platform_device *pdev) mxcfbi->ipu_ch_nf_irq = IPU_IRQ_BG_SYNC_NFACK; mxcfbi->ipu_alp_ch_irq = IPU_IRQ_BG_ALPHA_SYNC_EOF; mxcfbi->ipu_ch = MEM_BG_SYNC; - mxcfbi->cur_blank = mxcfbi->next_blank = FB_BLANK_UNBLANK; + /* Unblank the primary fb only by default */ + if (pdev->id == 0) + mxcfbi->cur_blank = mxcfbi->next_blank = FB_BLANK_UNBLANK; + else + mxcfbi->cur_blank = mxcfbi->next_blank = FB_BLANK_POWERDOWN; ipu_disp_set_global_alpha(mxcfbi->ipu, mxcfbi->ipu_ch, true, 0x80); ipu_disp_set_color_key(mxcfbi->ipu, mxcfbi->ipu_ch, false, 0);