summaryrefslogtreecommitdiff
path: root/drivers/clk/qcom/clk-branch.h
diff options
context:
space:
mode:
authorAmit Nischal <anischal@codeaurora.org>2018-04-30 21:50:09 +0530
committerStephen Boyd <sboyd@kernel.org>2018-05-08 11:22:55 -0700
commit7d99ced8f4c65267836db69ec0790e878ef11b3b (patch)
tree0f26d28cfd08ff283e332c6696ed22bf7bf34aeb /drivers/clk/qcom/clk-branch.h
parent88051f55de502811472fe25d4a710bc7e6e60fd1 (diff)
clk: qcom: Add support for BRANCH_HALT_SKIP flag for branch clocks
There could be few clocks where the clock status bit is not required to be polled as the clock on/off would be controlled by enabling/disabling external source. Add support for the same by introducing new flag named as 'BRANCH_HALT_SKIP'. Signed-off-by: Amit Nischal <anischal@codeaurora.org> [sboyd@kernel.org: Rename flag to BRANCH_HALT_SKIP] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/qcom/clk-branch.h')
-rw-r--r--drivers/clk/qcom/clk-branch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clk-branch.h b/drivers/clk/qcom/clk-branch.h
index 284df3f3c55f..1702efb1c511 100644
--- a/drivers/clk/qcom/clk-branch.h
+++ b/drivers/clk/qcom/clk-branch.h
@@ -42,6 +42,7 @@ struct clk_branch {
#define BRANCH_HALT_ENABLE 1 /* pol: 0 = halt */
#define BRANCH_HALT_ENABLE_VOTED (BRANCH_HALT_ENABLE | BRANCH_VOTED)
#define BRANCH_HALT_DELAY 2 /* No bit to check; just delay */
+#define BRANCH_HALT_SKIP 3 /* Don't check halt bit */
struct clk_regmap clkr;
};