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

Commit 6272c9c0 authored by Raviteja Tamatam's avatar Raviteja Tamatam Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: fix split sel configuration in the interface



INTF_MUX also configures split sel apart from choosing
ping pong blocks, retain its default configuration.

Change-Id: I01c30c5f3ce8afde9644ac409dc67a6105552aef
Signed-off-by: default avatarRaviteja Tamatam <travitej@codeaurora.org>
parent 61240ba4
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -353,14 +353,20 @@ static void sde_hw_intf_bind_pingpong_blk(
		const enum sde_pingpong pp)
{
	struct sde_hw_blk_reg_map *c;
	int mux_cfg = 0xF;
	u32 mux_cfg;

	if (!intf)
		return;

	c = &intf->hw;

	mux_cfg = SDE_REG_READ(c, INTF_MUX);
	mux_cfg &= ~0xf;

	if (enable)
		mux_cfg = (pp - PINGPONG_0) & 0x7;
		mux_cfg |= (pp - PINGPONG_0) & 0x7;
	else
		mux_cfg |= 0xf;

	SDE_REG_WRITE(c, INTF_MUX, mux_cfg);
}