blob: 9a95f085044ade0c8f62fe489263c455b08df221 [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
Przemyslaw Marczak1fb4dab2014-09-01 13:50:48 +020026__weak void reset_misc(void)
27{
28}
29
Wolfgang Denk54841ab2010-06-28 22:00:46 +020030int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
Jean-Christophe PLAGNIOL-VILLARDab298232009-04-05 13:08:03 +020031{
32 puts ("resetting ...\n");
33
34 udelay (50000); /* wait 50 ms */
35
36 disable_interrupts();
Przemyslaw Marczak1fb4dab2014-09-01 13:50:48 +020037
38 reset_misc();
Jean-Christophe PLAGNIOL-VILLARDab298232009-04-05 13:08:03 +020039 reset_cpu(0);
40
41 /*NOTREACHED*/
42 return 0;
43}