hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2014 Traphandler
34 * Copyright (C) 2014 Free Electrons
....@@ -5,40 +6,14 @@
56 *
67 * Author: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
78 * Author: Boris BREZILLON <boris.brezillon@free-electrons.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 version 2 as published by
11
- * the Free Software Foundation.
12
- *
13
- * This program is distributed in the hope that it will be useful, but WITHOUT
14
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16
- * more details.
17
- *
18
- * You should have received a copy of the GNU General Public License along with
19
- * this program. If not, see <http://www.gnu.org/licenses/>.
209 */
2110
2211 #ifndef DRM_ATMEL_HLCDC_H
2312 #define DRM_ATMEL_HLCDC_H
2413
25
-#include <linux/clk.h>
26
-#include <linux/dmapool.h>
27
-#include <linux/irqdomain.h>
28
-#include <linux/mfd/atmel-hlcdc.h>
29
-#include <linux/pwm.h>
14
+#include <linux/regmap.h>
3015
31
-#include <drm/drm_atomic.h>
32
-#include <drm/drm_atomic_helper.h>
33
-#include <drm/drm_crtc.h>
34
-#include <drm/drm_crtc_helper.h>
35
-#include <drm/drm_fb_helper.h>
36
-#include <drm/drm_fb_cma_helper.h>
37
-#include <drm/drm_gem_cma_helper.h>
38
-#include <drm/drm_gem_framebuffer_helper.h>
39
-#include <drm/drm_panel.h>
40
-#include <drm/drm_plane_helper.h>
41
-#include <drm/drmP.h>
16
+#include <drm/drm_plane.h>
4217
4318 #define ATMEL_HLCDC_LAYER_CHER 0x0
4419 #define ATMEL_HLCDC_LAYER_CHDR 0x4
....@@ -328,6 +303,7 @@
328303 * @max_hpw: maximum horizontal back/front porch width
329304 * @conflicting_output_formats: true if RGBXXX output formats conflict with
330305 * each other.
306
+ * @fixed_clksrc: true if clock source is fixed
331307 * @layers: a layer description table describing available layers
332308 * @nlayers: layer description table size
333309 */
....@@ -340,6 +316,7 @@
340316 int max_vpw;
341317 int max_hpw;
342318 bool conflicting_output_formats;
319
+ bool fixed_clksrc;
343320 const struct atmel_hlcdc_layer_desc *layers;
344321 int nlayers;
345322 };
....@@ -441,5 +418,6 @@
441418 int atmel_hlcdc_crtc_create(struct drm_device *dev);
442419
443420 int atmel_hlcdc_create_outputs(struct drm_device *dev);
421
+int atmel_hlcdc_encoder_get_bus_fmt(struct drm_encoder *encoder);
444422
445423 #endif /* DRM_ATMEL_HLCDC_H */