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>
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include "generic.h"
|
||||
#include "clock.h"
|
||||
|
||||
extern void at91sam9g20_reset(void);
|
||||
extern void at91sam9_alt_reset(void);
|
||||
|
||||
static struct map_desc at91sam9260_io_desc[] __initdata = {
|
||||
{
|
||||
@@ -330,7 +330,7 @@ void __init at91sam9260_initialize(unsigned long main_clock)
|
||||
iotable_init(at91sam9260_sram_desc, ARRAY_SIZE(at91sam9260_sram_desc));
|
||||
|
||||
if (cpu_is_at91sam9g20())
|
||||
at91_arch_reset = at91sam9g20_reset;
|
||||
at91_arch_reset = at91sam9_alt_reset;
|
||||
else
|
||||
at91_arch_reset = at91sam9260_reset;
|
||||
|
||||
|
Reference in New Issue
Block a user