Kevin Hilman | 8bd2294 | 2009-05-28 10:56:16 -0700 | [diff] [blame] | 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 | |
| 14 | extern int omap2_pm_init(void); |
| 15 | extern int omap3_pm_init(void); |
| 16 | |
| 17 | #ifdef CONFIG_PM_DEBUG |
| 18 | extern void omap2_pm_dump(int mode, int resume, unsigned int us); |
| 19 | extern int omap2_pm_debug; |
| 20 | #else |
| 21 | #define omap2_pm_dump(mode, resume, us) do {} while (0); |
| 22 | #define omap2_pm_debug 0 |
| 23 | #endif /* CONFIG_PM_DEBUG */ |
| 24 | |
| 25 | extern void omap24xx_idle_loop_suspend(void); |
| 26 | |
| 27 | extern void omap24xx_cpu_suspend(u32 dll_ctrl, void __iomem *sdrc_dlla_ctrl, |
| 28 | void __iomem *sdrc_power); |
| 29 | extern void omap34xx_cpu_suspend(u32 *addr, int save_state); |
| 30 | extern void save_secure_ram_context(u32 *addr); |
| 31 | |
| 32 | extern unsigned int omap24xx_idle_loop_suspend_sz; |
| 33 | extern unsigned int omap34xx_suspend_sz; |
| 34 | extern unsigned int save_secure_ram_context_sz; |
| 35 | extern unsigned int omap24xx_cpu_suspend_sz; |
| 36 | extern unsigned int omap34xx_cpu_suspend_sz; |
| 37 | |
| 38 | #endif |