[U-Boot] [PATCH 08/21] avr32: Generic system restart support
Kyle Moffett
Kyle.D.Moffett at boeing.com
Mon Mar 7 18:37:29 CET 2011
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 at boeing.com>
Cc: Reinhard Meyer <u-boot at emk-elektronik.de>
---
arch/avr32/cpu/cpu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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 */
--
1.7.2.3
More information about the U-Boot
mailing list