Skip to content

Commit 21134ec

Browse files
lumagandersson
authored andcommitted
clk: qcom: gpucc-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 bff482a commit 21134ec

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

drivers/clk/qcom/gpucc-sm8550.c

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

4141
static const struct alpha_pll_config gpu_cc_pll0_config = {
42-
/* .l includes RINGOSC_CAL_L_VAL, CAL_L_VAL, L_VAL fields */
43-
.l = 0x4444000d,
42+
.l = 0x0d,
4443
.alpha = 0x0,
4544
.config_ctl_val = 0x20485699,
4645
.config_ctl_hi_val = 0x00182261,
@@ -71,8 +70,7 @@ static struct clk_alpha_pll gpu_cc_pll0 = {
7170
};
7271

7372
static const struct alpha_pll_config gpu_cc_pll1_config = {
74-
/* .l includes RINGOSC_CAL_L_VAL, CAL_L_VAL, L_VAL fields */
75-
.l = 0x44440016,
73+
.l = 0x16,
7674
.alpha = 0xeaaa,
7775
.config_ctl_val = 0x20485699,
7876
.config_ctl_hi_val = 0x00182261,
@@ -574,8 +572,8 @@ static int gpu_cc_sm8550_probe(struct platform_device *pdev)
574572
if (IS_ERR(regmap))
575573
return PTR_ERR(regmap);
576574

577-
clk_lucid_evo_pll_configure(&gpu_cc_pll0, regmap, &gpu_cc_pll0_config);
578-
clk_lucid_evo_pll_configure(&gpu_cc_pll1, regmap, &gpu_cc_pll1_config);
575+
clk_lucid_ole_pll_configure(&gpu_cc_pll0, regmap, &gpu_cc_pll0_config);
576+
clk_lucid_ole_pll_configure(&gpu_cc_pll1, regmap, &gpu_cc_pll1_config);
579577

580578
/*
581579
* Keep clocks always enabled:

0 commit comments

Comments
 (0)