clk: sunxi-ng: d1: Limit PLL rates to stable ranges
authorSamuel Holland <samuel@sholland.org>
Fri, 12 Aug 2022 08:00:49 +0000 (03:00 -0500)
committerJernej Skrabec <jernej.skrabec@gmail.com>
Thu, 25 Aug 2022 21:44:22 +0000 (23:44 +0200)
commit3930624c3936b8358bd8944fd8b00505c6519a0a
tree4f0239ca4da2d8f7df88f70e1c3f3e5778ecdefb
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
clk: sunxi-ng: d1: Limit PLL rates to stable ranges

Set the min/max rates for audio and video PLLs to keep them from going
outside their documented stable ranges. Use the most restrictive of the
"stable" and "actual" frequencies listed in the manual.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220812080050.59850-1-samuel@sholland.org
drivers/clk/sunxi-ng/ccu-sun20i-d1.c