2014-04-04 17:05:52 +00:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __IMX_VIDEO_H_
|
|
|
|
#define __IMX_VIDEO_H_
|
|
|
|
|
|
|
|
#include <linux/fb.h>
|
|
|
|
#include <ipu_pixfmt.h>
|
|
|
|
|
|
|
|
struct display_info_t {
|
|
|
|
int bus;
|
|
|
|
int addr;
|
|
|
|
int pixfmt;
|
|
|
|
int (*detect)(struct display_info_t const *dev);
|
|
|
|
void (*enable)(struct display_info_t const *dev);
|
|
|
|
struct fb_videomode mode;
|
|
|
|
};
|
|
|
|
|
2014-04-04 17:05:56 +00:00
|
|
|
#ifdef CONFIG_IMX_HDMI
|
|
|
|
extern int detect_hdmi(struct display_info_t const *dev);
|
|
|
|
#endif
|
|
|
|
|
2014-09-30 22:40:04 +00:00
|
|
|
#ifdef CONFIG_IMX_VIDEO_SKIP
|
|
|
|
extern struct display_info_t const displays[];
|
|
|
|
extern size_t display_count;
|
|
|
|
#endif
|
|
|
|
|
2015-04-20 05:53:48 +00:00
|
|
|
int ipu_set_ldb_clock(int rate);
|
2014-04-04 17:05:52 +00:00
|
|
|
#endif
|