clk: at91: pmc: Support backup for programmable clocks
authorRomain Izard <romain.izard.pro@gmail.com>
Mon, 11 Dec 2017 16:55:35 +0000 (17:55 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 22 Dec 2017 00:34:06 +0000 (16:34 -0800)
commit13967bea0bdb194b8674b4102fcdd383a8a18baa
tree6ef38889a8380a1cd0011ceae2416775f47ebcc6
parent3c6fad2593d75a1674c5c2b19c78552c48ef46b5
clk: at91: pmc: Support backup for programmable clocks

When an AT91 programmable clock is declared in the device tree, register
it into the Power Management Controller driver. On entering suspend mode,
the driver saves and restores the Programmable Clock registers to support
the backup mode for these clocks.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/at91/clk-programmable.c
drivers/clk/at91/pmc.c
drivers/clk/at91/pmc.h