Commit a75c9e6c authored by Imre Deak's avatar Imre Deak Committed by Juha Yrjola

lcd_mipid: keep a delay of two frames when disabling the LCD

ls041y3 needs the PCLK,HS,VS signals for a while after sending the sleep
in command, so sleep 50 msec.
Signed-off-by: default avatarImre Deak <imre.deak@solidboot.com>
Signed-off-by: default avatarJuha Yrjola <juha.yrjola@solidboot.com>
parent 1115875f
...@@ -187,7 +187,7 @@ static void hw_guard_wait(struct mipid_device *md) ...@@ -187,7 +187,7 @@ static void hw_guard_wait(struct mipid_device *md)
static void set_sleep_mode(struct mipid_device *md, int on) static void set_sleep_mode(struct mipid_device *md, int on)
{ {
int cmd, sleep_time = 5; int cmd, sleep_time = 50;
if (on) if (on)
cmd = MIPID_CMD_SLEEP_IN; cmd = MIPID_CMD_SLEEP_IN;
...@@ -197,7 +197,9 @@ static void set_sleep_mode(struct mipid_device *md, int on) ...@@ -197,7 +197,9 @@ static void set_sleep_mode(struct mipid_device *md, int on)
mipid_cmd(md, cmd); mipid_cmd(md, cmd);
hw_guard_start(md, 120); hw_guard_start(md, 120);
/* When we enable the panel, it seems we _have_ to sleep /* When we enable the panel, it seems we _have_ to sleep
* 120 ms before sending the init string */ * 120 ms before sending the init string. When disabling the
* panel we'll sleep for the duration of 2 frames, so that the
* controller can still provide the PCLK,HS,VS signals. */
if (!on) if (!on)
sleep_time = 120; sleep_time = 120;
msleep(sleep_time); msleep(sleep_time);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment