aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2011-12-16 07:31:12 -0500
committerInki Dae <inki.dae@samsung.com>2011-12-28 21:21:42 -0500
commit52c68814cd7f3592292a02b890b5b8625e9069a7 (patch)
tree7f83ae8d57005a7fed13519eab9364c2bd877d1a /drivers
parent0edf9936d5728669fbcf9bcfa3165744eb348e16 (diff)
drm/exynos: extend vblank off delay time.
some platform could be entering to sleep after short time once lcd panel off but before that vblank could be off by vblank off delay feature. at that time, vblank doesn't have the pair between vblank_get/put. so this path makes vblank off delay to have enough. Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.c4
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 141072089fb2..35889ca255e9 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -44,6 +44,8 @@
44#define DRIVER_MAJOR 1 44#define DRIVER_MAJOR 1
45#define DRIVER_MINOR 0 45#define DRIVER_MINOR 0
46 46
47#define VBLANK_OFF_DELAY 50000
48
47static int exynos_drm_load(struct drm_device *dev, unsigned long flags) 49static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
48{ 50{
49 struct exynos_drm_private *private; 51 struct exynos_drm_private *private;
@@ -107,6 +109,8 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
107 goto err_drm_device; 109 goto err_drm_device;
108 } 110 }
109 111
112 drm_vblank_offdelay = VBLANK_OFF_DELAY;
113
110 return 0; 114 return 0;
111 115
112err_drm_device: 116err_drm_device:
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h
index 24f4ef48e474..e685e1e33055 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.h
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h
@@ -41,6 +41,8 @@ struct drm_device;
41struct exynos_drm_overlay; 41struct exynos_drm_overlay;
42struct drm_connector; 42struct drm_connector;
43 43
44extern unsigned int drm_vblank_offdelay;
45
44/* this enumerates display type. */ 46/* this enumerates display type. */
45enum exynos_drm_output_type { 47enum exynos_drm_output_type {
46 EXYNOS_DISPLAY_TYPE_NONE, 48 EXYNOS_DISPLAY_TYPE_NONE,