clk: at91: fix programmable clock for sama5d2
authorMatthias Wieloch <matthias.wieloch@few-bauer.de>
Mon, 18 Mar 2019 10:50:45 +0000 (11:50 +0100)
committerStephen Boyd <sboyd@kernel.org>
Mon, 18 Mar 2019 19:50:31 +0000 (12:50 -0700)
commit45b06682113b102bdf38678311da93a689b0b78d
tree5ddda237917be7a68ecae23df0780ad40f5f0f36
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
clk: at91: fix programmable clock for sama5d2

The prescaler formula of the programmable clock has changed for sama5d2.
Update the driver accordingly.

Fixes: a2038077de9a ("clk: at91: add sama5d2 PMC driver")
Cc: <stable@vger.kernel.org> # v4.20+
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
[nicolas.ferre@microchip.com: adapt the prescaler range,
fix clk_programmable_recalc_rate, split patch]
Signed-off-by: Matthias Wieloch <matthias.wieloch@few-bauer.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/at91/clk-programmable.c
drivers/clk/at91/pmc.h
drivers/clk/at91/sama5d2.c