Commit 360fed42 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Stephen Boyd

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: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 5f19c6e9
...@@ -146,6 +146,12 @@ const struct clk_ops clk_branch2_ops = { ...@@ -146,6 +146,12 @@ const struct clk_ops clk_branch2_ops = {
}; };
EXPORT_SYMBOL_GPL(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 = { const struct clk_ops clk_branch_simple_ops = {
.enable = clk_enable_regmap, .enable = clk_enable_regmap,
.disable = clk_disable_regmap, .disable = clk_disable_regmap,
......
...@@ -40,6 +40,7 @@ struct clk_branch { ...@@ -40,6 +40,7 @@ struct clk_branch {
extern const struct clk_ops clk_branch_ops; extern const struct clk_ops clk_branch_ops;
extern const struct clk_ops clk_branch2_ops; extern const struct clk_ops clk_branch2_ops;
extern const struct clk_ops clk_branch_simple_ops; extern const struct clk_ops clk_branch_simple_ops;
extern const struct clk_ops clk_branch2_aon_ops;
#define to_clk_branch(_hw) \ #define to_clk_branch(_hw) \
container_of(to_clk_regmap(_hw), struct clk_branch, clkr) container_of(to_clk_regmap(_hw), struct clk_branch, clkr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment