diff mbox

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

Message ID 1299519462-25320-14-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 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@boeing.com>
Cc: Michal Simek <monstr@monstr.eu>
---
 .../xilinx/microblaze-generic/microblaze-generic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

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)) =