| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2017 Linus Walleij <linus.walleij@linaro.org> |
|---|
| 3 | 4 | * Parts of this file were based on sources as follows: |
|---|
| .. | .. |
|---|
| 7 | 8 | * Copyright (C) 2007 Dave Airlie <airlied@linux.ie> |
|---|
| 8 | 9 | * Copyright (C) 2011 Texas Instruments |
|---|
| 9 | 10 | * Copyright (C) 2017 Eric Anholt |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is free software and is provided to you under the terms of the |
|---|
| 12 | | - * GNU General Public License version 2 as published by the Free Software |
|---|
| 13 | | - * Foundation, and any use by you of this program is subject to the terms of |
|---|
| 14 | | - * such GNU licence. |
|---|
| 15 | 11 | */ |
|---|
| 12 | + |
|---|
| 16 | 13 | #include <linux/clk.h> |
|---|
| 17 | 14 | #include <linux/version.h> |
|---|
| 18 | 15 | #include <linux/dma-buf.h> |
|---|
| 19 | 16 | #include <linux/of_graph.h> |
|---|
| 20 | 17 | #include <linux/delay.h> |
|---|
| 21 | 18 | |
|---|
| 22 | | -#include <drm/drmP.h> |
|---|
| 23 | | -#include <drm/drm_panel.h> |
|---|
| 19 | +#include <drm/drm_fb_cma_helper.h> |
|---|
| 20 | +#include <drm/drm_fourcc.h> |
|---|
| 24 | 21 | #include <drm/drm_gem_cma_helper.h> |
|---|
| 25 | 22 | #include <drm/drm_gem_framebuffer_helper.h> |
|---|
| 26 | | -#include <drm/drm_fb_cma_helper.h> |
|---|
| 23 | +#include <drm/drm_panel.h> |
|---|
| 24 | +#include <drm/drm_vblank.h> |
|---|
| 27 | 25 | |
|---|
| 28 | 26 | #include "tve200_drm.h" |
|---|
| 29 | 27 | |
|---|
| .. | .. |
|---|
| 166 | 164 | /* Vsync IRQ at start of Vsync at first */ |
|---|
| 167 | 165 | ctrl1 |= TVE200_VSTSTYPE_VSYNC; |
|---|
| 168 | 166 | |
|---|
| 169 | | - if (connector->display_info.bus_flags & DRM_BUS_FLAG_PIXDATA_NEGEDGE) |
|---|
| 167 | + if (connector->display_info.bus_flags & |
|---|
| 168 | + DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE) |
|---|
| 170 | 169 | ctrl1 |= TVE200_CTRL_TVCLKP; |
|---|
| 171 | 170 | |
|---|
| 172 | 171 | if ((mode->hdisplay == 352 && mode->vdisplay == 240) || /* SIF(525) */ |
|---|