]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: thead: th1520-ap: Support setting PLL rates
authorYao Zi <ziyao@disroot.org>
Thu, 20 Nov 2025 13:14:13 +0000 (13:14 +0000)
committerDrew Fustini <fustini@kernel.org>
Thu, 18 Dec 2025 19:15:35 +0000 (11:15 -0800)
commit238cc6316a885765fd52a6dc65b9ca4e47647b1e
treed3124644b9617b660432aa928aeadf25117d50f6
parentb436f8a82aaa3bd54cb79b1219d94a99f7351d33
clk: thead: th1520-ap: Support setting PLL rates

TH1520 ships several PLLs that could operate in either integer or
fractional mode. However, the TRM only lists a few configuration whose
stability is considered guaranteed.

Add a table-lookup rate determination logic to support PLL rate setting,
and fill up frequency-configuration tables for AP-subsystem PLLs.

Reviewed-by: Drew Fustini <fustini@kernel.org>
Signed-off-by: Yao Zi <ziyao@disroot.org>
Signed-off-by: Drew Fustini <fustini@kernel.org>
drivers/clk/thead/clk-th1520-ap.c