diff options
author | Tomasz Figa <t.figa@samsung.com> | 2014-02-14 08:16:00 +0900 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-02-14 08:16:00 +0900 |
commit | 3ccefbd2291d6ee59f242c05266e241c5e33667e (patch) | |
tree | 7f28cf471e3e3d7920222223f6d85fee4cf1bc83 /drivers/clk/samsung/clk.h | |
parent | 442f4948e5b0b2bc6e77811a5e46fcd13f0870a6 (diff) | |
download | op-kernel-dev-3ccefbd2291d6ee59f242c05266e241c5e33667e.zip op-kernel-dev-3ccefbd2291d6ee59f242c05266e241c5e33667e.tar.gz |
clk: samsung: Provide common helpers for register save/restore
As suspend/resume handlers are being moved to SoC specific code, due to
differencies in suspend/resume handling of particular SoCs, to minimize
code duplication this patch provides common register save/restore
helpers that save/restore given list of registers of clock controller.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Thomas Abraham <thomas.ab@samsung.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers/clk/samsung/clk.h')
-rw-r--r-- | drivers/clk/samsung/clk.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/clk/samsung/clk.h b/drivers/clk/samsung/clk.h index 31b4174..ec8d46b 100644 --- a/drivers/clk/samsung/clk.h +++ b/drivers/clk/samsung/clk.h @@ -340,4 +340,14 @@ extern void __init samsung_clk_register_pll(struct samsung_pll_clock *pll_list, extern unsigned long _get_rate(const char *clk_name); +extern void samsung_clk_save(void __iomem *base, + struct samsung_clk_reg_dump *rd, + unsigned int num_regs); +extern void samsung_clk_restore(void __iomem *base, + const struct samsung_clk_reg_dump *rd, + unsigned int num_regs); +extern struct samsung_clk_reg_dump *samsung_clk_alloc_reg_dump( + unsigned long *rdump, + unsigned long nr_rdump); + #endif /* __SAMSUNG_CLK_H */ |