ls041y3 needs the PCLK,HS,VS signals for a while after sending the sleep
in command, so sleep 50 msec.
Signed-off-by: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
static void set_sleep_mode(struct mipid_device *md, int on)
{
- int cmd, sleep_time = 5;
+ int cmd, sleep_time = 50;
if (on)
cmd = MIPID_CMD_SLEEP_IN;
mipid_cmd(md, cmd);
hw_guard_start(md, 120);
/* 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)
sleep_time = 120;
msleep(sleep_time);