mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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 <[email protected]> Signed-off-by: Sylvain Munaut <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
104f0cc2dc
commit
ee983079ce
5 changed files with 647 additions and 5 deletions
|
|
@ -262,6 +262,16 @@ struct mpc52xx_suspend {
|
|||
extern struct mpc52xx_suspend mpc52xx_suspend;
|
||||
extern int __init mpc52xx_pm_init(void);
|
||||
extern int mpc52xx_set_wakeup_gpio(u8 pin, u8 level);
|
||||
|
||||
#ifdef CONFIG_PPC_LITE5200
|
||||
extern int __init lite5200_pm_init(void);
|
||||
|
||||
/* lite5200 calls mpc5200 suspend functions, so here they are */
|
||||
extern int mpc52xx_pm_prepare(suspend_state_t);
|
||||
extern int mpc52xx_pm_enter(suspend_state_t);
|
||||
extern int mpc52xx_pm_finish(suspend_state_t);
|
||||
extern char saved_sram[0x4000]; /* reuse buffer from mpc52xx suspend */
|
||||
#endif
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
#endif /* __ASM_POWERPC_MPC52xx_H__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue