diff options
author | Domen Puncer <domen.puncer@telargo.com> | 2007-07-17 16:32:31 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-09-19 01:25:34 -0400 |
commit | ee983079ce04641523b23b8ed02cc3503632351e (patch) | |
tree | 3c6b975e47fb38ee51cf3d57e8f5abb1a7699f66 /include/asm-powerpc/mpc52xx.h | |
parent | 104f0cc2dcf7ce0ca7da041177233747d6aa0136 (diff) |
[POWERPC] MPC5200 low power mode
Low-power mode implementation for Lite5200b.
Some I/O registers are also saved here.
A recent U-Boot that supports this (lite5200b_PM_config) is needed.
Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/mpc52xx.h')
-rw-r--r-- | include/asm-powerpc/mpc52xx.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-powerpc/mpc52xx.h b/include/asm-powerpc/mpc52xx.h index c4631f6dd4f9..1a3dbb743a3f 100644 --- a/include/asm-powerpc/mpc52xx.h +++ b/include/asm-powerpc/mpc52xx.h | |||
@@ -262,6 +262,16 @@ struct mpc52xx_suspend { | |||
262 | extern struct mpc52xx_suspend mpc52xx_suspend; | 262 | extern struct mpc52xx_suspend mpc52xx_suspend; |
263 | extern int __init mpc52xx_pm_init(void); | 263 | extern int __init mpc52xx_pm_init(void); |
264 | extern int mpc52xx_set_wakeup_gpio(u8 pin, u8 level); | 264 | extern int mpc52xx_set_wakeup_gpio(u8 pin, u8 level); |
265 | |||
266 | #ifdef CONFIG_PPC_LITE5200 | ||
267 | extern int __init lite5200_pm_init(void); | ||
268 | |||
269 | /* lite5200 calls mpc5200 suspend functions, so here they are */ | ||
270 | extern int mpc52xx_pm_prepare(suspend_state_t); | ||
271 | extern int mpc52xx_pm_enter(suspend_state_t); | ||
272 | extern int mpc52xx_pm_finish(suspend_state_t); | ||
273 | extern char saved_sram[0x4000]; /* reuse buffer from mpc52xx suspend */ | ||
274 | #endif | ||
265 | #endif /* CONFIG_PM */ | 275 | #endif /* CONFIG_PM */ |
266 | 276 | ||
267 | #endif /* __ASM_POWERPC_MPC52xx_H__ */ | 277 | #endif /* __ASM_POWERPC_MPC52xx_H__ */ |