1 /* drivers/gpu/drm/exynos5433_drm_decon.c
3 * Copyright (C) 2015 Samsung Electronics Co.Ltd
5 * Joonyoung Shim <jy0922.shim@samsung.com>
6 * Hyungwon Hwang <human.hwang@samsung.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundationr
13 #include <linux/platform_device.h>
14 #include <linux/clk.h>
15 #include <linux/component.h>
16 #include <linux/of_device.h>
17 #include <linux/of_gpio.h>
18 #include <linux/pm_runtime.h>
20 #include <video/exynos5433_decon.h>
22 #include "exynos_drm_drv.h"
23 #include "exynos_drm_crtc.h"
24 #include "exynos_drm_fb.h"
25 #include "exynos_drm_plane.h"
26 #include "exynos_drm_iommu.h"
29 #define MIN_FB_WIDTH_FOR_16WORD_BURST 128
31 #define IFTYPE_I80 (1 << 0)
32 #define I80_HW_TRG (1 << 1)
33 #define IFTYPE_HDMI (1 << 2)
35 static const char * const decon_clks_name
[] = {
45 enum decon_flag_bits
{
53 struct decon_context
{
55 struct drm_device
*drm_dev
;
56 struct exynos_drm_crtc
*crtc
;
57 struct exynos_drm_plane planes
[WINDOWS_NR
];
58 struct exynos_drm_plane_config configs
[WINDOWS_NR
];
60 struct clk
*clks
[ARRAY_SIZE(decon_clks_name
)];
63 unsigned long out_type
;
67 static const uint32_t decon_formats
[] = {
74 static const enum drm_plane_type decon_win_types
[WINDOWS_NR
] = {
75 DRM_PLANE_TYPE_PRIMARY
,
76 DRM_PLANE_TYPE_OVERLAY
,
77 DRM_PLANE_TYPE_CURSOR
,
80 static inline void decon_set_bits(struct decon_context
*ctx
, u32 reg
, u32 mask
,
83 val
= (val
& mask
) | (readl(ctx
->addr
+ reg
) & ~mask
);
84 writel(val
, ctx
->addr
+ reg
);
87 static int decon_enable_vblank(struct exynos_drm_crtc
*crtc
)
89 struct decon_context
*ctx
= crtc
->ctx
;
92 if (test_bit(BIT_SUSPENDED
, &ctx
->flags
))
95 if (!test_and_set_bit(BIT_IRQS_ENABLED
, &ctx
->flags
)) {
96 val
= VIDINTCON0_INTEN
;
97 if (ctx
->out_type
& IFTYPE_I80
)
98 val
|= VIDINTCON0_FRAMEDONE
;
100 val
|= VIDINTCON0_INTFRMEN
;
102 writel(val
, ctx
->addr
+ DECON_VIDINTCON0
);
108 static void decon_disable_vblank(struct exynos_drm_crtc
*crtc
)
110 struct decon_context
*ctx
= crtc
->ctx
;
112 if (test_bit(BIT_SUSPENDED
, &ctx
->flags
))
115 if (test_and_clear_bit(BIT_IRQS_ENABLED
, &ctx
->flags
))
116 writel(0, ctx
->addr
+ DECON_VIDINTCON0
);
119 static void decon_setup_trigger(struct decon_context
*ctx
)
121 u32 val
= !(ctx
->out_type
& I80_HW_TRG
)
122 ? TRIGCON_TRIGEN_PER_F
| TRIGCON_TRIGEN_F
|
123 TRIGCON_TE_AUTO_MASK
| TRIGCON_SWTRIGEN
124 : TRIGCON_TRIGEN_PER_F
| TRIGCON_TRIGEN_F
|
125 TRIGCON_HWTRIGMASK
| TRIGCON_HWTRIGEN
;
126 writel(val
, ctx
->addr
+ DECON_TRIGCON
);
129 static void decon_commit(struct exynos_drm_crtc
*crtc
)
131 struct decon_context
*ctx
= crtc
->ctx
;
132 struct drm_display_mode
*m
= &crtc
->base
.mode
;
135 if (test_bit(BIT_SUSPENDED
, &ctx
->flags
))
138 if (ctx
->out_type
& IFTYPE_HDMI
) {
139 m
->crtc_hsync_start
= m
->crtc_hdisplay
+ 10;
140 m
->crtc_hsync_end
= m
->crtc_htotal
- 92;
141 m
->crtc_vsync_start
= m
->crtc_vdisplay
+ 1;
142 m
->crtc_vsync_end
= m
->crtc_vsync_start
+ 1;
145 decon_set_bits(ctx
, DECON_VIDCON0
, VIDCON0_ENVID
, 0);
147 /* enable clock gate */
148 val
= CMU_CLKGAGE_MODE_SFR_F
| CMU_CLKGAGE_MODE_MEM_F
;
149 writel(val
, ctx
->addr
+ DECON_CMU
);
151 if (ctx
->out_type
& (IFTYPE_I80
| I80_HW_TRG
))
152 decon_setup_trigger(ctx
);
154 /* lcd on and use command if */
156 if (ctx
->out_type
& IFTYPE_I80
) {
157 val
|= VIDOUT_COMMAND_IF
;
159 val
|= VIDOUT_RGB_IF
;
162 writel(val
, ctx
->addr
+ DECON_VIDOUTCON0
);
164 val
= VIDTCON2_LINEVAL(m
->vdisplay
- 1) |
165 VIDTCON2_HOZVAL(m
->hdisplay
- 1);
166 writel(val
, ctx
->addr
+ DECON_VIDTCON2
);
168 if (!(ctx
->out_type
& IFTYPE_I80
)) {
169 val
= VIDTCON00_VBPD_F(
170 m
->crtc_vtotal
- m
->crtc_vsync_end
- 1) |
172 m
->crtc_vsync_start
- m
->crtc_vdisplay
- 1);
173 writel(val
, ctx
->addr
+ DECON_VIDTCON00
);
175 val
= VIDTCON01_VSPW_F(
176 m
->crtc_vsync_end
- m
->crtc_vsync_start
- 1);
177 writel(val
, ctx
->addr
+ DECON_VIDTCON01
);
179 val
= VIDTCON10_HBPD_F(
180 m
->crtc_htotal
- m
->crtc_hsync_end
- 1) |
182 m
->crtc_hsync_start
- m
->crtc_hdisplay
- 1);
183 writel(val
, ctx
->addr
+ DECON_VIDTCON10
);
185 val
= VIDTCON11_HSPW_F(
186 m
->crtc_hsync_end
- m
->crtc_hsync_start
- 1);
187 writel(val
, ctx
->addr
+ DECON_VIDTCON11
);
190 /* enable output and display signal */
191 decon_set_bits(ctx
, DECON_VIDCON0
, VIDCON0_ENVID
| VIDCON0_ENVID_F
, ~0);
193 decon_set_bits(ctx
, DECON_UPDATE
, STANDALONE_UPDATE_F
, ~0);
196 static void decon_win_set_pixfmt(struct decon_context
*ctx
, unsigned int win
,
197 struct drm_framebuffer
*fb
)
201 val
= readl(ctx
->addr
+ DECON_WINCONx(win
));
202 val
&= WINCONx_ENWIN_F
;
204 switch (fb
->pixel_format
) {
205 case DRM_FORMAT_XRGB1555
:
206 val
|= WINCONx_BPPMODE_16BPP_I1555
;
207 val
|= WINCONx_HAWSWP_F
;
208 val
|= WINCONx_BURSTLEN_16WORD
;
210 case DRM_FORMAT_RGB565
:
211 val
|= WINCONx_BPPMODE_16BPP_565
;
212 val
|= WINCONx_HAWSWP_F
;
213 val
|= WINCONx_BURSTLEN_16WORD
;
215 case DRM_FORMAT_XRGB8888
:
216 val
|= WINCONx_BPPMODE_24BPP_888
;
217 val
|= WINCONx_WSWP_F
;
218 val
|= WINCONx_BURSTLEN_16WORD
;
220 case DRM_FORMAT_ARGB8888
:
221 val
|= WINCONx_BPPMODE_32BPP_A8888
;
222 val
|= WINCONx_WSWP_F
| WINCONx_BLD_PIX_F
| WINCONx_ALPHA_SEL_F
;
223 val
|= WINCONx_BURSTLEN_16WORD
;
226 DRM_ERROR("Proper pixel format is not set\n");
230 DRM_DEBUG_KMS("bpp = %u\n", fb
->bits_per_pixel
);
233 * In case of exynos, setting dma-burst to 16Word causes permanent
234 * tearing for very small buffers, e.g. cursor buffer. Burst Mode
235 * switching which is based on plane size is not recommended as
236 * plane size varies a lot towards the end of the screen and rapid
237 * movement causes unstable DMA which results into iommu crash/tear.
240 if (fb
->width
< MIN_FB_WIDTH_FOR_16WORD_BURST
) {
241 val
&= ~WINCONx_BURSTLEN_MASK
;
242 val
|= WINCONx_BURSTLEN_8WORD
;
245 writel(val
, ctx
->addr
+ DECON_WINCONx(win
));
248 static void decon_shadow_protect_win(struct decon_context
*ctx
, int win
,
251 decon_set_bits(ctx
, DECON_SHADOWCON
, SHADOWCON_Wx_PROTECT(win
),
255 static void decon_atomic_begin(struct exynos_drm_crtc
*crtc
)
257 struct decon_context
*ctx
= crtc
->ctx
;
260 if (test_bit(BIT_SUSPENDED
, &ctx
->flags
))
263 for (i
= ctx
->first_win
; i
< WINDOWS_NR
; i
++)
264 decon_shadow_protect_win(ctx
, i
, true);
267 #define BIT_VAL(x, e, s) (((x) & ((1 << ((e) - (s) + 1)) - 1)) << (s))
268 #define COORDINATE_X(x) BIT_VAL((x), 23, 12)
269 #define COORDINATE_Y(x) BIT_VAL((x), 11, 0)
271 static void decon_update_plane(struct exynos_drm_crtc
*crtc
,
272 struct exynos_drm_plane
*plane
)
274 struct exynos_drm_plane_state
*state
=
275 to_exynos_plane_state(plane
->base
.state
);
276 struct decon_context
*ctx
= crtc
->ctx
;
277 struct drm_framebuffer
*fb
= state
->base
.fb
;
278 unsigned int win
= plane
->index
;
279 unsigned int bpp
= fb
->bits_per_pixel
>> 3;
280 unsigned int pitch
= fb
->pitches
[0];
281 dma_addr_t dma_addr
= exynos_drm_fb_dma_addr(fb
, 0);
284 if (test_bit(BIT_SUSPENDED
, &ctx
->flags
))
287 val
= COORDINATE_X(state
->crtc
.x
) | COORDINATE_Y(state
->crtc
.y
);
288 writel(val
, ctx
->addr
+ DECON_VIDOSDxA(win
));
290 val
= COORDINATE_X(state
->crtc
.x
+ state
->crtc
.w
- 1) |
291 COORDINATE_Y(state
->crtc
.y
+ state
->crtc
.h
- 1);
292 writel(val
, ctx
->addr
+ DECON_VIDOSDxB(win
));
294 val
= VIDOSD_Wx_ALPHA_R_F(0xff) | VIDOSD_Wx_ALPHA_G_F(0xff) |
295 VIDOSD_Wx_ALPHA_B_F(0xff);
296 writel(val
, ctx
->addr
+ DECON_VIDOSDxC(win
));
298 val
= VIDOSD_Wx_ALPHA_R_F(0x0) | VIDOSD_Wx_ALPHA_G_F(0x0) |
299 VIDOSD_Wx_ALPHA_B_F(0x0);
300 writel(val
, ctx
->addr
+ DECON_VIDOSDxD(win
));
302 writel(dma_addr
, ctx
->addr
+ DECON_VIDW0xADD0B0(win
));
304 val
= dma_addr
+ pitch
* state
->src
.h
;
305 writel(val
, ctx
->addr
+ DECON_VIDW0xADD1B0(win
));
307 if (!(ctx
->out_type
& IFTYPE_HDMI
))
308 val
= BIT_VAL(pitch
- state
->crtc
.w
* bpp
, 27, 14)
309 | BIT_VAL(state
->crtc
.w
* bpp
, 13, 0);
311 val
= BIT_VAL(pitch
- state
->crtc
.w
* bpp
, 29, 15)
312 | BIT_VAL(state
->crtc
.w
* bpp
, 14, 0);
313 writel(val
, ctx
->addr
+ DECON_VIDW0xADD2(win
));
315 decon_win_set_pixfmt(ctx
, win
, fb
);
318 decon_set_bits(ctx
, DECON_WINCONx(win
), WINCONx_ENWIN_F
, ~0);
319 set_bit(BIT_REQUEST_UPDATE
, &ctx
->flags
);
322 static void decon_disable_plane(struct exynos_drm_crtc
*crtc
,
323 struct exynos_drm_plane
*plane
)
325 struct decon_context
*ctx
= crtc
->ctx
;
326 unsigned int win
= plane
->index
;
328 if (test_bit(BIT_SUSPENDED
, &ctx
->flags
))
331 decon_set_bits(ctx
, DECON_WINCONx(win
), WINCONx_ENWIN_F
, 0);
332 set_bit(BIT_REQUEST_UPDATE
, &ctx
->flags
);
335 static void decon_atomic_flush(struct exynos_drm_crtc
*crtc
)
337 struct decon_context
*ctx
= crtc
->ctx
;
340 if (test_bit(BIT_SUSPENDED
, &ctx
->flags
))
343 for (i
= ctx
->first_win
; i
< WINDOWS_NR
; i
++)
344 decon_shadow_protect_win(ctx
, i
, false);
346 if (test_and_clear_bit(BIT_REQUEST_UPDATE
, &ctx
->flags
))
347 decon_set_bits(ctx
, DECON_UPDATE
, STANDALONE_UPDATE_F
, ~0);
349 if (ctx
->out_type
& IFTYPE_I80
)
350 set_bit(BIT_WIN_UPDATED
, &ctx
->flags
);
353 static void decon_swreset(struct decon_context
*ctx
)
357 writel(0, ctx
->addr
+ DECON_VIDCON0
);
358 for (tries
= 2000; tries
; --tries
) {
359 if (~readl(ctx
->addr
+ DECON_VIDCON0
) & VIDCON0_STOP_STATUS
)
364 WARN(tries
== 0, "failed to disable DECON\n");
366 writel(VIDCON0_SWRESET
, ctx
->addr
+ DECON_VIDCON0
);
367 for (tries
= 2000; tries
; --tries
) {
368 if (~readl(ctx
->addr
+ DECON_VIDCON0
) & VIDCON0_SWRESET
)
373 WARN(tries
== 0, "failed to software reset DECON\n");
375 if (!(ctx
->out_type
& IFTYPE_HDMI
))
378 writel(VIDCON0_CLKVALUP
| VIDCON0_VLCKFREE
, ctx
->addr
+ DECON_VIDCON0
);
379 decon_set_bits(ctx
, DECON_CMU
,
380 CMU_CLKGAGE_MODE_SFR_F
| CMU_CLKGAGE_MODE_MEM_F
, ~0);
381 writel(VIDCON1_VCLK_RUN_VDEN_DISABLE
, ctx
->addr
+ DECON_VIDCON1
);
382 writel(CRCCTRL_CRCEN
| CRCCTRL_CRCSTART_F
| CRCCTRL_CRCCLKEN
,
383 ctx
->addr
+ DECON_CRCCTRL
);
386 static void decon_enable(struct exynos_drm_crtc
*crtc
)
388 struct decon_context
*ctx
= crtc
->ctx
;
390 if (!test_and_clear_bit(BIT_SUSPENDED
, &ctx
->flags
))
393 pm_runtime_get_sync(ctx
->dev
);
395 exynos_drm_pipe_clk_enable(crtc
, true);
397 set_bit(BIT_CLKS_ENABLED
, &ctx
->flags
);
401 /* if vblank was enabled status, enable it again. */
402 if (test_and_clear_bit(BIT_IRQS_ENABLED
, &ctx
->flags
))
403 decon_enable_vblank(ctx
->crtc
);
405 decon_commit(ctx
->crtc
);
408 static void decon_disable(struct exynos_drm_crtc
*crtc
)
410 struct decon_context
*ctx
= crtc
->ctx
;
413 if (test_bit(BIT_SUSPENDED
, &ctx
->flags
))
417 * We need to make sure that all windows are disabled before we
418 * suspend that connector. Otherwise we might try to scan from
419 * a destroyed buffer later.
421 for (i
= ctx
->first_win
; i
< WINDOWS_NR
; i
++)
422 decon_disable_plane(crtc
, &ctx
->planes
[i
]);
426 clear_bit(BIT_CLKS_ENABLED
, &ctx
->flags
);
428 exynos_drm_pipe_clk_enable(crtc
, false);
430 pm_runtime_put_sync(ctx
->dev
);
432 set_bit(BIT_SUSPENDED
, &ctx
->flags
);
435 static void decon_te_irq_handler(struct exynos_drm_crtc
*crtc
)
437 struct decon_context
*ctx
= crtc
->ctx
;
439 if (!test_bit(BIT_CLKS_ENABLED
, &ctx
->flags
) ||
440 (ctx
->out_type
& I80_HW_TRG
))
443 if (test_and_clear_bit(BIT_WIN_UPDATED
, &ctx
->flags
))
444 decon_set_bits(ctx
, DECON_TRIGCON
, TRIGCON_SWTRIGCMD
, ~0);
447 static void decon_clear_channels(struct exynos_drm_crtc
*crtc
)
449 struct decon_context
*ctx
= crtc
->ctx
;
452 DRM_DEBUG_KMS("%s\n", __FILE__
);
454 for (i
= 0; i
< ARRAY_SIZE(decon_clks_name
); i
++) {
455 ret
= clk_prepare_enable(ctx
->clks
[i
]);
460 for (win
= 0; win
< WINDOWS_NR
; win
++) {
461 decon_shadow_protect_win(ctx
, win
, true);
462 decon_set_bits(ctx
, DECON_WINCONx(win
), WINCONx_ENWIN_F
, 0);
463 decon_shadow_protect_win(ctx
, win
, false);
466 decon_set_bits(ctx
, DECON_UPDATE
, STANDALONE_UPDATE_F
, ~0);
468 /* TODO: wait for possible vsync */
473 clk_disable_unprepare(ctx
->clks
[i
]);
476 static struct exynos_drm_crtc_ops decon_crtc_ops
= {
477 .enable
= decon_enable
,
478 .disable
= decon_disable
,
479 .enable_vblank
= decon_enable_vblank
,
480 .disable_vblank
= decon_disable_vblank
,
481 .atomic_begin
= decon_atomic_begin
,
482 .update_plane
= decon_update_plane
,
483 .disable_plane
= decon_disable_plane
,
484 .atomic_flush
= decon_atomic_flush
,
485 .te_handler
= decon_te_irq_handler
,
488 static int decon_bind(struct device
*dev
, struct device
*master
, void *data
)
490 struct decon_context
*ctx
= dev_get_drvdata(dev
);
491 struct drm_device
*drm_dev
= data
;
492 struct exynos_drm_private
*priv
= drm_dev
->dev_private
;
493 struct exynos_drm_plane
*exynos_plane
;
494 enum exynos_drm_output_type out_type
;
498 ctx
->drm_dev
= drm_dev
;
499 ctx
->pipe
= priv
->pipe
++;
501 for (win
= ctx
->first_win
; win
< WINDOWS_NR
; win
++) {
502 int tmp
= (win
== ctx
->first_win
) ? 0 : win
;
504 ctx
->configs
[win
].pixel_formats
= decon_formats
;
505 ctx
->configs
[win
].num_pixel_formats
= ARRAY_SIZE(decon_formats
);
506 ctx
->configs
[win
].zpos
= win
;
507 ctx
->configs
[win
].type
= decon_win_types
[tmp
];
509 ret
= exynos_plane_init(drm_dev
, &ctx
->planes
[win
], win
,
510 1 << ctx
->pipe
, &ctx
->configs
[win
]);
515 exynos_plane
= &ctx
->planes
[ctx
->first_win
];
516 out_type
= (ctx
->out_type
& IFTYPE_HDMI
) ? EXYNOS_DISPLAY_TYPE_HDMI
517 : EXYNOS_DISPLAY_TYPE_LCD
;
518 ctx
->crtc
= exynos_drm_crtc_create(drm_dev
, &exynos_plane
->base
,
520 &decon_crtc_ops
, ctx
);
521 if (IS_ERR(ctx
->crtc
)) {
522 ret
= PTR_ERR(ctx
->crtc
);
526 decon_clear_channels(ctx
->crtc
);
528 ret
= drm_iommu_attach_device(drm_dev
, dev
);
538 static void decon_unbind(struct device
*dev
, struct device
*master
, void *data
)
540 struct decon_context
*ctx
= dev_get_drvdata(dev
);
542 decon_disable(ctx
->crtc
);
544 /* detach this sub driver from iommu mapping if supported. */
545 drm_iommu_detach_device(ctx
->drm_dev
, ctx
->dev
);
548 static const struct component_ops decon_component_ops
= {
550 .unbind
= decon_unbind
,
553 static irqreturn_t
decon_irq_handler(int irq
, void *dev_id
)
555 struct decon_context
*ctx
= dev_id
;
558 if (!test_bit(BIT_CLKS_ENABLED
, &ctx
->flags
))
561 val
= readl(ctx
->addr
+ DECON_VIDINTCON1
);
562 val
&= VIDINTCON1_INTFRMDONEPEND
| VIDINTCON1_INTFRMPEND
;
565 writel(val
, ctx
->addr
+ DECON_VIDINTCON1
);
566 drm_crtc_handle_vblank(&ctx
->crtc
->base
);
574 static int exynos5433_decon_suspend(struct device
*dev
)
576 struct decon_context
*ctx
= dev_get_drvdata(dev
);
577 int i
= ARRAY_SIZE(decon_clks_name
);
580 clk_disable_unprepare(ctx
->clks
[i
]);
585 static int exynos5433_decon_resume(struct device
*dev
)
587 struct decon_context
*ctx
= dev_get_drvdata(dev
);
590 for (i
= 0; i
< ARRAY_SIZE(decon_clks_name
); i
++) {
591 ret
= clk_prepare_enable(ctx
->clks
[i
]);
600 clk_disable_unprepare(ctx
->clks
[i
]);
606 static const struct dev_pm_ops exynos5433_decon_pm_ops
= {
607 SET_RUNTIME_PM_OPS(exynos5433_decon_suspend
, exynos5433_decon_resume
,
611 static const struct of_device_id exynos5433_decon_driver_dt_match
[] = {
613 .compatible
= "samsung,exynos5433-decon",
614 .data
= (void *)I80_HW_TRG
617 .compatible
= "samsung,exynos5433-decon-tv",
618 .data
= (void *)(I80_HW_TRG
| IFTYPE_HDMI
)
622 MODULE_DEVICE_TABLE(of
, exynos5433_decon_driver_dt_match
);
624 static int exynos5433_decon_probe(struct platform_device
*pdev
)
626 struct device
*dev
= &pdev
->dev
;
627 struct decon_context
*ctx
;
628 struct resource
*res
;
632 ctx
= devm_kzalloc(dev
, sizeof(*ctx
), GFP_KERNEL
);
636 __set_bit(BIT_SUSPENDED
, &ctx
->flags
);
638 ctx
->out_type
= (unsigned long)of_device_get_match_data(dev
);
640 if (ctx
->out_type
& IFTYPE_HDMI
) {
642 } else if (of_get_child_by_name(dev
->of_node
, "i80-if-timings")) {
643 ctx
->out_type
|= IFTYPE_I80
;
646 for (i
= 0; i
< ARRAY_SIZE(decon_clks_name
); i
++) {
649 clk
= devm_clk_get(ctx
->dev
, decon_clks_name
[i
]);
656 res
= platform_get_resource(pdev
, IORESOURCE_MEM
, 0);
658 dev_err(dev
, "cannot find IO resource\n");
662 ctx
->addr
= devm_ioremap_resource(dev
, res
);
663 if (IS_ERR(ctx
->addr
)) {
664 dev_err(dev
, "ioremap failed\n");
665 return PTR_ERR(ctx
->addr
);
668 res
= platform_get_resource_byname(pdev
, IORESOURCE_IRQ
,
669 (ctx
->out_type
& IFTYPE_I80
) ? "lcd_sys" : "vsync");
671 dev_err(dev
, "cannot find IRQ resource\n");
675 ret
= devm_request_irq(dev
, res
->start
, decon_irq_handler
, 0,
678 dev_err(dev
, "lcd_sys irq request failed\n");
682 platform_set_drvdata(pdev
, ctx
);
684 pm_runtime_enable(dev
);
686 ret
= component_add(dev
, &decon_component_ops
);
688 goto err_disable_pm_runtime
;
692 err_disable_pm_runtime
:
693 pm_runtime_disable(dev
);
698 static int exynos5433_decon_remove(struct platform_device
*pdev
)
700 pm_runtime_disable(&pdev
->dev
);
702 component_del(&pdev
->dev
, &decon_component_ops
);
707 struct platform_driver exynos5433_decon_driver
= {
708 .probe
= exynos5433_decon_probe
,
709 .remove
= exynos5433_decon_remove
,
711 .name
= "exynos5433-decon",
712 .pm
= &exynos5433_decon_pm_ops
,
713 .of_match_table
= exynos5433_decon_driver_dt_match
,