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

Kyle Moffett Kyle.D.Moffett at boeing.com
Mon Mar 7 18:37:28 CET 2011


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 at boeing.com>
Cc: Albert Aribaud <albert.aribaud at free.fr>
---
 arch/arm/lib/reset.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

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);
 
-- 
1.7.2.3



More information about the U-Boot mailing list