clk: qcom: branch: Extend the invert logic for branch2 clocks
authorImran Shaik <quic_imrashai@quicinc.com>
Fri, 12 May 2023 12:23:43 +0000 (17:53 +0530)
committerBjorn Andersson <andersson@kernel.org>
Thu, 25 May 2023 04:47:17 +0000 (21:47 -0700)
commit9092d1083a6253757c7f9449340173443c81768c
tree3090419f961313acae68d3c871a0284e8e8da0a9
parent521302ca64f28161c12cb29949566a450d24a98f
clk: qcom: branch: Extend the invert logic for branch2 clocks

Add support to handle the invert logic for branch2 clocks.
Invert branch halt would indicate the clock ON when CLK_OFF
bit is '1' and OFF when CLK_OFF bit is '0'.

Signed-off-by: Imran Shaik <quic_imrashai@quicinc.com>
Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230512122347.1219-2-quic_tdas@quicinc.com
drivers/clk/qcom/clk-branch.c