clk: qcom: branch: Add helper functions for setting retain bits
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Wed, 8 Feb 2023 09:13:31 +0000 (10:13 +0100)
committerBjorn Andersson <andersson@kernel.org>
Mon, 13 Mar 2023 19:59:44 +0000 (12:59 -0700)
commitb594e6f6605311785171b8d4600fe96e35625530
tree6bdbf27af6584a962c69b6bd0f186602d423dfb9
parentcb2e6471ac78c58b35593c801f2544b39bc753ce
clk: qcom: branch: Add helper functions for setting retain bits

Most Qualcomm branch clocks come with a pretty usual set of bits that
can enable memory retention by means of not turning off parts of the
memory logic. Add them to the common header file and introduce helper
functions for setting them instead of using magic writes.

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-2-konrad.dybcio@linaro.org
drivers/clk/qcom/clk-branch.h