clk: qcom: branch: Add mem ops support for branch2 clocks
authorTaniya Das <quic_tdas@quicinc.com>
Thu, 23 Nov 2023 06:47:33 +0000 (12:17 +0530)
committerBjorn Andersson <andersson@kernel.org>
Thu, 7 Dec 2023 16:47:05 +0000 (08:47 -0800)
commit261625e0baa18405b057a6b3b20f839617110393
tree1567b0e732603fe797bd9c1e24770e3c010b2dfa
parentcdf1c63d23721fb2ff47e5190d0f46fbae1586f6
clk: qcom: branch: Add mem ops support for branch2 clocks

Add the support for mem ops implementation to handle the sequence of
enable/disable of the memories in ethernet PHY, prior to enable/disable
of the respective clocks, which helps retain the respecive block's
register contents.

Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Signed-off-by: Imran Shaik <quic_imrashai@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20231123064735.2979802-3-quic_imrashai@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/clk-branch.c
drivers/clk/qcom/clk-branch.h