2009-04-05 11:08:03 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2002
|
|
|
|
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
|
|
|
|
* Marius Groeger <mgroeger@sysgo.de>
|
|
|
|
*
|
|
|
|
* (C) Copyright 2002
|
|
|
|
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
|
|
|
|
* Alex Zuepke <azu@sysgo.de>
|
|
|
|
*
|
|
|
|
* (C) Copyright 2002
|
2009-05-13 08:54:10 +00:00
|
|
|
* Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
|
2009-04-05 11:08:03 +00:00
|
|
|
*
|
|
|
|
* (C) Copyright 2004
|
|
|
|
* DAVE Srl
|
|
|
|
* http://www.dave-tech.it
|
|
|
|
* http://www.wawnet.biz
|
|
|
|
* mailto:info@wawnet.biz
|
|
|
|
*
|
|
|
|
* (C) Copyright 2004 Texas Insturments
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2009-04-05 11:08:03 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
|
2010-06-28 20:00:46 +00:00
|
|
|
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
2009-04-05 11:08:03 +00:00
|
|
|
{
|
|
|
|
puts ("resetting ...\n");
|
|
|
|
|
|
|
|
udelay (50000); /* wait 50 ms */
|
|
|
|
|
|
|
|
disable_interrupts();
|
|
|
|
reset_cpu(0);
|
|
|
|
|
|
|
|
/*NOTREACHED*/
|
|
|
|
return 0;
|
|
|
|
}
|