diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-08-02 10:21:36 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2012-01-20 18:55:10 -0500 |
commit | c9dfafbaca0b66a6665242d019b3b9c5be056fcf (patch) | |
tree | 68163a95d873055cfa97ea4b62be848adb9d59bd /arch/arm/mach-at91/at91sam9263.c | |
parent | 8dd67188834314fd6a8426e17f56c7a103c57d9c (diff) |
ARM: mach-at91: move special idle code out of line
... and hook it to arm_pm_idle.
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9263.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9263.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9263.c b/arch/arm/mach-at91/at91sam9263.c index 79e3669b1117..bcce7e2ca2f5 100644 --- a/arch/arm/mach-at91/at91sam9263.c +++ b/arch/arm/mach-at91/at91sam9263.c | |||
@@ -12,6 +12,7 @@ | |||
12 | 12 | ||
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | 14 | ||
15 | #include <asm/proc-fns.h> | ||
15 | #include <asm/irq.h> | 16 | #include <asm/irq.h> |
16 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
17 | #include <asm/mach/map.h> | 18 | #include <asm/mach/map.h> |
@@ -306,8 +307,15 @@ static void __init at91sam9263_ioremap_registers(void) | |||
306 | at91sam9_ioremap_smc(1, AT91SAM9263_BASE_SMC1); | 307 | at91sam9_ioremap_smc(1, AT91SAM9263_BASE_SMC1); |
307 | } | 308 | } |
308 | 309 | ||
310 | static void at91sam9263_idle(void) | ||
311 | { | ||
312 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK); | ||
313 | cpu_do_idle(); | ||
314 | } | ||
315 | |||
309 | static void __init at91sam9263_initialize(void) | 316 | static void __init at91sam9263_initialize(void) |
310 | { | 317 | { |
318 | arm_pm_idle = at91sam9263_idle; | ||
311 | arm_pm_restart = at91sam9_alt_restart; | 319 | arm_pm_restart = at91sam9_alt_restart; |
312 | at91_extern_irq = (1 << AT91SAM9263_ID_IRQ0) | (1 << AT91SAM9263_ID_IRQ1); | 320 | at91_extern_irq = (1 << AT91SAM9263_ID_IRQ0) | (1 << AT91SAM9263_ID_IRQ1); |
313 | 321 | ||