diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-02-05 07:25:32 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-02-17 11:54:05 -0500 |
commit | 0d78171672a30e8ec8084f54a557e9948260356d (patch) | |
tree | 68d9406fbd277896eed3a8b0447f0729dd0b979c /arch/arm/mach-at91/clock.c | |
parent | 11a25ea7e4f870a37093258f577e11cec703e37e (diff) |
ARM: at91: factorise duplicated at91sam9 idle
Remove duplicated at91sam9xxxx_idle() functions introduced
by commit c9dfafb "ARM: mach-at91: move special idle code out of line".
Replace by a generic at91sam9_idle() function in setup.c common
location.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/clock.c')
-rw-r--r-- | arch/arm/mach-at91/clock.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c index a5291e0e7004..d1b4e0707e4d 100644 --- a/arch/arm/mach-at91/clock.c +++ b/arch/arm/mach-at91/clock.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <mach/at91_pmc.h> | 28 | #include <mach/at91_pmc.h> |
29 | #include <mach/cpu.h> | 29 | #include <mach/cpu.h> |
30 | 30 | ||
31 | #include <asm/proc-fns.h> | ||
32 | |||
31 | #include "clock.h" | 33 | #include "clock.h" |
32 | #include "generic.h" | 34 | #include "generic.h" |
33 | 35 | ||
@@ -818,3 +820,9 @@ static int __init at91_clock_reset(void) | |||
818 | return 0; | 820 | return 0; |
819 | } | 821 | } |
820 | late_initcall(at91_clock_reset); | 822 | late_initcall(at91_clock_reset); |
823 | |||
824 | void at91sam9_idle(void) | ||
825 | { | ||
826 | at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK); | ||
827 | cpu_do_idle(); | ||
828 | } | ||