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 3a3b9b7..989b7ab 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 ba2ce5e..a1f0e64 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 {