[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/mddi.c b/platform/msm_shared/mddi.c
index 2b26e1c..b8a519b 100644
--- a/platform/msm_shared/mddi.c
+++ b/platform/msm_shared/mddi.c
@@ -248,7 +248,7 @@
/* needs to settle for 5uS */
if (readl(MDDI_PAD_CTL) == 0) {
writel(0x08000, MDDI_PAD_CTL);
- thread_sleep(1);//udelay(5);
+ udelay(5);
}
writel(0xA850F, MDDI_PAD_CTL);
@@ -285,8 +285,6 @@
fb_cfg.stride = fb_cfg.width;
fb_cfg.height = client_caps.bitmap_height;
- printcaps(&client_caps);
-
panel_init(&client_caps);
panel_backlight(0);