Skip to content

Commit 165d0b6

Browse files
taniyadas20andersson
authored andcommitted
clk: qcom: clk_mem_branch: add enable mask and invert flags
Introduce mem_enable_mask and mem_enable_invert in clk_mem_branch to describe memory gating implementations that use a separate mask and/or inverted enable logic. This documents hardware behavior in data instead of code and will be used by upcoming platform descriptions. Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/r/20251118-sm8750-videocc-v2-v4-1-049882a70c9f@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 0a0ea55 commit 165d0b6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/clk/qcom/clk-branch.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ struct clk_branch {
4444
* @mem_enable_reg: branch clock memory gating register
4545
* @mem_ack_reg: branch clock memory ack register
4646
* @mem_enable_ack_mask: branch clock memory enable and ack field in @mem_ack_reg
47+
* @mem_enable_mask: branch clock memory enable mask
48+
* @mem_enable_invert: branch clock memory enable and disable has invert logic
4749
* @branch: branch clock gating handle
4850
*
4951
* Clock which can gate its memories.
@@ -52,6 +54,8 @@ struct clk_mem_branch {
5254
u32 mem_enable_reg;
5355
u32 mem_ack_reg;
5456
u32 mem_enable_ack_mask;
57+
u32 mem_enable_mask;
58+
bool mem_enable_invert;
5559
struct clk_branch branch;
5660
};
5761

0 commit comments

Comments
 (0)