blob: 9006b947e03c0a431141144c7ed21ae88b14f02b [file] [log] [blame]
Inki Dae1c248b72011-10-04 19:19:01 +09001/* exynos_drm_crtc.c
2 *
3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4 * Authors:
5 * Inki Dae <inki.dae@samsung.com>
6 * Joonyoung Shim <jy0922.shim@samsung.com>
7 * Seung-Woo Kim <sw0312.kim@samsung.com>
8 *
Inki Daed81aecb2012-12-18 02:30:17 +09009 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2 of the License, or (at your
12 * option) any later version.
Inki Dae1c248b72011-10-04 19:19:01 +090013 */
14
David Howells760285e2012-10-02 18:01:07 +010015#include <drm/drmP.h>
16#include <drm/drm_crtc_helper.h>
Inki Dae1c248b72011-10-04 19:19:01 +090017
Mark Browne30655d2013-08-13 00:46:40 +010018#include "exynos_drm_crtc.h"
Inki Dae1c248b72011-10-04 19:19:01 +090019#include "exynos_drm_drv.h"
Inki Dae1c248b72011-10-04 19:19:01 +090020#include "exynos_drm_encoder.h"
Joonyoung Shimb5d2eb32012-06-27 14:27:04 +090021#include "exynos_drm_plane.h"
Inki Dae1c248b72011-10-04 19:19:01 +090022
Inki Dae1c248b72011-10-04 19:19:01 +090023static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
24{
Joonyoung Shimd2716c82011-11-04 17:04:45 +090025 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
Inki Dae1c248b72011-10-04 19:19:01 +090026
Joonyoung Shimd2716c82011-11-04 17:04:45 +090027 DRM_DEBUG_KMS("crtc[%d] mode[%d]\n", crtc->base.id, mode);
28
Inki Daeec05da92011-12-06 11:06:54 +090029 if (exynos_crtc->dpms == mode) {
30 DRM_DEBUG_KMS("desired dpms mode is same as previous one.\n");
31 return;
32 }
33
Inki Dae20cd2642013-05-21 16:55:58 +090034 if (mode > DRM_MODE_DPMS_ON) {
35 /* wait for the completion of page flip. */
YoungJun Choe35d7222014-07-17 18:01:17 +090036 if (!wait_event_timeout(exynos_crtc->pending_flip_queue,
Mandeep Singh Bainese7527472015-04-01 13:02:12 -030037 (exynos_crtc->event == NULL), HZ/20))
38 exynos_crtc->event = NULL;
Andrzej Hajdad6948b22014-10-10 14:31:55 +020039 drm_crtc_vblank_off(crtc);
Inki Dae20cd2642013-05-21 16:55:58 +090040 }
41
Gustavo Padovan93bca242015-01-18 18:16:23 +090042 if (exynos_crtc->ops->dpms)
43 exynos_crtc->ops->dpms(exynos_crtc, mode);
Sean Paul080be03d2014-02-19 21:02:55 +090044
Joonyoung Shimcf5188a2012-06-27 14:27:09 +090045 exynos_crtc->dpms = mode;
Andrzej Hajdad6948b22014-10-10 14:31:55 +020046
47 if (mode == DRM_MODE_DPMS_ON)
48 drm_crtc_vblank_on(crtc);
Inki Dae1c248b72011-10-04 19:19:01 +090049}
50
51static void exynos_drm_crtc_prepare(struct drm_crtc *crtc)
52{
Inki Dae1c248b72011-10-04 19:19:01 +090053 /* drm framework doesn't check NULL. */
54}
55
56static void exynos_drm_crtc_commit(struct drm_crtc *crtc)
57{
Joonyoung Shimd2716c82011-11-04 17:04:45 +090058 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
Gustavo Padovan9d5310c2014-11-13 22:17:46 -020059 struct exynos_drm_plane *exynos_plane = to_exynos_plane(crtc->primary);
Joonyoung Shimd2716c82011-11-04 17:04:45 +090060
Inki Dae50caf252012-08-20 21:29:25 +090061 exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_ON);
Sean Paul080be03d2014-02-19 21:02:55 +090062
Gustavo Padovan93bca242015-01-18 18:16:23 +090063 if (exynos_crtc->ops->win_commit)
64 exynos_crtc->ops->win_commit(exynos_crtc, exynos_plane->zpos);
Sean Paul080be03d2014-02-19 21:02:55 +090065
Gustavo Padovan93bca242015-01-18 18:16:23 +090066 if (exynos_crtc->ops->commit)
67 exynos_crtc->ops->commit(exynos_crtc);
Inki Dae1c248b72011-10-04 19:19:01 +090068}
69
70static bool
71exynos_drm_crtc_mode_fixup(struct drm_crtc *crtc,
Laurent Pincharte811f5a2012-07-17 17:56:50 +020072 const struct drm_display_mode *mode,
Inki Dae1c248b72011-10-04 19:19:01 +090073 struct drm_display_mode *adjusted_mode)
74{
Sean Paul4b405262014-01-30 16:19:19 -050075 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
Sean Paul4b405262014-01-30 16:19:19 -050076
Gustavo Padovan93bca242015-01-18 18:16:23 +090077 if (exynos_crtc->ops->mode_fixup)
78 return exynos_crtc->ops->mode_fixup(exynos_crtc, mode,
79 adjusted_mode);
Sean Paul4b405262014-01-30 16:19:19 -050080
Inki Dae1c248b72011-10-04 19:19:01 +090081 return true;
82}
83
84static int
85exynos_drm_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode,
86 struct drm_display_mode *adjusted_mode, int x, int y,
87 struct drm_framebuffer *old_fb)
88{
Andrzej Hajda72ed6cc2014-09-19 14:58:53 +020089 struct drm_framebuffer *fb = crtc->primary->fb;
Joonyoung Shim4070d212012-06-27 14:27:05 +090090 unsigned int crtc_w;
91 unsigned int crtc_h;
Gustavo Padovanadf56912014-11-27 14:56:09 -020092 int ret;
Joonyoung Shimaeb29222012-06-27 14:27:01 +090093
Inki Dae1de425b2012-03-16 18:47:04 +090094 /*
95 * copy the mode data adjusted by mode_fixup() into crtc->mode
96 * so that hardware can be seet to proper mode.
97 */
98 memcpy(&crtc->mode, adjusted_mode, sizeof(*adjusted_mode));
Inki Dae1c248b72011-10-04 19:19:01 +090099
Gustavo Padovanadf56912014-11-27 14:56:09 -0200100 ret = exynos_check_plane(crtc->primary, fb);
101 if (ret < 0)
102 return ret;
103
Andrzej Hajda72ed6cc2014-09-19 14:58:53 +0200104 crtc_w = fb->width - x;
105 crtc_h = fb->height - y;
Gustavo Padovanadf56912014-11-27 14:56:09 -0200106 exynos_plane_mode_set(crtc->primary, crtc, fb, 0, 0,
107 crtc_w, crtc_h, x, y, crtc_w, crtc_h);
108
109 return 0;
Inki Dae1c248b72011-10-04 19:19:01 +0900110}
111
Gustavo Padovanfd092d72014-11-13 22:30:00 -0200112static int exynos_drm_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
Inki Dae1c248b72011-10-04 19:19:01 +0900113 struct drm_framebuffer *old_fb)
114{
Joonyoung Shim4070d212012-06-27 14:27:05 +0900115 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
Andrzej Hajda72ed6cc2014-09-19 14:58:53 +0200116 struct drm_framebuffer *fb = crtc->primary->fb;
Joonyoung Shim4070d212012-06-27 14:27:05 +0900117 unsigned int crtc_w;
118 unsigned int crtc_h;
Inki Dae1c248b72011-10-04 19:19:01 +0900119
Inki Dae32aeab12012-09-14 13:29:47 +0900120 /* when framebuffer changing is requested, crtc's dpms should be on */
121 if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) {
122 DRM_ERROR("failed framebuffer changing request.\n");
123 return -EPERM;
124 }
125
Andrzej Hajda72ed6cc2014-09-19 14:58:53 +0200126 crtc_w = fb->width - x;
127 crtc_h = fb->height - y;
Joonyoung Shim4070d212012-06-27 14:27:05 +0900128
Gustavo Padovan0e0a6492014-11-25 11:21:17 -0200129 return exynos_update_plane(crtc->primary, crtc, fb, 0, 0,
130 crtc_w, crtc_h, x, y, crtc_w, crtc_h);
Inki Dae1c248b72011-10-04 19:19:01 +0900131}
132
Joonyoung Shima365d9e2012-06-27 14:27:10 +0900133static void exynos_drm_crtc_disable(struct drm_crtc *crtc)
134{
Sean Paula9c4cd22014-01-30 16:19:17 -0500135 struct drm_plane *plane;
136 int ret;
Joonyoung Shima365d9e2012-06-27 14:27:10 +0900137
Joonyoung Shima365d9e2012-06-27 14:27:10 +0900138 exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_OFF);
Sean Paula9c4cd22014-01-30 16:19:17 -0500139
Matt Roper08863272014-04-01 15:22:31 -0700140 drm_for_each_legacy_plane(plane, &crtc->dev->mode_config.plane_list) {
Sean Paula9c4cd22014-01-30 16:19:17 -0500141 if (plane->crtc != crtc)
142 continue;
143
144 ret = plane->funcs->disable_plane(plane);
145 if (ret)
146 DRM_ERROR("Failed to disable plane %d\n", ret);
147 }
Joonyoung Shima365d9e2012-06-27 14:27:10 +0900148}
149
Inki Dae1c248b72011-10-04 19:19:01 +0900150static struct drm_crtc_helper_funcs exynos_crtc_helper_funcs = {
151 .dpms = exynos_drm_crtc_dpms,
152 .prepare = exynos_drm_crtc_prepare,
153 .commit = exynos_drm_crtc_commit,
154 .mode_fixup = exynos_drm_crtc_mode_fixup,
155 .mode_set = exynos_drm_crtc_mode_set,
156 .mode_set_base = exynos_drm_crtc_mode_set_base,
Joonyoung Shima365d9e2012-06-27 14:27:10 +0900157 .disable = exynos_drm_crtc_disable,
Inki Dae1c248b72011-10-04 19:19:01 +0900158};
159
160static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc,
Keith Packarded8d1972013-07-22 18:49:58 -0700161 struct drm_framebuffer *fb,
162 struct drm_pending_vblank_event *event,
163 uint32_t page_flip_flags)
Inki Dae1c248b72011-10-04 19:19:01 +0900164{
165 struct drm_device *dev = crtc->dev;
Inki Dae1c248b72011-10-04 19:19:01 +0900166 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
Matt Roperf4510a22014-04-01 15:22:40 -0700167 struct drm_framebuffer *old_fb = crtc->primary->fb;
Gustavo Padovan8b9c4502014-11-25 16:18:34 -0200168 unsigned int crtc_w, crtc_h;
Mandeep Singh Bainese7527472015-04-01 13:02:12 -0300169 int ret;
Inki Dae1c248b72011-10-04 19:19:01 +0900170
Inki Daeef6223d2012-09-11 18:25:21 +0900171 /* when the page flip is requested, crtc's dpms should be on */
172 if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) {
173 DRM_ERROR("failed page flip request.\n");
174 return -EINVAL;
175 }
176
Mandeep Singh Bainese7527472015-04-01 13:02:12 -0300177 if (!event)
178 return -EINVAL;
Inki Dae1c248b72011-10-04 19:19:01 +0900179
Mandeep Singh Bainese7527472015-04-01 13:02:12 -0300180 spin_lock_irq(&dev->event_lock);
181 if (exynos_crtc->event) {
182 ret = -EBUSY;
183 goto out;
Inki Dae1c248b72011-10-04 19:19:01 +0900184 }
Mandeep Singh Bainese7527472015-04-01 13:02:12 -0300185
186 ret = drm_vblank_get(dev, exynos_crtc->pipe);
187 if (ret) {
188 DRM_DEBUG("failed to acquire vblank counter\n");
189 goto out;
190 }
191
192 exynos_crtc->event = event;
193 spin_unlock_irq(&dev->event_lock);
194
195 /*
196 * the pipe from user always is 0 so we can set pipe number
197 * of current owner to event.
198 */
199 event->pipe = exynos_crtc->pipe;
200
201 crtc->primary->fb = fb;
202 crtc_w = fb->width - crtc->x;
203 crtc_h = fb->height - crtc->y;
204 ret = exynos_update_plane(crtc->primary, crtc, fb, 0, 0,
205 crtc_w, crtc_h, crtc->x, crtc->y,
206 crtc_w, crtc_h);
207 if (ret) {
208 crtc->primary->fb = old_fb;
209 spin_lock_irq(&dev->event_lock);
210 exynos_crtc->event = NULL;
211 drm_vblank_put(dev, exynos_crtc->pipe);
212 spin_unlock_irq(&dev->event_lock);
213 return ret;
214 }
215
216 return 0;
217
Inki Dae1c248b72011-10-04 19:19:01 +0900218out:
Mandeep Singh Bainese7527472015-04-01 13:02:12 -0300219 spin_unlock_irq(&dev->event_lock);
Inki Dae1c248b72011-10-04 19:19:01 +0900220 return ret;
221}
222
223static void exynos_drm_crtc_destroy(struct drm_crtc *crtc)
224{
225 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
226 struct exynos_drm_private *private = crtc->dev->dev_private;
227
Inki Dae1c248b72011-10-04 19:19:01 +0900228 private->crtc[exynos_crtc->pipe] = NULL;
229
230 drm_crtc_cleanup(crtc);
231 kfree(exynos_crtc);
232}
233
234static struct drm_crtc_funcs exynos_crtc_funcs = {
235 .set_config = drm_crtc_helper_set_config,
236 .page_flip = exynos_drm_crtc_page_flip,
237 .destroy = exynos_drm_crtc_destroy,
238};
239
Gustavo Padovan93bca242015-01-18 18:16:23 +0900240struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev,
Krzysztof Kozlowskif3aaf762015-05-07 09:04:45 +0900241 struct drm_plane *plane,
242 int pipe,
243 enum exynos_drm_output_type type,
244 const struct exynos_drm_crtc_ops *ops,
245 void *ctx)
Inki Dae1c248b72011-10-04 19:19:01 +0900246{
247 struct exynos_drm_crtc *exynos_crtc;
Gustavo Padovaneb88e422014-11-26 16:43:27 -0200248 struct exynos_drm_private *private = drm_dev->dev_private;
Inki Dae1c248b72011-10-04 19:19:01 +0900249 struct drm_crtc *crtc;
Andrzej Hajda72ed6cc2014-09-19 14:58:53 +0200250 int ret;
Inki Dae1c248b72011-10-04 19:19:01 +0900251
Inki Dae1c248b72011-10-04 19:19:01 +0900252 exynos_crtc = kzalloc(sizeof(*exynos_crtc), GFP_KERNEL);
Sachin Kamat38bb5252013-08-19 19:04:55 +0900253 if (!exynos_crtc)
Gustavo Padovan93bca242015-01-18 18:16:23 +0900254 return ERR_PTR(-ENOMEM);
Inki Dae1c248b72011-10-04 19:19:01 +0900255
Inki Dae20cd2642013-05-21 16:55:58 +0900256 init_waitqueue_head(&exynos_crtc->pending_flip_queue);
Sean Paul080be03d2014-02-19 21:02:55 +0900257
258 exynos_crtc->dpms = DRM_MODE_DPMS_OFF;
Gustavo Padovane09f2b02014-11-04 18:25:27 -0200259 exynos_crtc->pipe = pipe;
Gustavo Padovan5d1741a2014-11-05 19:51:35 -0200260 exynos_crtc->type = type;
Gustavo Padovan93bca242015-01-18 18:16:23 +0900261 exynos_crtc->ops = ops;
262 exynos_crtc->ctx = ctx;
Joonyoung Shimb5d2eb32012-06-27 14:27:04 +0900263
Gustavo Padovan357193c2014-11-03 18:20:29 -0200264 crtc = &exynos_crtc->base;
Inki Dae1c248b72011-10-04 19:19:01 +0900265
Gustavo Padovane09f2b02014-11-04 18:25:27 -0200266 private->crtc[pipe] = crtc;
Inki Dae1c248b72011-10-04 19:19:01 +0900267
Gustavo Padovaneb88e422014-11-26 16:43:27 -0200268 ret = drm_crtc_init_with_planes(drm_dev, crtc, plane, NULL,
Andrzej Hajda72ed6cc2014-09-19 14:58:53 +0200269 &exynos_crtc_funcs);
270 if (ret < 0)
271 goto err_crtc;
272
Inki Dae1c248b72011-10-04 19:19:01 +0900273 drm_crtc_helper_add(crtc, &exynos_crtc_helper_funcs);
274
Gustavo Padovan93bca242015-01-18 18:16:23 +0900275 return exynos_crtc;
Andrzej Hajda72ed6cc2014-09-19 14:58:53 +0200276
277err_crtc:
278 plane->funcs->destroy(plane);
Andrzej Hajda72ed6cc2014-09-19 14:58:53 +0200279 kfree(exynos_crtc);
Gustavo Padovan93bca242015-01-18 18:16:23 +0900280 return ERR_PTR(ret);
Inki Dae1c248b72011-10-04 19:19:01 +0900281}
282
Sean Paul080be03d2014-02-19 21:02:55 +0900283int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int pipe)
Inki Dae1c248b72011-10-04 19:19:01 +0900284{
285 struct exynos_drm_private *private = dev->dev_private;
Inki Daeec05da92011-12-06 11:06:54 +0900286 struct exynos_drm_crtc *exynos_crtc =
Sean Paul080be03d2014-02-19 21:02:55 +0900287 to_exynos_crtc(private->crtc[pipe]);
Inki Dae1c248b72011-10-04 19:19:01 +0900288
Inki Daeec05da92011-12-06 11:06:54 +0900289 if (exynos_crtc->dpms != DRM_MODE_DPMS_ON)
290 return -EPERM;
291
Gustavo Padovan93bca242015-01-18 18:16:23 +0900292 if (exynos_crtc->ops->enable_vblank)
293 exynos_crtc->ops->enable_vblank(exynos_crtc);
Inki Dae1c248b72011-10-04 19:19:01 +0900294
295 return 0;
296}
297
Sean Paul080be03d2014-02-19 21:02:55 +0900298void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int pipe)
Inki Dae1c248b72011-10-04 19:19:01 +0900299{
300 struct exynos_drm_private *private = dev->dev_private;
Inki Daeec05da92011-12-06 11:06:54 +0900301 struct exynos_drm_crtc *exynos_crtc =
Sean Paul080be03d2014-02-19 21:02:55 +0900302 to_exynos_crtc(private->crtc[pipe]);
Inki Dae1c248b72011-10-04 19:19:01 +0900303
Inki Daeec05da92011-12-06 11:06:54 +0900304 if (exynos_crtc->dpms != DRM_MODE_DPMS_ON)
305 return;
306
Gustavo Padovan93bca242015-01-18 18:16:23 +0900307 if (exynos_crtc->ops->disable_vblank)
308 exynos_crtc->ops->disable_vblank(exynos_crtc);
Inki Dae1c248b72011-10-04 19:19:01 +0900309}
Rahul Sharma663d8762013-01-03 05:44:04 -0500310
Sean Paul080be03d2014-02-19 21:02:55 +0900311void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int pipe)
Rahul Sharma663d8762013-01-03 05:44:04 -0500312{
313 struct exynos_drm_private *dev_priv = dev->dev_private;
Sean Paul080be03d2014-02-19 21:02:55 +0900314 struct drm_crtc *drm_crtc = dev_priv->crtc[pipe];
Inki Dae20cd2642013-05-21 16:55:58 +0900315 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(drm_crtc);
Rahul Sharma663d8762013-01-03 05:44:04 -0500316 unsigned long flags;
317
Rahul Sharma663d8762013-01-03 05:44:04 -0500318 spin_lock_irqsave(&dev->event_lock, flags);
Mandeep Singh Bainese7527472015-04-01 13:02:12 -0300319 if (exynos_crtc->event) {
Rahul Sharma663d8762013-01-03 05:44:04 -0500320
Mandeep Singh Bainese7527472015-04-01 13:02:12 -0300321 drm_send_vblank_event(dev, -1, exynos_crtc->event);
Sean Paul080be03d2014-02-19 21:02:55 +0900322 drm_vblank_put(dev, pipe);
Inki Dae20cd2642013-05-21 16:55:58 +0900323 wake_up(&exynos_crtc->pending_flip_queue);
Mandeep Singh Bainese7527472015-04-01 13:02:12 -0300324
Rahul Sharma663d8762013-01-03 05:44:04 -0500325 }
326
Mandeep Singh Bainese7527472015-04-01 13:02:12 -0300327 exynos_crtc->event = NULL;
Rahul Sharma663d8762013-01-03 05:44:04 -0500328 spin_unlock_irqrestore(&dev->event_lock, flags);
329}
Sean Paul080be03d2014-02-19 21:02:55 +0900330
Sean Paul080be03d2014-02-19 21:02:55 +0900331void exynos_drm_crtc_complete_scanout(struct drm_framebuffer *fb)
332{
Gustavo Padovan93bca242015-01-18 18:16:23 +0900333 struct exynos_drm_crtc *exynos_crtc;
Sean Paul080be03d2014-02-19 21:02:55 +0900334 struct drm_device *dev = fb->dev;
335 struct drm_crtc *crtc;
336
337 /*
338 * make sure that overlay data are updated to real hardware
339 * for all encoders.
340 */
341 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
Gustavo Padovan93bca242015-01-18 18:16:23 +0900342 exynos_crtc = to_exynos_crtc(crtc);
Sean Paul080be03d2014-02-19 21:02:55 +0900343
344 /*
345 * wait for vblank interrupt
346 * - this makes sure that overlay data are updated to
347 * real hardware.
348 */
Gustavo Padovan93bca242015-01-18 18:16:23 +0900349 if (exynos_crtc->ops->wait_for_vblank)
350 exynos_crtc->ops->wait_for_vblank(exynos_crtc);
Sean Paul080be03d2014-02-19 21:02:55 +0900351 }
352}
Inki Daef37cd5e2014-05-09 14:25:20 +0900353
354int exynos_drm_crtc_get_pipe_from_type(struct drm_device *drm_dev,
355 unsigned int out_type)
356{
357 struct drm_crtc *crtc;
358
359 list_for_each_entry(crtc, &drm_dev->mode_config.crtc_list, head) {
360 struct exynos_drm_crtc *exynos_crtc;
361
362 exynos_crtc = to_exynos_crtc(crtc);
Gustavo Padovan5d1741a2014-11-05 19:51:35 -0200363 if (exynos_crtc->type == out_type)
Gustavo Padovan8a326ed2014-11-04 18:44:47 -0200364 return exynos_crtc->pipe;
Inki Daef37cd5e2014-05-09 14:25:20 +0900365 }
366
367 return -EPERM;
368}
YoungJun Cho5595d4d2014-07-17 18:01:19 +0900369
370void exynos_drm_crtc_te_handler(struct drm_crtc *crtc)
371{
Gustavo Padovan93bca242015-01-18 18:16:23 +0900372 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
YoungJun Cho5595d4d2014-07-17 18:01:19 +0900373
Gustavo Padovan93bca242015-01-18 18:16:23 +0900374 if (exynos_crtc->ops->te_handler)
375 exynos_crtc->ops->te_handler(exynos_crtc);
YoungJun Cho5595d4d2014-07-17 18:01:19 +0900376}