#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>
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>
#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