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

Commit 68e83305 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru Committed by Nirmal Abraham
Browse files

msm: mdss: update the DSI 12nm PHY programming sequence



Add the programming of CLKLANE_EXITSTATE_TIM_CTRL register
to the DSI 12nm PHY programming sequence as per the updated
hardware programming guide.

Change-Id: I4a2d4699bc51be543f2c01f3fb5dd56010757e09
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent 484764cb
Loading
Loading
Loading
Loading
+4 −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"
@@ -15,6 +15,7 @@
#define HSTX_CLKLANE_REQSTATE_TIM_CTRL       0x180
#define HSTX_CLKLANE_HS0STATE_TIM_CTRL       0x188
#define HSTX_CLKLANE_TRALSTATE_TIM_CTRL      0x18c
#define HSTX_CLKLANE_EXITSTATE_TIM_CTRL      0x190
#define HSTX_CLKLANE_CLKPOSTSTATE_TIM_CTRL   0x194
#define HSTX_DATALANE_REQSTATE_TIM_CTRL      0x1c0
#define HSTX_DATALANE_HS0STATE_TIM_CTRL      0x1c8
@@ -60,6 +61,8 @@ int mdss_dsi_12nm_phy_config(struct mdss_dsi_ctrl_pdata *ctrl)
		(pd->timing_12nm[2] | BIT(6)));
	DSI_PHY_W32(ctrl->phy_io.base, HSTX_CLKLANE_REQSTATE_TIM_CTRL,
		pd->timing_12nm[3]);
	DSI_PHY_W32(ctrl->phy_io.base, HSTX_CLKLANE_EXITSTATE_TIM_CTRL,
		(pd->timing_12nm[7] | BIT(6) | BIT(7)));

	/* DSI PHY data lane timings */
	DSI_PHY_W32(ctrl->phy_io.base, HSTX_DATALANE_HS0STATE_TIM_CTRL,