From: xingbin Date: Wed, 13 Mar 2019 07:49:21 +0000 (+0800) Subject: lcd: modify lcd init code for lcd internal power jump X-Git-Tag: MMI-QSAS30.62-33-3~177 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66ebc19bf430517d37103b3221b722d4d1238899;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git lcd: modify lcd init code for lcd internal power jump modify himax lcd init code for lcd internal power jump Note:current stage solution, maybe update the final solution later Change-Id: I22e036b0145aefb7057a7e44dac7292037fa19d8 Signed-off-by: xingbin Signed-off-by: tanhua1 Reviewed-on: https://gerrit.mot.com/1323560 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- diff --git a/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_lcd_ctrl.c b/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_lcd_ctrl.c index fdaeb50a25e7..0282d150cd51 100755 --- a/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_lcd_ctrl.c +++ b/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_lcd_ctrl.c @@ -118,6 +118,12 @@ void hix83112a_lcd_init(int id, struct decon_lcd *lcd) dsim_err("fail to send SEQ_OTP_DISABLE command.\n"); mdelay(1); + if (dsim_wr_data(id, MIPI_DSI_DCS_SHORT_WRITE_PARAM, + SEQ_CMD_8[0], + SEQ_CMD_8[1]) < 0) + dsim_err("fail to send SEQ_CMD_8 command.\n"); + mdelay(5); + if (dsim_wr_data(id, MIPI_DSI_DCS_SHORT_WRITE, SEQ_SLEEP_OUT[0], 0) < 0) dsim_err("fail to send SEQ_SLEEP_OUT command.\n"); mdelay(125); diff --git a/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_param.h b/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_param.h index 70bf68ddbdd2..6c1cc726e1b2 100755 --- a/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_param.h +++ b/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_param.h @@ -67,4 +67,7 @@ static const unsigned char SEQ_CMD_7[] = { static const unsigned char SEQ_OTP_DISABLE[] = { 0xCF, 0x00, 0x14, 0x00, 0xC0 }; +static const unsigned char SEQ_CMD_8[] = { + 0xBB,0x00 +}; #endif /* __HIX83112A_PARAM_H__ */