]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
lcd_mipid: keep a delay of two frames when disabling the LCD
authorImre Deak <imre.deak@solidboot.com>
Mon, 24 Jul 2006 13:02:19 +0000 (16:02 +0300)
committerJuha Yrjola <juha.yrjola@solidboot.com>
Mon, 24 Jul 2006 14:35:41 +0000 (17:35 +0300)
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>
drivers/video/omap/lcd_mipid.c

index 8168834e34c402fedc34d98b9c5abb6839cef1e9..c714ad29a6a5085c12efd713937cf31da2c71988 100644 (file)
@@ -187,7 +187,7 @@ static void hw_guard_wait(struct mipid_device *md)
 
 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;
@@ -197,7 +197,9 @@ static void set_sleep_mode(struct mipid_device *md, int on)
        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);