msm8x25: Add support for continuous splash screen

 - Enable continuous splash screen
 - Enable one wire mode for back light
 - Add macro to allow display mode (command/video) configuration change
   during compile time.

Change-Id: I31e9fa9c0fe709b2a75bc2648dbd2d7f1be14776
diff --git a/platform/msm_shared/mdp3.c b/platform/msm_shared/mdp3.c
index 7f57661..9271de3 100644
--- a/platform/msm_shared/mdp3.c
+++ b/platform/msm_shared/mdp3.c
@@ -113,28 +113,33 @@
 
 void mdp_disable(void)
 {
-	writel(0x00000000, MDP_DSI_VIDEO_EN);
+	if (!target_cont_splash_screen())
+		writel(0x00000000, MDP_DSI_VIDEO_EN);
 }
 
 int mdp_dsi_video_off(void)
 {
-	mdp_disable();
-	mdelay(60);
-	writel(0x00000000, MDP_INTR_ENABLE);
-	writel(0x01ffffff, MDP_INTR_CLEAR);
+	if (!target_cont_splash_screen()) {
+		mdp_disable();
+		mdelay(60);
+		writel(0x00000000, MDP_INTR_ENABLE);
+		writel(0x01ffffff, MDP_INTR_CLEAR);
+	}
 	return NO_ERROR;
 }
 
 int mdp_dsi_cmd_off(void)
 {
-	mdp_dma_off();
-	/*
-	 * Allow sometime for the DMA channel to
-	 * stop the data transfer
-	 */
-	mdelay(10);
-	writel(0x00000000, MDP_INTR_ENABLE);
-	writel(0x01ffffff, MDP_INTR_CLEAR);
+	if (!target_cont_splash_screen()) {
+		mdp_dma_off();
+		/*
+		 * Allow sometime for the DMA channel to
+		 * stop the data transfer
+		 */
+		mdelay(10);
+		writel(0x00000000, MDP_INTR_ENABLE);
+		writel(0x01ffffff, MDP_INTR_CLEAR);
+	}
 	return NO_ERROR;
 }
 
@@ -170,7 +175,8 @@
 {
 	int ret = 0;
 
-	writel(0x00000000, MDP_DMA_P_START);
+	if (!target_cont_splash_screen())
+		writel(0x00000000, MDP_DMA_P_START);
 
 	return ret;
 }