target: msm8226: add necessary delay before backlight on

SSD2080M needs delay between TG and backlight on, to make
sure screen content is updated to IC correctly. This helps
to address some unexpected artifacts during power on.

CRs-fixed: 569455
Change-Id: I275432089c5a92395e73fa025293b9f225dc5d46
diff --git a/target/msm8226/oem_panel.c b/target/msm8226/oem_panel.c
index a0fcc41..f23aded 100755
--- a/target/msm8226/oem_panel.c
+++ b/target/msm8226/oem_panel.c
@@ -51,6 +51,8 @@
 
 #define DISPLAY_MAX_PANEL_DETECTION 2
 
+#define SSD2080M_720P_VIDEO_PANEL_ON_DELAY 200
+
 /*---------------------------------------------------------------------------*/
 /* static panel selection variable                                           */
 /*---------------------------------------------------------------------------*/
@@ -99,11 +101,14 @@
 	return ret;
 }
 
-
 int oem_panel_on()
 {
 	/* OEM can keep there panel spefic on instructions in this
 	function */
+	if (panel_id == SSD2080M_720P_VIDEO_PANEL) {
+		/* SSD2080M needs extra delay to avoid unexpected artifacts */
+		mdelay(SSD2080M_720P_VIDEO_PANEL_ON_DELAY);
+	}
 	return NO_ERROR;
 }