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

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

Merge "clock-alpha-pll: Add support for alpha PLL without vco mode bits"

parents 5b431b31 421f60bd
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -216,10 +216,12 @@ static int alpha_pll_set_rate(struct clk *c, unsigned long rate)
	writel_relaxed(a_lower, A_REG(pll));
	writel_relaxed(a_upper, A_REG(pll) + 0x4);

	if (masks->vco_mask) {
		regval = readl_relaxed(VCO_REG(pll));
		regval &= ~(masks->vco_mask << masks->vco_shift);
		regval |= vco_val << masks->vco_shift;
		writel_relaxed(regval, VCO_REG(pll));
	}

	regval = readl_relaxed(ALPHA_EN_REG(pll));
	regval |= masks->alpha_en_mask;
@@ -312,4 +314,9 @@ struct clk_ops clk_ops_alpha_pll = {
	.handoff = alpha_pll_handoff,
};

struct clk_ops clk_ops_fixed_alpha_pll = {
	.enable = alpha_pll_enable,
	.disable = alpha_pll_disable,
	.handoff = alpha_pll_handoff,
};
+1 −0
Original line number Diff line number Diff line
@@ -56,3 +56,4 @@ static inline struct alpha_pll_clk *to_alpha_pll_clk(struct clk *c)
#endif

extern struct clk_ops clk_ops_alpha_pll;
extern struct clk_ops clk_ops_fixed_alpha_pll;