]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: dw_hdmi: Add read_hpd hook
authorJagan Teki <jagan@edgeble.ai>
Wed, 17 Jan 2024 07:51:41 +0000 (13:21 +0530)
committerAnatolij Gustschin <agust@denx.de>
Sun, 21 Apr 2024 07:07:00 +0000 (09:07 +0200)
Add support for DW HDMI Read HPD status.

Signed-off-by: Jagan Teki <jagan@edgeble.ai>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/video/dw_hdmi.c
include/dw_hdmi.h

index 3a3b9b7a21d2935e8c779974d7040f6df134e7a4..989b7ab2db16efdddd8620f4be2553ad85d4a657 100644 (file)
@@ -946,6 +946,9 @@ int dw_hdmi_detect_hpd(struct dw_hdmi *hdmi)
                return -ENODEV;
        }
 
+       if (hdmi->ops && hdmi->ops->read_hpd)
+               hdmi->ops->read_hpd(hdmi, true);
+
        return 0;
 }
 
index ba2ce5ea7fe05d19458731460c067bdfe2d7f656..a1f0e64507d07e6f9d01b76d3fb049a875f90a17 100644 (file)
@@ -538,6 +538,7 @@ struct dw_hdmi;
 
 struct dw_hdmi_phy_ops {
        int (*phy_set)(struct dw_hdmi *hdmi, uint mpixelclock);
+       void (*read_hpd)(struct dw_hdmi *hdmi, bool hdp_status);
 };
 
 struct dw_hdmi {