clk: qcom: smd-rpm: Add a way to define bus clocks with rate and flags
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Mon, 31 Jul 2023 12:20:12 +0000 (14:20 +0200)
committerBjorn Andersson <andersson@kernel.org>
Fri, 18 Aug 2023 03:09:11 +0000 (20:09 -0700)
commit2db8dc7bf49cc0b04a99d9525d5d54312f431ce5
treefbbe74fb99fe3c264e0ef44e10cf853fb8e483dd
parenta7bea084fb0a30991951ec55c890a936fb41a044
clk: qcom: smd-rpm: Add a way to define bus clocks with rate and flags

Some clocks, at least PCNoC (a.k.a CNoC_PERIPH) need to be always on,
at least on the ACTIVE side, regardless of whether they're used for bus
scaling or not.

Introduce a new macro to preset non-INT_MAX rates and clk flags to make
it easy and work implicitly through the CCF.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230731-topic-pcnoc-v1-1-452dd36d11d7@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/clk-smd-rpm.c