diff options
| author | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
| commit | a8931ef380c92d121ae74ecfb03b2d63f72eea6f (patch) | |
| tree | 980fb6b019e11e6cb1ece55b7faff184721a8053 /arch/arm/mach-pxa/pxa27x.c | |
| parent | 90574d0a4d4b73308ae54a2a57a4f3f1fa98e984 (diff) | |
| parent | e5a5816f7875207cb0a0a7032e39a4686c5e10a4 (diff) | |
| download | olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.tar.xz olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.zip  | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'arch/arm/mach-pxa/pxa27x.c')
| -rw-r--r-- | arch/arm/mach-pxa/pxa27x.c | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 7a2449dd0fd..7e945836e12 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c @@ -181,9 +181,7 @@ static struct clk pxa27x_clks[] = {   * More ones like CP and general purpose register values are preserved   * with the stack pointer in sleep.S.   */ -enum {	SLEEP_SAVE_START = 0, - -	SLEEP_SAVE_PGSR0, SLEEP_SAVE_PGSR1, SLEEP_SAVE_PGSR2, SLEEP_SAVE_PGSR3, +enum {	SLEEP_SAVE_PGSR0, SLEEP_SAVE_PGSR1, SLEEP_SAVE_PGSR2, SLEEP_SAVE_PGSR3,  	SLEEP_SAVE_GAFR0_L, SLEEP_SAVE_GAFR0_U,  	SLEEP_SAVE_GAFR1_L, SLEEP_SAVE_GAFR1_U, @@ -198,7 +196,7 @@ enum {	SLEEP_SAVE_START = 0,  	SLEEP_SAVE_PWER, SLEEP_SAVE_PCFR, SLEEP_SAVE_PRER,  	SLEEP_SAVE_PFER, SLEEP_SAVE_PKWR, -	SLEEP_SAVE_SIZE +	SLEEP_SAVE_COUNT  };  void pxa27x_cpu_pm_save(unsigned long *sleep_save) @@ -251,6 +249,9 @@ void pxa27x_cpu_pm_enter(suspend_state_t state)  	/* Clear edge-detect status register. */  	PEDR = 0xDF12FE1B; +	/* Clear reset status */ +	RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; +  	switch (state) {  	case PM_SUSPEND_STANDBY:  		pxa_cpu_standby(); @@ -269,7 +270,7 @@ static int pxa27x_cpu_pm_valid(suspend_state_t state)  }  static struct pxa_cpu_pm_fns pxa27x_cpu_pm_fns = { -	.save_size	= SLEEP_SAVE_SIZE, +	.save_count	= SLEEP_SAVE_COUNT,  	.save		= pxa27x_cpu_pm_save,  	.restore	= pxa27x_cpu_pm_restore,  	.valid		= pxa27x_cpu_pm_valid,  |