summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaoming Zhou <zhoux@codeaurora.org>2013-06-07 17:39:52 -0400
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:18:08 -0700
commitdcd44b97ca8ace2d9a53d197ceb51f080cb9f8f9 (patch)
tree033c089d0ae16e388047de801142490b0469cc0f
parentdee3ea98fc82cac4e6602ea9856f43fb62872de4 (diff)
msm: mdss: turn off DSI PHY DCDC regulator on 8x10
DSI PHY includes 3 macros: PHY, PLL and DCDC regulator. Make sure DCDC regulator is turned off to avoid current leakage. Change-Id: I544f4537b42254a941adc3b76c02489f6d2751e6 Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/dsi_io_v2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/dsi_io_v2.c b/drivers/video/fbdev/msm/dsi_io_v2.c
index cbdd241723f1..273fb543a7c5 100644
--- a/drivers/video/fbdev/msm/dsi_io_v2.c
+++ b/drivers/video/fbdev/msm/dsi_io_v2.c
@@ -437,5 +437,9 @@ void msm_dsi_phy_sw_reset(unsigned char *ctrl_base)
void msm_dsi_phy_off(unsigned char *ctrl_base)
{
+ MIPI_OUTP(ctrl_base + DSI_DSIPHY_PLL_CTRL_5, 0x05f);
+ MIPI_OUTP(ctrl_base + DSI_DSIPHY_REGULATOR_CTRL_0, 0x02);
MIPI_OUTP(ctrl_base + DSI_DSIPHY_CTRL_0, 0x00);
+ MIPI_OUTP(ctrl_base + DSI_DSIPHY_CTRL_1, 0x7f);
+ MIPI_OUTP(ctrl_base + DSI_CLK_CTRL, 0);
}