From: Tomi Valkeinen Date: Thu, 26 Apr 2012 11:58:41 +0000 (+0300) Subject: OMAPDSS: HDMI: Add delay to wait for 5V power X-Git-Tag: firefly_0821_release~3680^2~1437^2^2~93^2~24 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a84b20654bb5711b45cf28bf5342143ce8652e72;p=firefly-linux-kernel-4.4.55.git OMAPDSS: HDMI: Add delay to wait for 5V power TPD12S015A spec says to wait 300us after setting CT_CP_HPD gpio for the 5V power output to reach 90% of the voltage. This patch adds the delay to the driver. Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index 4fbe27191de5..96a6e298873b 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c @@ -492,6 +492,9 @@ static int hdmi_power_on(struct omap_dss_device *dssdev) gpio_set_value(hdmi.ct_cp_hpd_gpio, 1); gpio_set_value(hdmi.ls_oe_gpio, 1); + /* wait 300us after CT_CP_HPD for the 5V power output to reach 90% */ + udelay(300); + r = hdmi_runtime_get(); if (r) goto err_runtime_get;