Commit 415aad75 authored by Luca Weiss's avatar Luca Weiss Committed by Bjorn Andersson
Browse files

clk: qcom: camcc-sm7150: Fix PLL config of PLL2



The 'Agera' PLLs (with clk_agera_pll_configure) do not take some of the
parameters that are provided in the vendor driver. Instead the upstream
configuration should provide the final user_ctl value that is written to
the USER_CTL register.

Fix the config so that the PLL is configured correctly.

Fixes: 9f0532da ("clk: qcom: Add Camera Clock Controller driver for SM7150")
Suggested-by: default avatarTaniya Das <taniya.das@oss.qualcomm.com>
Signed-off-by: default avatarLuca Weiss <luca.weiss@fairphone.com>
Reviewed-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Reviewed-by: default avatarTaniya Das <taniya.das@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251021-agera-pll-fixups-v1-2-8c1d8aff4afc@fairphone.com


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent ab0e1314
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -139,13 +139,9 @@ static struct clk_fixed_factor camcc_pll1_out_even = {
/* 1920MHz configuration */
static const struct alpha_pll_config camcc_pll2_config = {
	.l = 0x64,
	.post_div_val = 0x3 << 8,
	.post_div_mask = 0x3 << 8,
	.early_output_mask = BIT(3),
	.aux_output_mask = BIT(1),
	.main_output_mask = BIT(0),
	.config_ctl_hi_val = 0x400003d6,
	.config_ctl_val = 0x20000954,
	.user_ctl_val = 0x0000030b,
};

static struct clk_alpha_pll camcc_pll2 = {