2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
|
2014-09-01 11:50:48 +00:00
|
|
|
__weak void reset_misc(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
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();
|
2014-09-01 11:50:48 +00:00
|
|
|
|
|
|
|
reset_misc();
|
2009-04-05 11:08:03 +00:00
|
|
|
reset_cpu(0);
|
|
|
|
|
|
|
|
/*NOTREACHED*/
|
|
|
|
return 0;
|
|
|
|
}
|