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

clk: qcom: videocc-sm8550: switch to clk_lucid_ole_pll_configure

Instead of manually specifying the RINGOSC_CAL_L and CAL_L values in the
alpha_pll_config.l field, use the proper clk_lucid_ole_pll_configure()
function to configure the PLL.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20231016084356.1301854-2-dmitry.baryshkov@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Dmitry Baryshkov and committed by
Bjorn Andersson
a2620539 21134ec8

+4 -6
+4 -6
drivers/clk/qcom/videocc-sm8550.c
··· 36 36 }; 37 37 38 38 static const struct alpha_pll_config video_cc_pll0_config = { 39 - /* .l includes RINGOSC_CAL_L_VAL, CAL_L_VAL, L_VAL fields */ 40 - .l = 0x44440025, 39 + .l = 0x25, 41 40 .alpha = 0x8000, 42 41 .config_ctl_val = 0x20485699, 43 42 .config_ctl_hi_val = 0x00182261, ··· 67 68 }; 68 69 69 70 static const struct alpha_pll_config video_cc_pll1_config = { 70 - /* .l includes RINGOSC_CAL_L_VAL, CAL_L_VAL, L_VAL fields */ 71 - .l = 0x44440036, 71 + .l = 0x36, 72 72 .alpha = 0xb000, 73 73 .config_ctl_val = 0x20485699, 74 74 .config_ctl_hi_val = 0x00182261, ··· 425 427 return PTR_ERR(regmap); 426 428 } 427 429 428 - clk_lucid_evo_pll_configure(&video_cc_pll0, regmap, &video_cc_pll0_config); 429 - clk_lucid_evo_pll_configure(&video_cc_pll1, regmap, &video_cc_pll1_config); 430 + clk_lucid_ole_pll_configure(&video_cc_pll0, regmap, &video_cc_pll0_config); 431 + clk_lucid_ole_pll_configure(&video_cc_pll1, regmap, &video_cc_pll1_config); 430 432 431 433 /* 432 434 * Keep clocks always enabled: