clk: sunxi-ng: a64: Add max. rate constraint to video PLLs
authorIcenowy Zheng <icenowy@aosc.io>
Tue, 4 Sep 2018 04:40:44 +0000 (12:40 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 5 Sep 2018 07:16:10 +0000 (09:16 +0200)
commit5de39acaf34604bd04834f092479cf4dcc946dd4
tree16bebd0b991efab68de0e6d1e5a30b7e2060ed46
parent65b1e8a6ca5f5305962daee6af730bd2d210bb0b
clk: sunxi-ng: a64: Add max. rate constraint to video PLLs

Video PLLs on A64 can be set to higher rate that it is actually
supported by HW.

Limit maximum rate to 1008 MHz. This is the maximum allowed rate by BSP
clock driver. Interestengly, user manual specifies maximum frequency to
be 600 MHz. Historically, this data was wrong in some user manuals for
other SoCs, so more faith is put in BSP clock driver.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
drivers/clk/sunxi-ng/ccu-sun50i-a64.c