[platform]: Add code to optimize the mddi display intialization.

Add code to replace thread_sleep calls with mdelay functions to avoid
the context switch delays while initializing the mddi panel.

Change-Id: Ibf0686b0ab01bd41f40e049cdf9415e52f8a5cf1
diff --git a/platform/msm_shared/timer.c b/platform/msm_shared/timer.c
index 57cf854..5e3043a 100644
--- a/platform/msm_shared/timer.c
+++ b/platform/msm_shared/timer.c
@@ -184,3 +184,18 @@
   writel(0, GPT_ENABLE);
   writel(0, GPT_CLEAR);
 }
+
+void udelay(unsigned usecs)
+{
+    usecs = (usecs * 33 + 1000 - 33) / 1000;
+
+    writel(0, GPT_CLEAR);
+    writel(0, GPT_ENABLE);
+    while(readl(GPT_COUNT_VAL) != 0);
+
+    writel(GPT_ENABLE_EN, GPT_ENABLE);
+    while(readl(GPT_COUNT_VAL) < usecs);
+
+    writel(0, GPT_ENABLE);
+    writel(0, GPT_CLEAR);
+}