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

Commit 9ba1f2a5 authored by Shefali Jain's avatar Shefali Jain
Browse files

clk: qcom: clock-alpha-pll: Add support for sleep enabled pll



Add new clock ops to be used by sleep enabled PLLs. It will clear the sleep
enable bit for the pll on enable and assert the sleep enable bit on
disable, when the regmap flag enable_is_inverted is set from the PLLs.

Change-Id: Iae68fb7e7e62230d029a16c32ef6b0530333ad6c
Signed-off-by: default avatarShefali Jain <shefjain@codeaurora.org>
parent be49c613
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1249,6 +1249,13 @@ static void clk_regera_pll_list_registers(struct seq_file *f, struct clk_hw *hw)
							&pll_vote_reg);
}

const struct clk_ops clk_pll_sleep_vote_ops = {
	.enable = clk_enable_regmap,
	.disable = clk_disable_regmap,
	.list_registers = clk_alpha_pll_list_registers,
};
EXPORT_SYMBOL(clk_pll_sleep_vote_ops);

const struct clk_ops clk_alpha_pll_ops = {
	.enable = clk_alpha_pll_enable,
	.disable = clk_alpha_pll_disable,
+1 −0
Original line number Diff line number Diff line
@@ -134,6 +134,7 @@ extern const struct clk_ops clk_trion_fixed_pll_ops;
extern const struct clk_ops clk_trion_pll_postdiv_ops;
extern const struct clk_ops clk_regera_pll_ops;
extern const struct clk_ops clk_alpha_pll_slew_ops;
extern const struct clk_ops clk_pll_sleep_vote_ops;

void clk_alpha_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap,
			     const struct alpha_pll_config *config);