diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-06-08 02:36:47 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-06-30 03:47:35 +0200 |
commit | b3b02eac33eddda88992962d920b46348bb086da (patch) | |
tree | 7f905d035b2db5a24d60de9b0d72a5be819164b3 /drivers/clk/at91/pmc.h | |
parent | clk: keystone: TI_SCI_PROTOCOL is needed for clk driver (diff) | |
download | linux-b3b02eac33eddda88992962d920b46348bb086da.tar.xz linux-b3b02eac33eddda88992962d920b46348bb086da.zip |
clk: at91: Add sama5d2 suspend/resume
On sama5d2, VDD core maybe be cut while in suspend. This means registers
will be lost. Ensure they are saved and restored properly.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/at91/pmc.h')
-rw-r--r-- | drivers/clk/at91/pmc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h index 5771fff0ee3f..858e8ef7e8db 100644 --- a/drivers/clk/at91/pmc.h +++ b/drivers/clk/at91/pmc.h @@ -29,4 +29,10 @@ struct clk_range { int of_at91_get_clk_range(struct device_node *np, const char *propname, struct clk_range *range); +#ifdef CONFIG_PM +void pmc_register_id(u8 id); +#else +static inline void pmc_register_id(u8 id) {} +#endif + #endif /* __PMC_H_ */ |