| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2015, The Linux Foundation. All rights reserved. |
|---|
| 3 | 4 | * Copyright (c) 2014, Inforce Computing. All rights reserved. |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Author: Vinay Simha <vinaysimha@inforcecomputing.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 8 | | - * under the terms of the GNU General Public License version 2 as published by |
|---|
| 9 | | - * the Free Software Foundation. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 12 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 13 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 14 | | - * more details. |
|---|
| 15 | | - * |
|---|
| 16 | | - * You should have received a copy of the GNU General Public License along with |
|---|
| 17 | | - * this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 18 | 7 | */ |
|---|
| 19 | 8 | |
|---|
| 20 | 9 | #include <drm/drm_crtc.h> |
|---|
| 21 | | -#include <drm/drm_crtc_helper.h> |
|---|
| 10 | +#include <drm/drm_probe_helper.h> |
|---|
| 22 | 11 | |
|---|
| 23 | 12 | #include "mdp4_kms.h" |
|---|
| 24 | 13 | |
|---|
| .. | .. |
|---|
| 58 | 47 | |
|---|
| 59 | 48 | mode = adjusted_mode; |
|---|
| 60 | 49 | |
|---|
| 61 | | - DBG("set mode: %d:\"%s\" %d %d %d %d %d %d %d %d %d %d 0x%x 0x%x", |
|---|
| 62 | | - mode->base.id, mode->name, |
|---|
| 63 | | - mode->vrefresh, mode->clock, |
|---|
| 64 | | - mode->hdisplay, mode->hsync_start, |
|---|
| 65 | | - mode->hsync_end, mode->htotal, |
|---|
| 66 | | - mode->vdisplay, mode->vsync_start, |
|---|
| 67 | | - mode->vsync_end, mode->vtotal, |
|---|
| 68 | | - mode->type, mode->flags); |
|---|
| 50 | + DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); |
|---|
| 69 | 51 | |
|---|
| 70 | 52 | ctrl_pol = 0; |
|---|
| 71 | 53 | if (mode->flags & DRM_MODE_FLAG_NHSYNC) |
|---|