diff options
author | Konrad Dybcio <konrad.dybcio@linaro.org> | 2023-02-08 10:13:33 +0100 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-03-13 20:59:44 +0100 |
commit | 5ab6561da990375b0a3cd54e12996498f6398a0f (patch) | |
tree | 1657030631ebc8d462dca926973c46c8d327eb89 /drivers/clk/qcom/clk-branch.h | |
parent | clk: qcom: branch: Add helper functions for setting SLEEP/WAKE bits (diff) | |
download | linux-5ab6561da990375b0a3cd54e12996498f6398a0f.tar.xz linux-5ab6561da990375b0a3cd54e12996498f6398a0f.zip |
clk: qcom: branch: Move CBCR bits definitions to the header file
Move the definitions of CBCR bits to the branch header file.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230208091340.124641-4-konrad.dybcio@linaro.org
Diffstat (limited to 'drivers/clk/qcom/clk-branch.h')
-rw-r--r-- | drivers/clk/qcom/clk-branch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clk-branch.h b/drivers/clk/qcom/clk-branch.h index b325f943c3e0..9bec563ab4ee 100644 --- a/drivers/clk/qcom/clk-branch.h +++ b/drivers/clk/qcom/clk-branch.h @@ -39,6 +39,10 @@ struct clk_branch { }; /* Branch clock common bits for HLOS-owned clocks */ +#define BRANCH_CLK_OFF BIT(31) +#define BRANCH_NOC_FSM_STATUS_SHIFT 28 +#define BRANCH_NOC_FSM_STATUS_MASK 0x7 +#define BRANCH_NOC_FSM_STATUS_ON (0x2 << BRANCH_NOC_FSM_STATUS_SHIFT) #define CBCR_FORCE_MEM_CORE_ON BIT(14) #define CBCR_FORCE_MEM_PERIPH_ON BIT(13) #define CBCR_FORCE_MEM_PERIPH_OFF BIT(12) |