From ab2f2831d21ca736538e544690808e8bd96d5df5 Mon Sep 17 00:00:00 2001 From: xingbin Date: Tue, 19 Mar 2019 16:17:21 +0800 Subject: [PATCH] lcd: modify lcd init code for lcd internal power jump Change-Id: If3bb2f7873762bb2d51b9cef8cca5057611dd94b Signed-off-by: xingbin Signed-off-by: tanhua1 Reviewed-on: https://gerrit.mot.com/1323561 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- .../exynos/dpu20/panels/hix83112a_lcd_ctrl.c | 30 +++++++++++++++++++ .../exynos/dpu20/panels/hix83112a_param.h | 15 ++++++++++ 2 files changed, 45 insertions(+) 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 0282d150cd51..27a4babceedc 100755 --- a/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_lcd_ctrl.c +++ b/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_lcd_ctrl.c @@ -124,6 +124,36 @@ void hix83112a_lcd_init(int id, struct decon_lcd *lcd) dsim_err("fail to send SEQ_CMD_8 command.\n"); mdelay(5); + if (dsim_wr_data(id, MIPI_DSI_DCS_SHORT_WRITE_PARAM, + SEQ_CMD_12[0], + SEQ_CMD_12[1]) < 0) + dsim_err("fail to send SEQ_CMD_12 command.\n"); + mdelay(1); + + if (dsim_wr_data(id, MIPI_DSI_DCS_SHORT_WRITE_PARAM, + SEQ_CMD_13[0], + SEQ_CMD_13[1]) < 0) + dsim_err("fail to send SEQ_CMD_13 command.\n"); + mdelay(1); + + if (dsim_wr_data(id, MIPI_DSI_DCS_SHORT_WRITE_PARAM, + SEQ_CMD_14[0], + SEQ_CMD_14[1]) < 0) + dsim_err("fail to send SEQ_CMD_14 command.\n"); + mdelay(1); + + if (dsim_wr_data(id, MIPI_DSI_DCS_SHORT_WRITE_PARAM, + SEQ_CMD_15[0], + SEQ_CMD_15[1]) < 0) + dsim_err("fail to send SEQ_CMD_15 command.\n"); + mdelay(1); + + if (dsim_wr_data(id, MIPI_DSI_DCS_SHORT_WRITE_PARAM, + SEQ_CMD_16[0], + SEQ_CMD_16[1]) < 0) + dsim_err("fail to send SEQ_CMD_16 command.\n"); + mdelay(1); + 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 6c1cc726e1b2..c869f9d3c538 100755 --- a/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_param.h +++ b/drivers/video/fbdev/exynos/dpu20/panels/hix83112a_param.h @@ -70,4 +70,19 @@ static const unsigned char SEQ_OTP_DISABLE[] = { static const unsigned char SEQ_CMD_8[] = { 0xBB,0x00 }; +static const unsigned char SEQ_CMD_12[] = { + 0xBD, 0x01 +}; +static const unsigned char SEQ_CMD_13[] = { + 0xE9, 0xC4 +}; +static const unsigned char SEQ_CMD_14[] = { + 0xBF, 0x0F +}; +static const unsigned char SEQ_CMD_15[] = { + 0xE9, 0x3F +}; +static const unsigned char SEQ_CMD_16[] = { + 0xBD, 0x00 +}; #endif /* __HIX83112A_PARAM_H__ */ -- 2.20.1