diff options
author | Manjunathappa, Prakash <prakash.pm@ti.com> | 2012-07-24 09:45:25 +0530 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-07-29 12:24:14 +0000 |
commit | f7c848b6ef31af09925bb6f4c79e236ca9f94ed9 (patch) | |
tree | f44ee927212d8d754e3cee04f9ea8c57c6718c08 /drivers/video/da8xx-fb.c | |
parent | ac33a207b13a70bbca6e58094e28bd92b9fc1ff3 (diff) | |
download | op-kernel-dev-f7c848b6ef31af09925bb6f4c79e236ca9f94ed9.zip op-kernel-dev-f7c848b6ef31af09925bb6f4c79e236ca9f94ed9.tar.gz |
da8xx-fb: do not turn ON LCD backlight unless LCDC is enabled
LCD blink is observed during suspend/resume and blank/unblank
operations as backlight is ON during LCDC disable and enable.
So make sure to turn OFF backlight before disabling and turn
it ON after enabling.
Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/da8xx-fb.c')
-rw-r--r-- | drivers/video/da8xx-fb.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index e81a458..ca9943a 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -1038,10 +1038,10 @@ static int cfb_blank(int blank, struct fb_info *info) par->blank = blank; switch (blank) { case FB_BLANK_UNBLANK: + lcd_enable_raster(); + if (par->panel_power_ctrl) par->panel_power_ctrl(1); - - lcd_enable_raster(); break; case FB_BLANK_NORMAL: case FB_BLANK_VSYNC_SUSPEND: @@ -1422,11 +1422,12 @@ static int fb_resume(struct platform_device *dev) struct da8xx_fb_par *par = info->par; console_lock(); + clk_enable(par->lcdc_clk); + lcd_enable_raster(); + if (par->panel_power_ctrl) par->panel_power_ctrl(1); - clk_enable(par->lcdc_clk); - lcd_enable_raster(); fb_set_suspend(info, 0); console_unlock(); |