]> git.baikalelectronics.ru Git - kernel.git/commit
clk: at91: sam9x60-pll: check fcore against ranges
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 22 Jul 2020 07:38:13 +0000 (10:38 +0300)
committerStephen Boyd <sboyd@kernel.org>
Fri, 24 Jul 2020 09:18:47 +0000 (02:18 -0700)
commitfd2addee06921477d66b804dc3064a646436d9e3
treede8343016b397fb64726093a993ae35a80a056a1
parentfd1099c9f52eac38f7afeb7c3d5c8d010ff74684
clk: at91: sam9x60-pll: check fcore against ranges

According to datasheet the range of 600-1200MHz is for the
frequency generated by the fractional part of the PLL (namely
Fcorepllck according to datasheet). With this in mind the output
range of the PLL itself (fractional + div), taking into account
that the divider is 8 bits wide, is 600/256-1200Hz=2.3-1200MHz.

Fixes: 8c4c53d807885 ("clk: at91: add sam9x60 PLL driver")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/1595403506-8209-6-git-send-email-claudiu.beznea@microchip.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/at91/clk-sam9x60-pll.c
drivers/clk/at91/sam9x60.c