lcd: modify lcd init code for lcd internal power jump
authorxingbin <xingbin@huaqin.com>
Wed, 13 Mar 2019 07:49:21 +0000 (15:49 +0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:57 +0000 (20:23 +0300)
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 <xingbin@huaqin.com>
Signed-off-by: tanhua1 <tanhua1@mt.com>
Reviewed-on: https://gerrit.mot.com/1323560
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
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 fdaeb50a25e73618b6c68c3f35a14ea1cdeca61c..0282d150cd5154e089852e15d8337d2e2707207a 100755 (executable)
@@ -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);
index 70bf68ddbdd24f55027125a8b39067575fa5a617..6c1cc726e1b2905e72aef2e8a32d8c514fafc233 100755 (executable)
@@ -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__ */