diff mbox

[U-Boot,07/21] arm: Generic system restart support

Message ID 1299519462-25320-8-git-send-email-Kyle.D.Moffett@boeing.com
State Superseded, archived
Headers show

Commit Message

Kyle Moffett March 7, 2011, 5:37 p.m. UTC
The ARM port has its own reset_cpu() dispatch for its various supported
CPU families, so the existing do_reset() function is simply altered to
use the new prototype for __arch_restart().

In addition, the debug message and delay are duplicated from the generic
code, so they are removed.

This reset code 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: Albert Aribaud <albert.aribaud@free.fr>
---
 arch/arm/lib/reset.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/arch/arm/lib/reset.c b/arch/arm/lib/reset.c
index 08e6acb..ec4861e 100644
--- a/arch/arm/lib/reset.c
+++ b/arch/arm/lib/reset.c
@@ -39,12 +39,8 @@ 
 
 #include <common.h>
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int __arch_reset(void)
 {
-	puts ("resetting ...\n");
-
-	udelay (50000);				/* wait 50 ms */
-
 	disable_interrupts();
 	reset_cpu(0);