Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Eric Benard | 4c94fa1 | 2014-04-04 19:05:52 +0200 | [diff] [blame] | 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; |
Max Krummenacher | 27c01b9 | 2016-11-01 15:04:21 +0100 | [diff] [blame] | 13 | int di; |
Eric Benard | 4c94fa1 | 2014-04-04 19:05:52 +0200 | [diff] [blame] | 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 | |
Eric Benard | ad0f1d5 | 2014-04-04 19:05:56 +0200 | [diff] [blame] | 19 | #ifdef CONFIG_IMX_HDMI |
| 20 | extern int detect_hdmi(struct display_info_t const *dev); |
| 21 | #endif |
| 22 | |
Eric Nelson | c4196e9 | 2014-09-30 15:40:04 -0700 | [diff] [blame] | 23 | #ifdef CONFIG_IMX_VIDEO_SKIP |
| 24 | extern struct display_info_t const displays[]; |
| 25 | extern size_t display_count; |
| 26 | #endif |
| 27 | |
Heiko Schocher | 2729883 | 2015-04-20 07:53:48 +0200 | [diff] [blame] | 28 | int ipu_set_ldb_clock(int rate); |
Anatolij Gustschin | 983e2f2a | 2019-03-18 23:29:31 +0100 | [diff] [blame] | 29 | int ipu_displays_init(void); |
Eric Benard | 4c94fa1 | 2014-04-04 19:05:52 +0200 | [diff] [blame] | 30 | #endif |