aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9260.c
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2010-10-14 11:19:11 -0400
committerNicolas Ferre <nicolas.ferre@atmel.com>2010-10-26 05:32:48 -0400
commit1345562b449e95e2098cc60eb0eed6d2415cd0b0 (patch)
tree030983c78b1c1472765047f262b9533ae2060098 /arch/arm/mach-at91/at91sam9260.c
parentef4d63e6f51d9669e247c47b670a83511b98eb68 (diff)
AT91: reset routine cleanup, remove not needed icache flush
Generalize assembler reset routine to allow use on several at91sam9 chips. This patch replace double definitions of SDRAM controller registers and RSTC registers with use of classical header files. For this rework, we remove the not needed icache flush as it is already done in the calling function: arm_machine_restart(). Rename at91sam9g20_reset.S to generalize to several chips. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9260.c')
-rw-r--r--arch/arm/mach-at91/at91sam9260.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/at91sam9260.c b/arch/arm/mach-at91/at91sam9260.c
index f8844506eabb..dfd3529cd101 100644
--- a/arch/arm/mach-at91/at91sam9260.c
+++ b/arch/arm/mach-at91/at91sam9260.c
@@ -25,7 +25,7 @@
25#include "generic.h" 25#include "generic.h"
26#include "clock.h" 26#include "clock.h"
27 27
28extern void at91sam9g20_reset(void); 28extern void at91sam9_alt_reset(void);
29 29
30static struct map_desc at91sam9260_io_desc[] __initdata = { 30static struct map_desc at91sam9260_io_desc[] __initdata = {
31 { 31 {
@@ -330,7 +330,7 @@ void __init at91sam9260_initialize(unsigned long main_clock)
330 iotable_init(at91sam9260_sram_desc, ARRAY_SIZE(at91sam9260_sram_desc)); 330 iotable_init(at91sam9260_sram_desc, ARRAY_SIZE(at91sam9260_sram_desc));
331 331
332 if (cpu_is_at91sam9g20()) 332 if (cpu_is_at91sam9g20())
333 at91_arch_reset = at91sam9g20_reset; 333 at91_arch_reset = at91sam9_alt_reset;
334 else 334 else
335 at91_arch_reset = at91sam9260_reset; 335 at91_arch_reset = at91sam9260_reset;
336 336