]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite71f4fb86c91027ba29a1c5779b3e12770c70fd7
tree5ddda237917be7a68ecae23df0780ad40f5f0f36
parente34ba0d7c8ee128a8a7cc0a1d0345206aeb6a4e5
clk: at91: fix programmable clock for sama5d2

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

Fixes: 3d9194a755f8 ("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