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

Commit 74b71cfe authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: clock-gcc-8974: Zero out CDIV bits in the top level debug mux"

parents 4e001b36 f9f33ec1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2241,6 +2241,13 @@ struct measure_clk_data debug_mux_priv = {

static int gcc_set_mux_sel(struct mux_clk *clk, int sel)
{
	u32 regval;

	/* Zero out CDIV bits in top level debug mux register */
	regval = readl_relaxed(GCC_REG_BASE(GCC_DEBUG_CLK_CTL_REG));
	regval &= ~BM(15, 12);
	writel_relaxed(regval, GCC_REG_BASE(GCC_DEBUG_CLK_CTL_REG));

	/*
	 * RPM clocks use the same GCC debug mux. Don't reprogram
	 * the mux (selection) register.