blob: 08e6acb2615ad5082cc8474e2c2c476ee65da165 [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARDab298232009-04-05 13:08:03 +02001/*
2 * (C) Copyright 2002
3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
5 *
6 * (C) Copyright 2002
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8 * Alex Zuepke <azu@sysgo.de>
9 *
10 * (C) Copyright 2002
Detlev Zundel792a09e2009-05-13 10:54:10 +020011 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
Jean-Christophe PLAGNIOL-VILLARDab298232009-04-05 13:08:03 +020012 *
13 * (C) Copyright 2004
14 * DAVE Srl
15 * http://www.dave-tech.it
16 * http://www.wawnet.biz
17 * mailto:info@wawnet.biz
18 *
19 * (C) Copyright 2004 Texas Insturments
20 *
21 * See file CREDITS for list of people who contributed to this
22 * project.
23 *
24 * This program is free software; you can redistribute it and/or
25 * modify it under the terms of the GNU General Public License as
26 * published by the Free Software Foundation; either version 2 of
27 * the License, or (at your option) any later version.
28 *
29 * This program is distributed in the hope that it will be useful,
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * GNU General Public License for more details.
33 *
34 * You should have received a copy of the GNU General Public License
35 * along with this program; if not, write to the Free Software
36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
37 * MA 02111-1307 USA
38 */
39
40#include <common.h>
41
Wolfgang Denk54841ab2010-06-28 22:00:46 +020042int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
Jean-Christophe PLAGNIOL-VILLARDab298232009-04-05 13:08:03 +020043{
44 puts ("resetting ...\n");
45
46 udelay (50000); /* wait 50 ms */
47
48 disable_interrupts();
49 reset_cpu(0);
50
51 /*NOTREACHED*/
52 return 0;
53}