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

Commit c5be8b74 authored by Vikram Mulukutla's avatar Vikram Mulukutla
Browse files

qcom: clock: Allow VDD handoff to be optional



Some dedicated power rails do not require a max
voltage vote during bootup, as the rail is completely
under Linux control and is not touched by the bootchain.
Allow clock drivers to skip handoff for the corresponding
VDD classes.

Change-Id: Ia7a7284bea6d10b1785b6710b22ff73b8a0bb23e
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent bacf292c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -673,6 +673,9 @@ static void vdd_class_init(struct clk_vdd_class *vdd)
	if (!vdd)
		return;

	if (vdd->skip_handoff)
		return;

	list_for_each_entry(v, &handoff_vdd_list, list) {
		if (v->vdd_class == vdd)
			return;
+2 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ static inline void clk_debug_print_hw(struct clk *clk, struct seq_file *f) {}
		regulator. Optional parameter.
 * @level_votes: array of votes for each level.
 * @num_levels: specifies the size of level_votes array.
 * @skip_handoff: do not vote for the max possible voltage during init
 * @cur_level: the currently set voltage level
 * @lock: lock to protect this struct
 */
@@ -84,6 +85,7 @@ struct clk_vdd_class {
	int *vdd_ua;
	int *level_votes;
	int num_levels;
	bool skip_handoff;
	unsigned long cur_level;
	struct mutex lock;
};