diff mbox

[U-Boot,08/21] avr32: Generic system restart support

Message ID 1299519462-25320-9-git-send-email-Kyle.D.Moffett@boeing.com
State Superseded
Delegated to: Reinhard Meyer
Headers show

Commit Message

Kyle Moffett March 7, 2011, 5:37 p.m. UTC
The AVR32 port uses the exact same restart code on all supported CPUs,
so that do_reset() function is simply altered to use the new prototype
for __arch_restart().

It will probably work even when the CPU is in a bad state, so no
separate __arch_emergency_restart() function is required.

Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com>
Cc: Reinhard Meyer <u-boot@emk-elektronik.de>
---
 arch/avr32/cpu/cpu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/arch/avr32/cpu/cpu.c b/arch/avr32/cpu/cpu.c
index e4489bb..ca2226b 100644
--- a/arch/avr32/cpu/cpu.c
+++ b/arch/avr32/cpu/cpu.c
@@ -76,7 +76,7 @@  void prepare_to_boot(void)
 		     "sync   0" : : "r"(0) : "memory");
 }
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int __arch_restart(void)
 {
 	/* This will reset the CPU core, caches, MMU and all internal busses */
 	__builtin_mtdr(8, 1 << 13);	/* set DC:DBE */