blob: cad5f861cb857ed91af00f5304c5ec7b9e73440b [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;
15 int (*detect)(struct display_info_t const *dev);
16 void (*enable)(struct display_info_t const *dev);
17 struct fb_videomode mode;
18};
19
Eric Benardad0f1d52014-04-04 19:05:56 +020020#ifdef CONFIG_IMX_HDMI
21extern int detect_hdmi(struct display_info_t const *dev);
22#endif
23
Eric Nelsonc4196e92014-09-30 15:40:04 -070024#ifdef CONFIG_IMX_VIDEO_SKIP
25extern struct display_info_t const displays[];
26extern size_t display_count;
27#endif
28
Heiko Schocher27298832015-04-20 07:53:48 +020029int ipu_set_ldb_clock(int rate);
Eric Benard4c94fa12014-04-04 19:05:52 +020030#endif