SPDX: Convert all of our single license tags to Linux Kernel style
[platform/kernel/u-boot.git] / arch / arm / include / asm / mach-imx / video.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2
3 #ifndef __IMX_VIDEO_H_
4 #define __IMX_VIDEO_H_
5
6 #include <linux/fb.h>
7 #include <ipu_pixfmt.h>
8
9 struct display_info_t {
10         int     bus;
11         int     addr;
12         int     pixfmt;
13         int     di;
14         int     (*detect)(struct display_info_t const *dev);
15         void    (*enable)(struct display_info_t const *dev);
16         struct  fb_videomode mode;
17 };
18
19 #ifdef CONFIG_IMX_HDMI
20 extern int detect_hdmi(struct display_info_t const *dev);
21 #endif
22
23 #ifdef CONFIG_IMX_VIDEO_SKIP
24 extern struct display_info_t const displays[];
25 extern size_t display_count;
26 #endif
27
28 int ipu_set_ldb_clock(int rate);
29 #endif