]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: rockchip: hdmi: Detect hpd after controller init
authorJagan Teki <jagan@edgeble.ai>
Wed, 17 Jan 2024 07:51:38 +0000 (13:21 +0530)
committerAnatolij Gustschin <agust@denx.de>
Sun, 21 Apr 2024 07:07:00 +0000 (09:07 +0200)
HDP is a hardware connector event, so detect the same once the
controller and attached PHY initialization are done.

Signed-off-by: Jagan Teki <jagan@edgeble.ai>
drivers/video/rockchip/rk_hdmi.c

index 044a29ee47a7798fc92dda2127709d0ca9a05827..9f907d9f01580e3c50e72a7499087c0b9207d0b7 100644 (file)
@@ -111,14 +111,14 @@ int rk_hdmi_probe(struct udevice *dev)
        struct dw_hdmi *hdmi = &priv->hdmi;
        int ret;
 
+       dw_hdmi_init(hdmi);
+       dw_hdmi_phy_init(hdmi);
+
        ret = dw_hdmi_phy_wait_for_hpd(hdmi);
        if (ret < 0) {
                debug("hdmi can not get hpd signal\n");
                return -1;
        }
 
-       dw_hdmi_init(hdmi);
-       dw_hdmi_phy_init(hdmi);
-
        return 0;
 }