diff options
author | Domen Puncer <domen.puncer@telargo.com> | 2007-05-07 01:38:52 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-07 20:31:15 +1000 |
commit | 2e1ee1f76684c5d4dd8e5a08cbf22d57f88769ed (patch) | |
tree | 0c69d52b8fb2cf82f257944d182ce1f8973ab9f9 /include | |
parent | a3481197783c187707090504062488862768260a (diff) | |
download | blackbird-op-linux-2e1ee1f76684c5d4dd8e5a08cbf22d57f88769ed.tar.gz blackbird-op-linux-2e1ee1f76684c5d4dd8e5a08cbf22d57f88769ed.zip |
[POWERPC] mpc52xx suspend to deep-sleep
Implement deep-sleep on MPC52xx.
SDRAM is put into self-refresh with help of SRAM code
(alternatives would be code in FLASH, I-cache).
Interrupt code must also not be in SDRAM, so put it
in I-cache.
MPC52xx core is static, so contents will remain intact even
with clocks turned off.
Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/mpc52xx.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-powerpc/mpc52xx.h b/include/asm-powerpc/mpc52xx.h index 7afd5bf94528..c4631f6dd4f9 100644 --- a/include/asm-powerpc/mpc52xx.h +++ b/include/asm-powerpc/mpc52xx.h @@ -253,5 +253,16 @@ extern int __init mpc52xx_add_bridge(struct device_node *node); #endif /* __ASSEMBLY__ */ +#ifdef CONFIG_PM +struct mpc52xx_suspend { + void (*board_suspend_prepare)(void __iomem *mbar); + void (*board_resume_finish)(void __iomem *mbar); +}; + +extern struct mpc52xx_suspend mpc52xx_suspend; +extern int __init mpc52xx_pm_init(void); +extern int mpc52xx_set_wakeup_gpio(u8 pin, u8 level); +#endif /* CONFIG_PM */ + #endif /* __ASM_POWERPC_MPC52xx_H__ */ |