| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* exynos_drm_crtc.c |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (c) 2011 Samsung Electronics Co., Ltd. |
|---|
| .. | .. |
|---|
| 5 | 6 | * Inki Dae <inki.dae@samsung.com> |
|---|
| 6 | 7 | * Joonyoung Shim <jy0922.shim@samsung.com> |
|---|
| 7 | 8 | * Seung-Woo Kim <sw0312.kim@samsung.com> |
|---|
| 8 | | - * |
|---|
| 9 | | - * 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. |
|---|
| 13 | 9 | */ |
|---|
| 14 | 10 | |
|---|
| 15 | | -#include <drm/drmP.h> |
|---|
| 16 | | -#include <drm/drm_crtc_helper.h> |
|---|
| 17 | 11 | #include <drm/drm_atomic.h> |
|---|
| 18 | 12 | #include <drm/drm_atomic_helper.h> |
|---|
| 19 | 13 | #include <drm/drm_encoder.h> |
|---|
| 14 | +#include <drm/drm_probe_helper.h> |
|---|
| 15 | +#include <drm/drm_vblank.h> |
|---|
| 20 | 16 | |
|---|
| 21 | 17 | #include "exynos_drm_crtc.h" |
|---|
| 22 | 18 | #include "exynos_drm_drv.h" |
|---|
| .. | .. |
|---|
| 27 | 23 | { |
|---|
| 28 | 24 | struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); |
|---|
| 29 | 25 | |
|---|
| 30 | | - if (exynos_crtc->ops->enable) |
|---|
| 31 | | - exynos_crtc->ops->enable(exynos_crtc); |
|---|
| 26 | + if (exynos_crtc->ops->atomic_enable) |
|---|
| 27 | + exynos_crtc->ops->atomic_enable(exynos_crtc); |
|---|
| 32 | 28 | |
|---|
| 33 | 29 | drm_crtc_vblank_on(crtc); |
|---|
| 34 | 30 | } |
|---|
| .. | .. |
|---|
| 40 | 36 | |
|---|
| 41 | 37 | drm_crtc_vblank_off(crtc); |
|---|
| 42 | 38 | |
|---|
| 43 | | - if (exynos_crtc->ops->disable) |
|---|
| 44 | | - exynos_crtc->ops->disable(exynos_crtc); |
|---|
| 39 | + if (exynos_crtc->ops->atomic_disable) |
|---|
| 40 | + exynos_crtc->ops->atomic_disable(exynos_crtc); |
|---|
| 45 | 41 | |
|---|
| 46 | 42 | if (crtc->state->event && !crtc->state->active) { |
|---|
| 47 | 43 | spin_lock_irq(&crtc->dev->event_lock); |
|---|