]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: dw_hdmi: Add setup_hpd hook
authorJagan Teki <jagan@edgeble.ai>
Wed, 17 Jan 2024 07:51:42 +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 Setup 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 989b7ab2db16efdddd8620f4be2553ad85d4a657..ab4811cfc769a960d6f036d78b2409c46f708e5f 100644 (file)
@@ -1061,4 +1061,7 @@ void dw_hdmi_init(struct dw_hdmi *hdmi)
 
        /* enable i2c client nack % arbitration error irq */
        hdmi_write(hdmi, ~0x44, HDMI_I2CM_CTLINT);
+
+       if (hdmi->ops && hdmi->ops->setup_hpd)
+               hdmi->ops->setup_hpd(hdmi);
 }
index a1f0e64507d07e6f9d01b76d3fb049a875f90a17..f4d66edaceeec1035faefc2bf58c3cab1c893364 100644 (file)
@@ -539,6 +539,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);
+       void (*setup_hpd)(struct dw_hdmi *hdmi);
 };
 
 struct dw_hdmi {