From 79af3851da327e76be4f934bfb3724c2ade7d999 Mon Sep 17 00:00:00 2001 From: Sandor Yu Date: Thu, 27 Dec 2012 17:13:28 +0800 Subject: [PATCH] ENGR00238384 MX6x HDMI: Update HDMI setting when HDMI cable plugin Update HDMI setting when HDMI cable plugin, HDMI will catch capbility update with EDID data updated. Signed-off-by: Sandor Yu --- drivers/video/mxc_hdmi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/video/mxc_hdmi.c b/drivers/video/mxc_hdmi.c index 369e54f7d865..284c6e5e5a5e 100644 --- a/drivers/video/mxc_hdmi.c +++ b/drivers/video/mxc_hdmi.c @@ -186,6 +186,9 @@ static bool hdmi_inited; extern const struct fb_videomode mxc_cea_mode[64]; extern void mxc_hdmi_cec_handle(u16 cec_stat); + +static void mxc_hdmi_setup(struct mxc_hdmi *hdmi, unsigned long event); + #ifdef DEBUG static void dump_fb_videomode(struct fb_videomode *m) { @@ -1636,7 +1639,8 @@ static void mxc_hdmi_set_mode(struct mxc_hdmi *hdmi) "%s: Video mode same as previous\n", __func__); /* update fbi mode in case modelist is updated */ hdmi->fbi->mode = (struct fb_videomode *)mode; - mxc_hdmi_phy_init(hdmi); + /* update hdmi setting in case EDID data updated */ + mxc_hdmi_setup(hdmi, 0); } else { dev_dbg(&hdmi->pdev->dev, "%s: New video mode\n", __func__); mxc_hdmi_set_mode_to_vga_dvi(hdmi); -- 2.39.5