static int __init at91_pm_init(void) { #ifdef CONFIG_AT91_SLOW_CLOCK slow_clock = (void *) (AT91_IO_VIRT_BASE - at91_slow_clock_sz); #endif pr_info("AT91: Power Management%s\n", (slow_clock ? " (with slow clock mode)" : "")); /* AT91RM9200 SDRAM low-power mode cannot be used with self-refresh. */ if (cpu_is_at91rm9200()) at91_ramc_write(0, AT91RM9200_SDRAMC_LPR, 0); suspend_set_ops(&at91_pm_ops); show_reset_status(); return 0; }
static int __init at91_pm_init(void) { #ifdef CONFIG_AT91_SLOW_CLOCK slow_clock = (void *) (AT91_IO_VIRT_BASE - at91_slow_clock_sz); #endif pr_info("AT91: Power Management%s\n", (slow_clock ? " (with slow clock mode)" : "")); #ifdef CONFIG_ARCH_AT91RM9200 /* */ at91_ramc_write(0, AT91RM9200_SDRAMC_LPR, 0); #endif suspend_set_ops(&at91_pm_ops); show_reset_status(); return 0; }