clk: qcom: gpucc-msm8998: Allow fabia gpupll0 rate setting
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Thu, 14 Jan 2021 22:10:59 +0000 (23:10 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sun, 14 Feb 2021 20:56:54 +0000 (12:56 -0800)
commit53748348a57ae67756e82292b50773d2f4479d28
treea3afc8c451ab82271c8a9d26d9b6ad8cddeea20d
parenta59c16c80bd791878cf81d1d5aae508eeb2e73f1
clk: qcom: gpucc-msm8998: Allow fabia gpupll0 rate setting

The GPU PLL0 is not a fixed PLL and the rate can be set on it:
this is necessary especially on boards which bootloader is setting
a very low rate on this PLL before booting Linux, which would be
unsuitable for postdividing to reach the maximum allowed Adreno GPU
frequency of 710MHz (or, actually, even 670MHz..) on this SoC.

To allow setting rates on the GPU PLL0, also define VCO boundaries
and set the CLK_SET_RATE_PARENT flag to the GPU PLL0 postdivider.

With this change, the Adreno GPU is now able to scale through all
the available frequencies.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Link: https://lore.kernel.org/r/20210114221059.483390-12-angelogioacchino.delregno@somainline.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gpucc-msm8998.c