Skip to content

Commit a262053

Browse files
lumagandersson
authored andcommitted
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 <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 21134ec commit a262053

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

drivers/clk/qcom/videocc-sm8550.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ static const struct pll_vco lucid_ole_vco[] = {
3636
};
3737

3838
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,
4140
.alpha = 0x8000,
4241
.config_ctl_val = 0x20485699,
4342
.config_ctl_hi_val = 0x00182261,
@@ -68,8 +67,7 @@ static struct clk_alpha_pll video_cc_pll0 = {
6867
};
6968

7069
static const struct alpha_pll_config video_cc_pll1_config = {
71-
/* .l includes RINGOSC_CAL_L_VAL, CAL_L_VAL, L_VAL fields */
72-
.l = 0x44440036,
70+
.l = 0x36,
7371
.alpha = 0xb000,
7472
.config_ctl_val = 0x20485699,
7573
.config_ctl_hi_val = 0x00182261,
@@ -427,8 +425,8 @@ static int video_cc_sm8550_probe(struct platform_device *pdev)
427425
return PTR_ERR(regmap);
428426
}
429427

430-
clk_lucid_evo_pll_configure(&video_cc_pll0, regmap, &video_cc_pll0_config);
431-
clk_lucid_evo_pll_configure(&video_cc_pll1, regmap, &video_cc_pll1_config);
428+
clk_lucid_ole_pll_configure(&video_cc_pll0, regmap, &video_cc_pll0_config);
429+
clk_lucid_ole_pll_configure(&video_cc_pll1, regmap, &video_cc_pll1_config);
432430

433431
/*
434432
* Keep clocks always enabled:

0 commit comments

Comments
 (0)