diff mbox series

clk: meson: s4: fix fixed_pll_dco clock

Message ID 20240603-s4_fixedpll-v1-1-2b2a98630841@amlogic.com (mailing list archive)
State Awaiting Upstream, archived
Headers show
Series clk: meson: s4: fix fixed_pll_dco clock | expand

Commit Message

Xianwei Zhao via B4 Relay June 3, 2024, 10:04 a.m. UTC
From: Xianwei Zhao <xianwei.zhao@amlogic.com>

The fixed_pll_dco output frequency is not accurate,
add frac factor for fixed_pll_dco clk to fix it.

Fixes: 57b55c76aaf1 ("clk: meson: S4: add support for Amlogic S4 SoC peripheral clock controller")
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
---
 drivers/clk/meson/s4-pll.c | 5 +++++
 1 file changed, 5 insertions(+)


---
base-commit: ba535bce57e71463a86f8b33a0ea88c26e3a6418
change-id: 20240603-s4_fixedpll-392bb62ec978

Best regards,

Comments

Jerome Brunet June 3, 2024, 1:24 p.m. UTC | #1
Applied to clk-meson (v6.11/drivers), thanks!

[1/1] clk: meson: s4: fix fixed_pll_dco clock
      https://github.com/BayLibre/clk-meson/commit/c1380adf2e86

Best regards,
--
Jerome
diff mbox series

Patch

diff --git a/drivers/clk/meson/s4-pll.c b/drivers/clk/meson/s4-pll.c
index 8dfaeccaadc2..47c0c105e32d 100644
--- a/drivers/clk/meson/s4-pll.c
+++ b/drivers/clk/meson/s4-pll.c
@@ -38,6 +38,11 @@  static struct clk_regmap s4_fixed_pll_dco = {
 			.shift   = 0,
 			.width   = 8,
 		},
+		.frac = {
+			.reg_off = ANACTRL_FIXPLL_CTRL1,
+			.shift   = 0,
+			.width   = 17,
+		},
 		.n = {
 			.reg_off = ANACTRL_FIXPLL_CTRL0,
 			.shift   = 10,