Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295599
b: refs/heads/master
c: b59160f
h: refs/heads/master
i:
  295597: b908300
  295595: 5ad9aef
  295591: 6f5ec75
  295583: 0001165
v: v3
  • Loading branch information
Daniel Lezcano authored and Nicolas Ferre committed Feb 3, 2012
1 parent 41b5a43 commit e1d9512
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa50ae9c100225964eafc7214c70a8c08e70e50e
refs/heads/master: b59160f6c017bfe33d3483ed9a6120701644af8a
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-at91/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static int at91_pm_enter(suspend_state_t state)
: /* no input */
: "r0");
saved_lpr = sdram_selfrefresh_enable();
wait_for_interrupt_enable();
cpu_do_idle();
sdram_selfrefresh_disable(saved_lpr);
break;

Expand Down
9 changes: 0 additions & 9 deletions trunk/arch/arm/mach-at91/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ static inline u32 sdram_selfrefresh_enable(void)
#define sdram_selfrefresh_disable(saved_lpr) \
at91_sys_write(AT91_SDRAMC_LPR, saved_lpr)

#define wait_for_interrupt_enable() \
asm volatile ("mcr p15, 0, %0, c7, c0, 4" \
: : "r" (0))

#elif defined(CONFIG_ARCH_AT91SAM9G45)
#include <mach/at91sam9_ddrsdr.h>

Expand Down Expand Up @@ -76,8 +72,6 @@ static inline u32 sdram_selfrefresh_enable(void)
at91_ramc_write(1, AT91_DDRSDRC_LPR, saved_lpr1); \
} while (0)

#define wait_for_interrupt_enable() cpu_do_idle()

#else
#include <mach/at91sam9_sdramc.h>

Expand All @@ -104,9 +98,6 @@ static inline u32 sdram_selfrefresh_enable(void)
#define sdram_selfrefresh_disable(saved_lpr) \
at91_ramc_write(0, AT91_SDRAMC_LPR, saved_lpr)

#define wait_for_interrupt_enable() \
cpu_do_idle()

#endif

#endif

0 comments on commit e1d9512

Please sign in to comment.