blob: 7a0358071ced67b39f7f9f77cf261c827659e276 [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 *
Wolfgang Denk1a459662013-07-08 09:37:19 +020021 * SPDX-License-Identifier: GPL-2.0+
Jean-Christophe PLAGNIOL-VILLARDab298232009-04-05 13:08:03 +020022 */
23
24#include <common.h>
25
Wolfgang Denk54841ab2010-06-28 22:00:46 +020026int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
Jean-Christophe PLAGNIOL-VILLARDab298232009-04-05 13:08:03 +020027{
28 puts ("resetting ...\n");
29
30 udelay (50000); /* wait 50 ms */
31
32 disable_interrupts();
33 reset_cpu(0);
34
35 /*NOTREACHED*/
36 return 0;
37}