rkfb:modify power on sequence for lcd and lcdc
authoryxj <yxj@rock-chips.com>
Wed, 12 Sep 2012 12:24:33 +0000 (20:24 +0800)
committeryxj <yxj@rock-chips.com>
Thu, 13 Sep 2012 06:51:49 +0000 (14:51 +0800)
drivers/video/rockchip/rk_fb.c

index 2620761b3e42e6647daf73295860df2c134bcd0c..d078e38b4f747a30161528ecfb690d547b340ffd 100644 (file)
@@ -1171,12 +1171,15 @@ static void rkfb_early_resume(struct early_suspend *h)
        {
                if (!inf->lcdc_dev_drv[i])
                        continue;
-               if(inf->lcdc_dev_drv[i]->screen_ctr_info->io_enable)
+               if(inf->lcdc_dev_drv[i]->screen_ctr_info->io_enable)            //power on
                        inf->lcdc_dev_drv[i]->screen_ctr_info->io_enable();
+               
+               inf->lcdc_dev_drv[i]->resume(inf->lcdc_dev_drv[i]);            // data out
+               
                if(inf->lcdc_dev_drv[i]->screen0->standby)
-                       inf->lcdc_dev_drv[i]->screen0->standby(0);
+                       inf->lcdc_dev_drv[i]->screen0->standby(0);            //screen wake up
+               
                
-               inf->lcdc_dev_drv[i]->resume(inf->lcdc_dev_drv[i]);
        }
 
 }