clk: qcom: rcg2: Make hw_clk_ctrl toggleable
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Wed, 17 May 2023 16:40:39 +0000 (18:40 +0200)
committerBjorn Andersson <andersson@kernel.org>
Sat, 27 May 2023 01:22:58 +0000 (18:22 -0700)
commita0e0ec7424c99a0459b44fbf0459de9728be37ab
tree711117c831d2621c6e94d7946c079ac600a7f75b
parent6de1bd74050d8ff0b40a48fec810d38cafa80772
clk: qcom: rcg2: Make hw_clk_ctrl toggleable

Certain SoCs use the HW_CLK_CTRL feature on some of the clocks they
host. This allows the clocks to be turned on automatically when a
downstream branch tries to change rate or config.

Make it togglable so that we can utilize this.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230517-topic-waipio-gpucc-v1-2-4f40e282af1d@linaro.org
drivers/clk/qcom/clk-rcg.h
drivers/clk/qcom/clk-rcg2.c