summaryrefslogtreecommitdiffstats
path: root/drivers/clk/at91/pmc.h
diff options
context:
space:
mode:
authorRomain Izard <romain.izard.pro@gmail.com>2017-12-11 17:55:35 +0100
committerStephen Boyd <sboyd@codeaurora.org>2017-12-21 16:34:06 -0800
commit13967bea0bdb194b8674b4102fcdd383a8a18baa (patch)
tree6ef38889a8380a1cd0011ceae2416775f47ebcc6 /drivers/clk/at91/pmc.h
parent3c6fad2593d75a1674c5c2b19c78552c48ef46b5 (diff)
downloadlinux-13967bea0bdb194b8674b4102fcdd383a8a18baa.tar.gz
linux-13967bea0bdb194b8674b4102fcdd383a8a18baa.tar.bz2
linux-13967bea0bdb194b8674b4102fcdd383a8a18baa.zip
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>
Diffstat (limited to 'drivers/clk/at91/pmc.h')
-rw-r--r--drivers/clk/at91/pmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h
index 858e8ef7e8db..d22b1fa9ecdc 100644
--- a/drivers/clk/at91/pmc.h
+++ b/drivers/clk/at91/pmc.h
@@ -31,8 +31,10 @@ int of_at91_get_clk_range(struct device_node *np, const char *propname,
#ifdef CONFIG_PM
void pmc_register_id(u8 id);
+void pmc_register_pck(u8 pck);
#else
static inline void pmc_register_id(u8 id) {}
+static inline void pmc_register_pck(u8 pck) {}
#endif
#endif /* __PMC_H_ */