OSDN Git Service

clk: qcom: branch: Add AON clock ops
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 6 Mar 2019 17:47:57 +0000 (09:47 -0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 11 Apr 2019 20:34:21 +0000 (13:34 -0700)
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>
drivers/clk/qcom/clk-branch.c
drivers/clk/qcom/clk-branch.h

index 99446bf..f869fc6 100644 (file)
@@ -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,
index b3561e0..17a5811 100644 (file)
@@ -40,6 +40,7 @@ struct clk_branch {
 extern const struct clk_ops clk_branch_ops;
 extern const struct clk_ops clk_branch2_ops;
 extern const struct clk_ops clk_branch_simple_ops;
+extern const struct clk_ops clk_branch2_aon_ops;
 
 #define to_clk_branch(_hw) \
        container_of(to_clk_regmap(_hw), struct clk_branch, clkr)