Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Konrad Dybcio and committed by
Bjorn Andersson
5ab6561d 0932e565

+4 -5
-5
drivers/clk/qcom/clk-branch.c
··· 39 39 return !!val == !enabling; 40 40 } 41 41 42 - #define BRANCH_CLK_OFF BIT(31) 43 - #define BRANCH_NOC_FSM_STATUS_SHIFT 28 44 - #define BRANCH_NOC_FSM_STATUS_MASK 0x7 45 - #define BRANCH_NOC_FSM_STATUS_ON (0x2 << BRANCH_NOC_FSM_STATUS_SHIFT) 46 - 47 42 static bool clk_branch2_check_halt(const struct clk_branch *br, bool enabling) 48 43 { 49 44 u32 val;
+4
drivers/clk/qcom/clk-branch.h
··· 39 39 }; 40 40 41 41 /* Branch clock common bits for HLOS-owned clocks */ 42 + #define BRANCH_CLK_OFF BIT(31) 43 + #define BRANCH_NOC_FSM_STATUS_SHIFT 28 44 + #define BRANCH_NOC_FSM_STATUS_MASK 0x7 45 + #define BRANCH_NOC_FSM_STATUS_ON (0x2 << BRANCH_NOC_FSM_STATUS_SHIFT) 42 46 #define CBCR_FORCE_MEM_CORE_ON BIT(14) 43 47 #define CBCR_FORCE_MEM_PERIPH_ON BIT(13) 44 48 #define CBCR_FORCE_MEM_PERIPH_OFF BIT(12)