]> git.baikalelectronics.ru Git - uboot.git/commit
clk: k210: Try harder to get the best config
authorSean Anderson <seanga2@gmail.com>
Sat, 11 Sep 2021 17:20:03 +0000 (13:20 -0400)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 7 Oct 2021 08:08:23 +0000 (16:08 +0800)
commit270e81b39864546f564fe6894f0d63cf1739672a
treec00a4d17c8b2458c20126929ee8e7f82f1d4c8e2
parent40722d3e6485dde558e6b2d6b713af5925fba6f8
clk: k210: Try harder to get the best config

In some cases, the best config cannot be used because the VCO would be
out-of-spec. In these cases, we may need to try a worse combination of r/od
in order to find the best representable config. This also adds a few test
cases to catch this and other (possible) unlikely errors.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/clk_kendryte.c
test/dm/k210_pll.c