blob: 941a031964c18d7bbd1614f613f1e70fccffbcdd [file] [log] [blame]
Eric Benard4c94fa12014-04-04 19:05:52 +02001/*
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
11struct display_info_t {
12 int bus;
13 int addr;
14 int pixfmt;
Max Krummenacher27c01b92016-11-01 15:04:21 +010015 int di;
Eric Benard4c94fa12014-04-04 19:05:52 +020016 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 Benardad0f1d52014-04-04 19:05:56 +020021#ifdef CONFIG_IMX_HDMI
22extern int detect_hdmi(struct display_info_t const *dev);
23#endif
24
Eric Nelsonc4196e92014-09-30 15:40:04 -070025#ifdef CONFIG_IMX_VIDEO_SKIP
26extern struct display_info_t const displays[];
27extern size_t display_count;
28#endif
29
Heiko Schocher27298832015-04-20 07:53:48 +020030int ipu_set_ldb_clock(int rate);
Eric Benard4c94fa12014-04-04 19:05:52 +020031#endif