summaryrefslogtreecommitdiff
path: root/drivers/video/mxc_hdmi.c
diff options
context:
space:
mode:
authorZhang Xiaodong <B39117@freescale.com>2012-07-02 15:02:41 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:39:29 +0800
commit2600c7faa00f17bd5f08e9f45d8bc08774da0ac6 (patch)
tree0e33bb8a168f63c8dd0402fdb960cc9ed903c288 /drivers/video/mxc_hdmi.c
parent68be392433fd3db8c4d7fa0370b51346fe322728 (diff)
ENGR00215182-2 MXC HDMI CEC: Add basic support for HDMI CEC
- Add MXC HDMI CEC to kconfig and makefile under driver/mxc - Add initial mxc_hdmi-cec.c file to provide basic HDMI CEC functionality: - Basic HDMI CEC resource initilize functional - Support for sending and receiving CEC message via CEC line - Report HDMI cable status to CEC lib at userspace. Signed-off-by: Zhang Xiaodong <B39117@freescale.com>
Diffstat (limited to 'drivers/video/mxc_hdmi.c')
-rw-r--r--drivers/video/mxc_hdmi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/mxc_hdmi.c b/drivers/video/mxc_hdmi.c
index b096a881a7b2..317013149db0 100644
--- a/drivers/video/mxc_hdmi.c
+++ b/drivers/video/mxc_hdmi.c
@@ -185,7 +185,7 @@ struct i2c_client *hdmi_i2c;
static bool hdmi_inited;
extern const struct fb_videomode mxc_cea_mode[64];
-
+extern void mxc_hdmi_cec_handle(u16 cec_stat);
#ifdef DEBUG
static void dump_fb_videomode(struct fb_videomode *m)
{
@@ -1753,6 +1753,9 @@ static void hotplug_worker(struct work_struct *work)
sprintf(event_string, "EVENT=plugin");
kobject_uevent_env(&hdmi->pdev->dev.kobj, KOBJ_CHANGE, envp);
+#ifdef CONFIG_MXC_HDMI_CEC
+ mxc_hdmi_cec_handle(0x80);
+#endif
} else if (!(phy_int_pol & HDMI_PHY_HPD)) {
/* Plugout event */
@@ -1766,6 +1769,9 @@ static void hotplug_worker(struct work_struct *work)
sprintf(event_string, "EVENT=plugout");
kobject_uevent_env(&hdmi->pdev->dev.kobj, KOBJ_CHANGE, envp);
+#ifdef CONFIG_MXC_HDMI_CEC
+ mxc_hdmi_cec_handle(0x100);
+#endif
} else
dev_dbg(&hdmi->pdev->dev, "EVENT=none?\n");