]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: eyeq: Skip post-divisor when computing PLL frequency
authorBenoît Monin <benoit.monin@bootlin.com>
Mon, 16 Mar 2026 15:25:44 +0000 (16:25 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 13 Apr 2026 13:31:41 +0000 (15:31 +0200)
commit8ab1e58ca9eb21d44c4716141248acac1d0635cd
tree5b4a396b68106aa1b4e946febb4d31771b44c43e
parentc4fc0fb95ad3771dc2269bc48bdde50c50d48b71
clk: eyeq: Skip post-divisor when computing PLL frequency

The output of the PLL is routed before the post-divisor so it should be
ignored when computing the frequency of the PLL, functional change is
implemented to reflect how the clock signal is wired internally.

For the PLL of the EyeQ5, EyeQ6L, and EyeQ6H, this change has no impact
as the post-divisor is either reported as disabled or set to 1. The PLL
frequency is the same before and after the post-divisor.

For the PLL in EyeQ6Lplus, however, the post-divisor is not 1, so it must
be ignored to compute the correct frequency.

Signed-off-by: Benoît Monin <benoit.monin@bootlin.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
drivers/clk/clk-eyeq.c