summaryrefslogtreecommitdiff
path: root/arch/arm/imx-common/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/imx-common/video.c')
-rw-r--r--arch/arm/imx-common/video.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/imx-common/video.c b/arch/arm/imx-common/video.c
index 098239a..0121cd7 100644
--- a/arch/arm/imx-common/video.c
+++ b/arch/arm/imx-common/video.c
@@ -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