.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2014 Traphandler |
---|
3 | 4 | * Copyright (C) 2014 Free Electrons |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * Author: Jean-Jacques Hiblot <jjhiblot@traphandler.com> |
---|
7 | 8 | * 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/>. |
---|
20 | 9 | */ |
---|
21 | 10 | |
---|
22 | 11 | #ifndef DRM_ATMEL_HLCDC_H |
---|
23 | 12 | #define DRM_ATMEL_HLCDC_H |
---|
24 | 13 | |
---|
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> |
---|
30 | 15 | |
---|
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> |
---|
42 | 17 | |
---|
43 | 18 | #define ATMEL_HLCDC_LAYER_CHER 0x0 |
---|
44 | 19 | #define ATMEL_HLCDC_LAYER_CHDR 0x4 |
---|
.. | .. |
---|
328 | 303 | * @max_hpw: maximum horizontal back/front porch width |
---|
329 | 304 | * @conflicting_output_formats: true if RGBXXX output formats conflict with |
---|
330 | 305 | * each other. |
---|
| 306 | + * @fixed_clksrc: true if clock source is fixed |
---|
331 | 307 | * @layers: a layer description table describing available layers |
---|
332 | 308 | * @nlayers: layer description table size |
---|
333 | 309 | */ |
---|
.. | .. |
---|
340 | 316 | int max_vpw; |
---|
341 | 317 | int max_hpw; |
---|
342 | 318 | bool conflicting_output_formats; |
---|
| 319 | + bool fixed_clksrc; |
---|
343 | 320 | const struct atmel_hlcdc_layer_desc *layers; |
---|
344 | 321 | int nlayers; |
---|
345 | 322 | }; |
---|
.. | .. |
---|
441 | 418 | int atmel_hlcdc_crtc_create(struct drm_device *dev); |
---|
442 | 419 | |
---|
443 | 420 | int atmel_hlcdc_create_outputs(struct drm_device *dev); |
---|
| 421 | +int atmel_hlcdc_encoder_get_bus_fmt(struct drm_encoder *encoder); |
---|
444 | 422 | |
---|
445 | 423 | #endif /* DRM_ATMEL_HLCDC_H */ |
---|