Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74890d8c authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru
Browse files

msm: mdss: update the power down sequence for DSI 12nm PHY



Update the DSI 12nm PHY power down sequence as per the latest
recommendation of h/w team to reduce the sleep current by
asserting the async reset.

Change-Id: Ia19068d692fd938d3817beca5016485f45ac8022
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent d5546ff2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -685,6 +685,7 @@ void mdss_dsi_set_reg(struct mdss_dsi_ctrl_pdata *ctrl, int off,
	u32 mask, u32 val);
int mdss_dsi_phy_pll_reset_status(struct mdss_dsi_ctrl_pdata *ctrl);
int mdss_dsi_panel_power_ctrl(struct mdss_panel_data *pdata, int power_state);
void mdss_dsi_ctrl_phy_reset(struct mdss_dsi_ctrl_pdata *ctrl);

void mdss_dsi_debug_bus_init(struct mdss_dsi_data *sdata);

+1 −0
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ int mdss_dsi_12nm_phy_shutdown(struct mdss_dsi_ctrl_pdata *ctrl)
{
	DSI_PHY_W32(ctrl->phy_io.base, SYS_CTRL, BIT(0) | BIT(3));
	wmb(); /* make sure DSI PHY is disabled */
	mdss_dsi_ctrl_phy_reset(ctrl);
	return 0;
}

+1 −1
Original line number Diff line number Diff line
@@ -417,7 +417,7 @@ void mdss_dsi_dfps_config_8996(struct mdss_dsi_ctrl_pdata *ctrl)
	wmb(); /* make sure phy timings are updated*/
}

static void mdss_dsi_ctrl_phy_reset(struct mdss_dsi_ctrl_pdata *ctrl)
void mdss_dsi_ctrl_phy_reset(struct mdss_dsi_ctrl_pdata *ctrl)
{
	/* start phy sw reset */
	MIPI_OUTP(ctrl->ctrl_base + 0x12c, 0x0001);