diff options
| author | Amit Nischal <anischal@codeaurora.org> | 2016-11-17 15:17:05 +0530 |
|---|---|---|
| committer | Amit Nischal <anischal@codeaurora.org> | 2016-11-21 09:50:23 +0530 |
| commit | 9fdf09f78d917ed42c7a8474ec19b32afee1d2c9 (patch) | |
| tree | c1d12d88e9e9df695ccb6bb77c2392304c0499d0 | |
| parent | a0b8ac8a2886e16a4faf1b34decf434f5521419d (diff) | |
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>
| -rw-r--r-- | drivers/clk/qcom/clk-branch.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clk-branch.c b/drivers/clk/qcom/clk-branch.c index 6a975052cc85..ec3d02e8dcb1 100644 --- a/drivers/clk/qcom/clk-branch.c +++ b/drivers/clk/qcom/clk-branch.c @@ -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); |
