Commit | Line | Data |
---|---|---|
8bd22949 KH |
1 | /* |
2 | * OMAP2/3 Power Management Routines | |
3 | * | |
4 | * Copyright (C) 2008 Nokia Corporation | |
5 | * Jouni Hogander | |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License version 2 as | |
9 | * published by the Free Software Foundation. | |
10 | */ | |
11 | #ifndef __ARCH_ARM_MACH_OMAP2_PM_H | |
12 | #define __ARCH_ARM_MACH_OMAP2_PM_H | |
13 | ||
8bd22949 KH |
14 | #ifdef CONFIG_PM_DEBUG |
15 | extern void omap2_pm_dump(int mode, int resume, unsigned int us); | |
16 | extern int omap2_pm_debug; | |
17 | #else | |
18 | #define omap2_pm_dump(mode, resume, us) do {} while (0); | |
19 | #define omap2_pm_debug 0 | |
20 | #endif /* CONFIG_PM_DEBUG */ | |
21 | ||
22 | extern void omap24xx_idle_loop_suspend(void); | |
23 | ||
24 | extern void omap24xx_cpu_suspend(u32 dll_ctrl, void __iomem *sdrc_dlla_ctrl, | |
25 | void __iomem *sdrc_power); | |
26 | extern void omap34xx_cpu_suspend(u32 *addr, int save_state); | |
27 | extern void save_secure_ram_context(u32 *addr); | |
28 | ||
29 | extern unsigned int omap24xx_idle_loop_suspend_sz; | |
30 | extern unsigned int omap34xx_suspend_sz; | |
31 | extern unsigned int save_secure_ram_context_sz; | |
32 | extern unsigned int omap24xx_cpu_suspend_sz; | |
33 | extern unsigned int omap34xx_cpu_suspend_sz; | |
34 | ||
35 | #endif |