Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: gcc-sm6115: Add missing PLL config properties

When the driver was ported upstream, PLL ctl register values were omitted.
Add them to ensure the PLLs are fully configured like we expect them to.

Fixes: cbe63bfdc54f ("clk: qcom: Add Global Clock controller (GCC) driver for SM6115")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Iskren Chernev <me@iskren.info>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230601-topic-alpha_ctl-v1-2-b6a932dfcf68@linaro.org

authored by

Konrad Dybcio and committed by
Bjorn Andersson
e88c533d 50162433

+8
+8
drivers/clk/qcom/gcc-sm6115.c
··· 119 119 .vco_mask = GENMASK(21, 20), 120 120 .main_output_mask = BIT(0), 121 121 .config_ctl_val = 0x4001055b, 122 + .test_ctl_hi1_val = 0x1, 123 + .test_ctl_hi_mask = 0x1, 122 124 }; 123 125 124 126 static struct clk_alpha_pll gpll10 = { ··· 172 170 .vco_val = 0x2 << 20, 173 171 .vco_mask = GENMASK(21, 20), 174 172 .config_ctl_val = 0x4001055b, 173 + .test_ctl_hi1_val = 0x1, 174 + .test_ctl_hi_mask = 0x1, 175 175 }; 176 176 177 177 static struct clk_alpha_pll gpll11 = { ··· 366 362 .post_div_val = 0x1 << 8, 367 363 .post_div_mask = GENMASK(11, 8), 368 364 .config_ctl_val = 0x4001055b, 365 + .test_ctl_hi1_val = 0x1, 366 + .test_ctl_hi_mask = 0x1, 369 367 }; 370 368 371 369 static struct clk_alpha_pll gpll8 = { ··· 419 413 .post_div_mask = GENMASK(9, 8), 420 414 .main_output_mask = BIT(0), 421 415 .config_ctl_val = 0x00004289, 416 + .test_ctl_mask = GENMASK(31, 0), 417 + .test_ctl_val = 0x08000000, 422 418 }; 423 419 424 420 static struct clk_alpha_pll gpll9 = {