msm_shared: edp continuous splash support

Add edp-aux channel with isr polling mechanism to support
edp link training. Dual pipes (rgb1 and rgb2) of mdp are used
to fetch splash frame. Mdp configuration are retained and
propagate to android kernel as continuous splash enabled.

CRs-Fixed: 492419
Change-Id: I8d7b63c7e24b42152259ca586e68ab7c6f27b36a
diff --git a/platform/msm_shared/mdp5.c b/platform/msm_shared/mdp5.c
index 1a190ab..314d19c 100644
--- a/platform/msm_shared/mdp5.c
+++ b/platform/msm_shared/mdp5.c
@@ -222,7 +222,7 @@
 		return ERR_INVALID_ARGS;
 
 	adjust_xres = pinfo->xres;
-	if (pinfo->lcdc.dual_pipe) {
+	if (pinfo->lcdc.split_display) {
 		adjust_xres /= 2;
 		if (intf_base == MDP_INTF_1_BASE) {
 			writel(BIT(8), MDP_TG_SINK);
@@ -329,8 +329,11 @@
 		writel(0x100, MDP_VP_0_MIXER_1_BASE + LAYER_3_BLEND_OP);
 		writel(0xFF, MDP_VP_0_MIXER_1_BASE + LAYER_3_BLEND0_FG_ALPHA);
 
-		/* Baselayer for layer mixer 0 */
-		writel(0x04000, MDP_CTL_1_BASE + CTL_LAYER_1);
+		/* Baselayer for layer mixer 1 */
+		if (pinfo->lcdc.split_display)
+			writel(0x04000, MDP_CTL_1_BASE + CTL_LAYER_1);
+		else
+			writel(0x01000, MDP_CTL_0_BASE + CTL_LAYER_1);
 	}
 }
 
@@ -390,10 +393,18 @@
 	writel(0x0E9, MDP_QOS_REMAPPER_CLASS_0);
 
 	mdss_rgb_pipe_config(fb, pinfo, MDP_VP_0_RGB_0_BASE);
+	if (pinfo->lcdc.dual_pipe)
+		mdss_rgb_pipe_config(fb, pinfo, MDP_VP_0_RGB_1_BASE);
+
 
 	mdss_layer_mixer_setup(fb, pinfo);
 
-	writel(0x1F10, MDP_CTL_0_BASE + CTL_TOP);
+
+	if (pinfo->lcdc.dual_pipe)
+		writel(0x181F10, MDP_CTL_0_BASE + CTL_TOP);
+	else
+		writel(0x1F10, MDP_CTL_0_BASE + CTL_TOP);
+
 	writel(0x9, MDP_DISP_INTF_SEL);
 	writel(0x1111, MDP_VIDEO_INTF_UNDERFLOW_CTL);
 	writel(0x01, MDP_UPPER_NEW_ROI_PRIOR_RO_START);
@@ -507,5 +518,7 @@
 		writel(0x00000000, MDP_INTR_EN);
 	}
 
+	writel(0x00000000, MDP_INTR_EN);
+
 	return NO_ERROR;
 }