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/at91sam9260.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/at91sam9260.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9260.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9260.c b/arch/arm/mach-at91/at91sam9260.c index 5e46e4a96430..cfe6dd747cc5 100644 --- a/arch/arm/mach-at91/at91sam9260.c +++ b/arch/arm/mach-at91/at91sam9260.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> |
@@ -327,8 +328,15 @@ static void __init at91sam9260_ioremap_registers(void) | |||
327 | at91sam9_ioremap_smc(0, AT91SAM9260_BASE_SMC); | 328 | at91sam9_ioremap_smc(0, AT91SAM9260_BASE_SMC); |
328 | } | 329 | } |
329 | 330 | ||
331 | static void at91sam9260_idle(void) | ||
332 | { | ||
333 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK); | ||
334 | cpu_do_idle(); | ||
335 | } | ||
336 | |||
330 | static void __init at91sam9260_initialize(void) | 337 | static void __init at91sam9260_initialize(void) |
331 | { | 338 | { |
339 | arm_pm_idle = at91sam9260_idle; | ||
332 | arm_pm_restart = at91sam9_alt_restart; | 340 | arm_pm_restart = at91sam9_alt_restart; |
333 | at91_extern_irq = (1 << AT91SAM9260_ID_IRQ0) | (1 << AT91SAM9260_ID_IRQ1) | 341 | at91_extern_irq = (1 << AT91SAM9260_ID_IRQ0) | (1 << AT91SAM9260_ID_IRQ1) |
334 | | (1 << AT91SAM9260_ID_IRQ2); | 342 | | (1 << AT91SAM9260_ID_IRQ2); |