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

Commit cbb8631f authored by Amit Nischal's avatar Amit Nischal
Browse files

clk: qcom: clk-regmap-mux-div: Add support for clk rate notifier



There could be a scenario for apcs clock rate change where there is a
requirement to register a clock rate change notifier callback function
so that before configuring apss PLL, RCG source will be switched to safe
source. Add support for the same by adding clock notifier clk_nb.

Change-Id: Icd93b10984d5bf40b57ebe3992ab8f6fa498f4d4
Signed-off-by: default avatarAmit Nischal <anischal@codeaurora.org>
parent ebc3319d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@
 *		on and runs at only one rate.
 * @parent_map:	pointer to parent_map struct
 * @clkr:	handle between common and hardware-specific interfaces
 * @clk_nb:	clock notifier registered for clock rate change
 */

struct clk_regmap_mux_div {
@@ -57,6 +58,7 @@ struct clk_regmap_mux_div {
	unsigned long			safe_freq;
	const struct parent_map		*parent_map;
	struct clk_regmap		clkr;
	struct notifier_block		clk_nb;
};

extern const struct clk_ops clk_regmap_mux_div_ops;