Eric Benard | 4c94fa1 | 2014-04-04 19:05:52 +0200 | [diff] [blame] | 1 | /* |
| 2 | * SPDX-License-Identifier: GPL-2.0+ |
| 3 | */ |
| 4 | |
| 5 | #ifndef __IMX_VIDEO_H_ |
| 6 | #define __IMX_VIDEO_H_ |
| 7 | |
| 8 | #include <linux/fb.h> |
| 9 | #include <ipu_pixfmt.h> |
| 10 | |
| 11 | struct display_info_t { |
| 12 | int bus; |
| 13 | int addr; |
| 14 | int pixfmt; |
Max Krummenacher | 27c01b9 | 2016-11-01 15:04:21 +0100 | [diff] [blame] | 15 | int di; |
Eric Benard | 4c94fa1 | 2014-04-04 19:05:52 +0200 | [diff] [blame] | 16 | int (*detect)(struct display_info_t const *dev); |
| 17 | void (*enable)(struct display_info_t const *dev); |
| 18 | struct fb_videomode mode; |
| 19 | }; |
| 20 | |
Eric Benard | ad0f1d5 | 2014-04-04 19:05:56 +0200 | [diff] [blame] | 21 | #ifdef CONFIG_IMX_HDMI |
| 22 | extern int detect_hdmi(struct display_info_t const *dev); |
| 23 | #endif |
| 24 | |
Eric Nelson | c4196e9 | 2014-09-30 15:40:04 -0700 | [diff] [blame] | 25 | #ifdef CONFIG_IMX_VIDEO_SKIP |
| 26 | extern struct display_info_t const displays[]; |
| 27 | extern size_t display_count; |
| 28 | #endif |
| 29 | |
Heiko Schocher | 2729883 | 2015-04-20 07:53:48 +0200 | [diff] [blame] | 30 | int ipu_set_ldb_clock(int rate); |
Eric Benard | 4c94fa1 | 2014-04-04 19:05:52 +0200 | [diff] [blame] | 31 | #endif |