]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/imx-common/video.c
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'
[u-boot] / arch / arm / imx-common / video.c
index 098239a7165d9f568a52b52941353c752c5618b8..0121cd78f27694629b49f50890642a0500a3d27e 100644 (file)
@@ -53,3 +53,13 @@ int board_video_skip(void)
 
        return 0;
 }
+
+#ifdef CONFIG_IMX_HDMI
+#include <asm/arch/mxc_hdmi.h>
+#include <asm/io.h>
+int detect_hdmi(struct display_info_t const *dev)
+{
+       struct hdmi_regs *hdmi  = (struct hdmi_regs *)HDMI_ARB_BASE_ADDR;
+       return readb(&hdmi->phy_stat0) & HDMI_DVI_STAT;
+}
+#endif