aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/samsung/s3cfb_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/samsung/s3cfb_ops.c')
-rw-r--r--drivers/video/samsung/s3cfb_ops.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/video/samsung/s3cfb_ops.c b/drivers/video/samsung/s3cfb_ops.c
index 8d5739d..0bcd529 100644
--- a/drivers/video/samsung/s3cfb_ops.c
+++ b/drivers/video/samsung/s3cfb_ops.c
@@ -53,6 +53,10 @@
#include <plat/s5p-sysmmu.h>
#endif
+#if defined(CONFIG_MACH_KONA) || defined(CONFIG_MACH_TAB3) || defined(CONFIG_MACH_T0)
+extern unsigned int lpcharge;
+#endif
+
struct s3c_platform_fb *to_fb_plat(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
@@ -1078,6 +1082,15 @@ int s3cfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *fb)
}
#endif
+#if defined(CONFIG_MACH_KONA) || defined(CONFIG_MACH_TAB3) || defined(CONFIG_MACH_T0)
+ if (lpcharge) {
+ /* support LPM (off charging mode) display based on FBIOPAN_DISPLAY */
+ s3cfb_check_var(var, fb);
+ s3cfb_set_par(fb);
+ s3cfb_enable_window(fbdev, win->id);
+ }
+#endif
+
if (var->yoffset + var->yres > var->yres_virtual) {
dev_err(fbdev->dev, "invalid yoffset value\n");
if (win->id == pdata->default_win)