1 #ifndef __cat66121_HDMI_H__
2 #define __cat66121_HDMI_H__
3 #include "../../rk_hdmi.h"
5 #if defined(CONFIG_HDMI_SOURCE_LCDC1)
6 #define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC1
8 #define HDMI_SOURCE_DEFAULT HDMI_SOURCE_LCDC0
12 struct cat66121_hdmi_pdata {
14 struct i2c_client *client;
15 struct delayed_work delay_work;
16 struct workqueue_struct *workqueue;
20 extern struct cat66121_hdmi_pdata *cat66121_hdmi;
22 extern int cat66121_detect_device(void);
23 extern int cat66121_hdmi_sys_init(struct hdmi *hdmi_drv);
24 extern void cat66121_hdmi_interrupt(struct hdmi *hdmi_drv);
25 extern int cat66121_hdmi_sys_detect_hpd(struct hdmi *hdmi_drv);
26 extern int cat66121_hdmi_sys_insert(struct hdmi *hdmi_drv);
27 extern int cat66121_hdmi_sys_remove(struct hdmi *hdmi_drv);
28 extern int cat66121_hdmi_sys_read_edid(struct hdmi *hdmi_drv, int block, unsigned char *buff);
29 extern int cat66121_hdmi_sys_config_video(struct hdmi *hdmi_drv, struct hdmi_video_para *vpara);
30 extern int cat66121_hdmi_sys_config_audio(struct hdmi *hdmi_drv,struct hdmi_audio *audio);
31 extern void cat66121_hdmi_sys_enalbe_output(struct hdmi *hdmi_drv, int enable);
32 extern int cat66121_hdmi_register_hdcp_callbacks(void (*hdcp_cb)(void),
33 void (*hdcp_irq_cb)(int status),
34 int (*hdcp_power_on_cb)(void),
35 void (*hdcp_power_off_cb)(void));