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: Amit Nischal <anischal@codeaurora.org>
This commit is contained in:
parent
a0b8ac8a28
commit
9fdf09f78d
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue