diff options
Diffstat (limited to 'arch/arm/mach-at91/pm.c')
-rw-r--r-- | arch/arm/mach-at91/pm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 615668986480..87a31baf1cb3 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c | |||
@@ -258,16 +258,18 @@ static int at91_pm_enter(suspend_state_t state) | |||
258 | * NOTE: the Wait-for-Interrupt instruction needs to be | 258 | * NOTE: the Wait-for-Interrupt instruction needs to be |
259 | * in icache so no SDRAM accesses are needed until the | 259 | * in icache so no SDRAM accesses are needed until the |
260 | * wakeup IRQ occurs and self-refresh is terminated. | 260 | * wakeup IRQ occurs and self-refresh is terminated. |
261 | * For ARM 926 based chips, this requirement is weaker | ||
262 | * as at91sam9 can access a RAM in self-refresh mode. | ||
261 | */ | 263 | */ |
262 | asm("b 1f; .align 5; 1:"); | 264 | asm("b 1f; .align 5; 1:"); |
263 | asm("mcr p15, 0, r0, c7, c10, 4"); /* drain write buffer */ | 265 | asm("mcr p15, 0, r0, c7, c10, 4"); /* drain write buffer */ |
264 | saved_lpr = sdram_selfrefresh_enable(); | 266 | saved_lpr = sdram_selfrefresh_enable(); |
265 | asm("mcr p15, 0, r0, c7, c0, 4"); /* wait for interrupt */ | 267 | wait_for_interrupt_enable(); |
266 | sdram_selfrefresh_disable(saved_lpr); | 268 | sdram_selfrefresh_disable(saved_lpr); |
267 | break; | 269 | break; |
268 | 270 | ||
269 | case PM_SUSPEND_ON: | 271 | case PM_SUSPEND_ON: |
270 | asm("mcr p15, 0, r0, c7, c0, 4"); /* wait for interrupt */ | 272 | cpu_do_idle(); |
271 | break; | 273 | break; |
272 | 274 | ||
273 | default: | 275 | default: |