lcd: modify lcd init code for lcd internal power jump
authorxingbin <xingbin@huaqin.com>
Tue, 19 Mar 2019 08:17:21 +0000 (16:17 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:00 +0000 (17:37 +0800)
Change-Id: If3bb2f7873762bb2d51b9cef8cca5057611dd94b
Signed-off-by: xingbin <xingbin@huaqin.com>
Signed-off-by: tanhua1 <tanhua1@mt.com>
Reviewed-on: https://gerrit.mot.com/1323561
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/video/fbdev/exynos/dpu20/panels/hix83112a_lcd_ctrl.c
drivers/video/fbdev/exynos/dpu20/panels/hix83112a_param.h

index 0282d150cd5154e089852e15d8337d2e2707207a..27a4babceedc8b891ed6c57a323a64e8016e0a9b 100755 (executable)
@@ -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);
index 6c1cc726e1b2905e72aef2e8a32d8c514fafc233..c869f9d3c5389af92d21432db96088409a884fff 100755 (executable)
@@ -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__ */