platform: msm_shared: Add function to turn off hdmi display
Add function to turn off the hdmi display when booting into
the kernel.
Change-Id: Icb028a3b118b26868b2afbc4800488f105ef8835
diff --git a/platform/msm_shared/mdp5.c b/platform/msm_shared/mdp5.c
index 461cb9e..a5db243 100755
--- a/platform/msm_shared/mdp5.c
+++ b/platform/msm_shared/mdp5.c
@@ -1370,6 +1370,21 @@
return NO_ERROR;
}
+int mdss_hdmi_off(struct msm_panel_info *pinfo)
+{
+ if(!target_cont_splash_screen())
+ {
+ writel(0x00000000, MDP_INTF_3_TIMING_ENGINE_EN + mdss_mdp_intf_offset());
+ mdelay(60);
+ /* Underrun(Interface 0/1/2/3) VSYNC Interrupt Enable */
+ writel(0xFF777713, MDP_INTR_CLEAR);
+ }
+
+ writel(0x00000000, MDP_INTR_EN);
+
+ return NO_ERROR;
+}
+
int mdp_edp_off(void)
{
if (!target_cont_splash_screen()) {