diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2019-03-06 20:47:57 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-04-11 23:34:21 +0300 |
commit | 360fed42282e47dfc3c641c90070c556756d3565 (patch) | |
tree | 45cd6f92913fa908cf51efa81cd08cb2f5c74936 /drivers/clk/qcom/clk-branch.c | |
parent | 5f19c6e936f2300fa236773a4aef3b4ec8aaad7c (diff) | |
download | linux-360fed42282e47dfc3c641c90070c556756d3565.tar.xz |
clk: qcom: branch: Add AON clock ops
Some clocks can only be turned on by resetting the block containing
them, provide a clock type that allow us to reference these clocks and
have the client drivers enable and "disable" them.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/qcom/clk-branch.c')
-rw-r--r-- | drivers/clk/qcom/clk-branch.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clk-branch.c b/drivers/clk/qcom/clk-branch.c index 99446bf630aa..f869fc6aaed6 100644 --- a/drivers/clk/qcom/clk-branch.c +++ b/drivers/clk/qcom/clk-branch.c @@ -146,6 +146,12 @@ const struct clk_ops clk_branch2_ops = { }; EXPORT_SYMBOL_GPL(clk_branch2_ops); +const struct clk_ops clk_branch2_aon_ops = { + .enable = clk_branch2_enable, + .is_enabled = clk_is_enabled_regmap, +}; +EXPORT_SYMBOL_GPL(clk_branch2_aon_ops); + const struct clk_ops clk_branch_simple_ops = { .enable = clk_enable_regmap, .disable = clk_disable_regmap, |