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

Commit 97c0e800 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 28c413ff 6272c9c0
Loading
Loading
Loading
Loading
+8 −2
Original line number Original line Diff line number Diff line
@@ -353,14 +353,20 @@ static void sde_hw_intf_bind_pingpong_blk(
		const enum sde_pingpong pp)
		const enum sde_pingpong pp)
{
{
	struct sde_hw_blk_reg_map *c;
	struct sde_hw_blk_reg_map *c;
	int mux_cfg = 0xF;
	u32 mux_cfg;


	if (!intf)
	if (!intf)
		return;
		return;


	c = &intf->hw;
	c = &intf->hw;

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

	if (enable)
	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);
	SDE_REG_WRITE(c, INTF_MUX, mux_cfg);
}
}