video: tegra: use low power for any type of blank
Jon Mayo [Thu, 10 Mar 2011 23:42:15 +0000 (15:42 -0800)]
use a lower power mode for any type of FB_BLANK instead of only supporting
FB_BLANK_POWERDOWN.

Original-Change-Id: I1dc9a6bb29808802563afb07fb5d7b41a5ba5c3d
Reviewed-on: http://git-master/r/22467
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Tested-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I4402e7f067a7f30e6a728c8b3ec4a00821741cbe

Rebase-Id: R6e8ac6c8cecd5ae91817e4225a166bac155c9d72

drivers/video/tegra/fb.c

index 198b76f..0d2c991 100644 (file)
@@ -264,6 +264,9 @@ static int tegra_fb_blank(int blank, struct fb_info *info)
                tegra_dc_enable(tegra_fb->win->dc);
                return 0;
 
+       case FB_BLANK_NORMAL:
+       case FB_BLANK_VSYNC_SUSPEND:
+       case FB_BLANK_HSYNC_SUSPEND:
        case FB_BLANK_POWERDOWN:
                dev_dbg(&tegra_fb->ndev->dev, "blank\n");
                flush_workqueue(tegra_fb->flip_wq);