]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
OMAPDSS: HDMI: Add delay to wait for 5V power
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Apr 2012 11:58:41 +0000 (14:58 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 7 Sep 2012 17:02:03 +0000 (20:02 +0300)
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 <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/hdmi.c

index 4fbe27191de5ba8214ea676fae00cd2f9371d3eb..96a6e298873ba195affb5b344eb0ee1007d981de 100644 (file)
@@ -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;