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

Commit 9fdf09f7 authored by Amit Nischal's avatar Amit Nischal
Browse files

clk: qcom: Add set_flags ops for the clk_gate2_ops



Gate clocks would also require to set the flags using
clk_set_flags. Add the clk_ops for the same.

Change-Id: I9d180e4aedb17692eb2e48f98461239d29bbf975
Signed-off-by: default avatarAmit Nischal <anischal@codeaurora.org>
parent a0b8ac8a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -286,11 +286,20 @@ static void clk_gate2_list_registers(struct seq_file *f, struct clk_hw *hw)
	}
}

static int clk_gate2_set_flags(struct clk_hw *hw, unsigned flags)
{
	struct clk_gate2 *gt = to_clk_gate2(hw);

	return clk_cbcr_set_flags(gt->clkr.regmap, gt->clkr.enable_reg,
					flags);
}

const struct clk_ops clk_gate2_ops = {
	.enable = clk_gate2_enable,
	.disable = clk_gate2_disable,
	.is_enabled = clk_is_enabled_regmap,
	.list_registers = clk_gate2_list_registers,
	.set_flags = clk_gate2_set_flags,
};
EXPORT_SYMBOL_GPL(clk_gate2_ops);