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: 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>

authored by

Taniya Das and committed by
Bjorn Andersson
165d0b6d 0a0ea554

+4
+4
drivers/clk/qcom/clk-branch.h
··· 44 44 * @mem_enable_reg: branch clock memory gating register 45 45 * @mem_ack_reg: branch clock memory ack register 46 46 * @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 47 49 * @branch: branch clock gating handle 48 50 * 49 51 * Clock which can gate its memories. ··· 54 52 u32 mem_enable_reg; 55 53 u32 mem_ack_reg; 56 54 u32 mem_enable_ack_mask; 55 + u32 mem_enable_mask; 56 + bool mem_enable_invert; 57 57 struct clk_branch branch; 58 58 }; 59 59