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

Commit a04a5260 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru Committed by Nirmal Abraham
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 484764cb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -714,6 +714,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_check_panel_status(struct mdss_dsi_ctrl_pdata *ctrl, void *arg);
void mdss_dsi_ctrl_phy_reset(struct mdss_dsi_ctrl_pdata *ctrl);

void mdss_dsi_debug_bus_init(struct mdss_dsi_data *sdata);
int mdss_dsi_get_dt_vreg_data(struct device *dev,
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2018, 2020, The Linux Foundation. All rights reserved. */
/* Copyright (c) 2018, 2020-2021, The Linux Foundation. All rights reserved. */

#include <linux/iopoll.h>
#include "mdss_dsi_phy.h"
@@ -94,6 +94,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
@@ -433,7 +433,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);