FP2-1032:[ST_2][BSP] DUT flashes when start boot.
Solve LCD flashing problem during boot up.
Change-Id: I19998aec54c9273c8d9bb5ac888cf80b255be0b1
diff --git a/platform/msm_shared/display.c b/platform/msm_shared/display.c
index 03a1bb0..c2fe2ac 100644
--- a/platform/msm_shared/display.c
+++ b/platform/msm_shared/display.c
@@ -239,7 +239,12 @@
int msm_display_init(struct msm_fb_panel_data *pdata)
{
int ret = NO_ERROR;
-
+ static char bl_ctl[] = {
+ 0x02, 0x00, 0x29, 0xC0,
+ 0x51, 0xFF, 0xFF, 0xFF, };
+ static struct mipi_dsi_cmd bl_ctl_cmd[] = {
+ { 0x8 , bl_ctl ,0x01},
+ };
panel = pdata;
if (!panel) {
ret = ERR_INVALID_ARGS;
@@ -290,7 +295,8 @@
ret = msm_display_on();
if (ret)
goto msm_display_init_out;
-
+ mdelay(50);
+ mipi_dsi_cmds_tx(&bl_ctl_cmd,1);
/* Turn on backlight */
if (pdata->bl_func)
ret = pdata->bl_func(1);