|
@@ -14,6 +14,7 @@
|
|
|
|
|
|
#include <linux/module.h>
|
|
|
|
|
|
+#include <asm/proc-fns.h>
|
|
|
#include <asm/irq.h>
|
|
|
#include <asm/mach/arch.h>
|
|
|
#include <asm/mach/map.h>
|
|
@@ -314,6 +315,12 @@ static struct at91_gpio_bank at91cap9_gpio[] __initdata = {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+static void at91cap9_idle(void)
|
|
|
+{
|
|
|
+ at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK);
|
|
|
+ cpu_do_idle();
|
|
|
+}
|
|
|
+
|
|
|
static void at91cap9_restart(char mode, const char *cmd)
|
|
|
{
|
|
|
at91_sys_write(AT91_RSTC_CR, AT91_RSTC_KEY | AT91_RSTC_PROCRST | AT91_RSTC_PERRST);
|
|
@@ -337,6 +344,7 @@ static void __init at91cap9_ioremap_registers(void)
|
|
|
|
|
|
static void __init at91cap9_initialize(void)
|
|
|
{
|
|
|
+ arm_pm_idle = at91cap9_idle;
|
|
|
arm_pm_restart = at91cap9_restart;
|
|
|
at91_extern_irq = (1 << AT91CAP9_ID_IRQ0) | (1 << AT91CAP9_ID_IRQ1);
|
|
|
|