hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/gpu/drm/tve200/tve200_display.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2017 Linus Walleij <linus.walleij@linaro.org>
34 * Parts of this file were based on sources as follows:
....@@ -7,23 +8,20 @@
78 * Copyright (C) 2007 Dave Airlie <airlied@linux.ie>
89 * Copyright (C) 2011 Texas Instruments
910 * 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.
1511 */
12
+
1613 #include <linux/clk.h>
1714 #include <linux/version.h>
1815 #include <linux/dma-buf.h>
1916 #include <linux/of_graph.h>
2017 #include <linux/delay.h>
2118
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>
2421 #include <drm/drm_gem_cma_helper.h>
2522 #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>
2725
2826 #include "tve200_drm.h"
2927
....@@ -166,7 +164,8 @@
166164 /* Vsync IRQ at start of Vsync at first */
167165 ctrl1 |= TVE200_VSTSTYPE_VSYNC;
168166
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)
170169 ctrl1 |= TVE200_CTRL_TVCLKP;
171170
172171 if ((mode->hdisplay == 352 && mode->vdisplay == 240) || /* SIF(525) */