[U-Boot] [PATCH 13/21] microblaze: Generic system restart support

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


The MicroBlaze port only seems to have a single "microblaze-generic"
board right now with completely undocumented "restart" functionality.

Since the only do_reset() function in the port is in the board-specific
directory, it is renamed __board_restart().

It is unclear whether or not the code properly supports emergency
restart.  A new __board_emergency_restart() may need to be implemented.

Signed-off-by: Kyle Moffett <Kyle.D.Moffett at boeing.com>
Cc: Michal Simek <monstr at monstr.eu>
---
 .../xilinx/microblaze-generic/microblaze-generic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c
index 183e4dc..d7f0eaa 100644
--- a/board/xilinx/microblaze-generic/microblaze-generic.c
+++ b/board/xilinx/microblaze-generic/microblaze-generic.c
@@ -31,7 +31,7 @@
 #include <asm/microblaze_intc.h>
 #include <asm/asm.h>
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int __board_restart(void)
 {
 #ifdef CONFIG_SYS_GPIO_0
 	*((unsigned long *)(CONFIG_SYS_GPIO_0_ADDR)) =
-- 
1.7.2.3



More information about the U-Boot mailing list