4104980a3c
Currently, we set PSPR just before entering sleep mode. However, some platforms have different requirements for setting PSPR in order to properly wake up. Set PSPR earlier in the suspend cycle so that platforms can change the setting by using a sysdev driver instead. Acked-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
30 lines
737 B
C
30 lines
737 B
C
/*
|
|
* Copyright (c) 2005 Richard Purdie
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
*/
|
|
|
|
#include <linux/suspend.h>
|
|
|
|
struct pxa_cpu_pm_fns {
|
|
int save_count;
|
|
void (*save)(unsigned long *);
|
|
void (*restore)(unsigned long *);
|
|
int (*valid)(suspend_state_t state);
|
|
void (*enter)(suspend_state_t state);
|
|
int (*prepare)(void);
|
|
void (*finish)(void);
|
|
};
|
|
|
|
extern struct pxa_cpu_pm_fns *pxa_cpu_pm_fns;
|
|
|
|
/* sleep.S */
|
|
extern void pxa25x_cpu_suspend(unsigned int);
|
|
extern void pxa27x_cpu_suspend(unsigned int);
|
|
extern void pxa_cpu_resume(void);
|
|
|
|
extern int pxa_pm_enter(suspend_state_t state);
|