blob: d1a14ad7d348256fd14a165b6cd692b3b8606983 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Eric Benard4c94fa12014-04-04 19:05:52 +02002
3#ifndef __IMX_VIDEO_H_
4#define __IMX_VIDEO_H_
5
6#include <linux/fb.h>
7#include <ipu_pixfmt.h>
8
9struct display_info_t {
10 int bus;
11 int addr;
12 int pixfmt;
Max Krummenacher27c01b92016-11-01 15:04:21 +010013 int di;
Eric Benard4c94fa12014-04-04 19:05:52 +020014 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 Benardad0f1d52014-04-04 19:05:56 +020019#ifdef CONFIG_IMX_HDMI
20extern int detect_hdmi(struct display_info_t const *dev);
21#endif
22
Eric Nelsonc4196e92014-09-30 15:40:04 -070023#ifdef CONFIG_IMX_VIDEO_SKIP
24extern struct display_info_t const displays[];
25extern size_t display_count;
26#endif
27
Heiko Schocher27298832015-04-20 07:53:48 +020028int ipu_set_ldb_clock(int rate);
Anatolij Gustschin983e2f2a2019-03-18 23:29:31 +010029int ipu_displays_init(void);
Eric Benard4c94fa12014-04-04 19:05:52 +020030#endif