target: msm8916: add necessary delay before backlight on

otm8019A video mode panel 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: 662657
Change-Id: I487c3b961c1412f8c3ce9d8a171cd08fa6d1bc58
diff --git a/target/msm8916/oem_panel.c b/target/msm8916/oem_panel.c
index e072754..ca92840 100644
--- a/target/msm8916/oem_panel.c
+++ b/target/msm8916/oem_panel.c
@@ -48,6 +48,7 @@
 #include "include/panel_otm8019a_fwvga_video.h"
 
 #define DISPLAY_MAX_PANEL_DETECTION 2
+#define OTM8019A_FWVGA_VIDEO_PANEL_ON_DELAY 50
 
 /*---------------------------------------------------------------------------*/
 /* static panel selection variable                                           */
@@ -84,6 +85,15 @@
 
 int oem_panel_on()
 {
+	/*
+	 *OEM can keep there panel specific on instructions in this
+	 *function
+	 */
+	if (panel_id == OTM8019A_FWVGA_VIDEO_PANEL) {
+		/* needs extra delay to avoid unexpected artifacts */
+		mdelay(OTM8019A_FWVGA_VIDEO_PANEL_ON_DELAY);
+	}
+
 	return NO_ERROR;
 }