8960/mipi: Changing order of turning off display clocks
Warning appeared in dmesg in the kernel for clock_late_init
since clocks were left on during transition to kernel from lk.
Needed to turn off all branch clocks first then root and pll
phy last.
Change-Id: I21097014f4eb4a993774bb792e2580eb409dfb4d
CRs-Fixed: 301297
diff --git a/platform/msm_shared/mipi_dsi.c b/platform/msm_shared/mipi_dsi.c
index c22e9ee..80c47a9 100644
--- a/platform/msm_shared/mipi_dsi.c
+++ b/platform/msm_shared/mipi_dsi.c
@@ -666,16 +666,20 @@
mdp_shutdown();
writel(0x01010101, DSI_INT_CTRL);
writel(0x13FF3BFF, DSI_ERR_INT_MASK0);
- writel(0, DSIPHY_PLL_CTRL(0));
- writel(0, DSI_CLK_CTRL);
- writel(0, DSI_CTRL);
#if DISPLAY_MIPI_PANEL_TOSHIBA_MDT61
- writel(0x0, DSI_CC_REG);
+ /* Disable branch clocks */
+ writel(0x0, BYTE_CC_REG);
writel(0x0, PIXEL_CC_REG);
+ writel(0x0, ESC_CC_REG);
+ /* Disable root clock */
+ writel(0x0, DSI_CC_REG);
#elif (!DISPLAY_MIPI_PANEL_RENESAS)
secure_writel(0x0, DSI_CC_REG);
secure_writel(0x0, PIXEL_CC_REG);
#endif
+ writel(0, DSI_CLK_CTRL);
+ writel(0, DSI_CTRL);
+ writel(0, DSIPHY_PLL_CTRL(0));
}
struct fbcon_config *mipi_init(void)