Jean-Christophe PLAGNIOL-VILLARD | 189b87a | 2009-04-05 13:08:03 +0200 | [diff] [blame] | 1 | /* |
| 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 Zundel | f1b3f2b | 2009-05-13 10:54:10 +0200 | [diff] [blame] | 11 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
Jean-Christophe PLAGNIOL-VILLARD | 189b87a | 2009-04-05 13:08:03 +0200 | [diff] [blame] | 12 | * |
| 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 Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 21 | * SPDX-License-Identifier: GPL-2.0+ |
Jean-Christophe PLAGNIOL-VILLARD | 189b87a | 2009-04-05 13:08:03 +0200 | [diff] [blame] | 22 | */ |
| 23 | |
| 24 | #include <common.h> |
| 25 | |
Przemyslaw Marczak | ec1c122 | 2014-09-01 13:50:48 +0200 | [diff] [blame] | 26 | __weak void reset_misc(void) |
| 27 | { |
| 28 | } |
| 29 | |
Wolfgang Denk | 6262d021 | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 30 | int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
Jean-Christophe PLAGNIOL-VILLARD | 189b87a | 2009-04-05 13:08:03 +0200 | [diff] [blame] | 31 | { |
| 32 | puts ("resetting ...\n"); |
| 33 | |
| 34 | udelay (50000); /* wait 50 ms */ |
| 35 | |
| 36 | disable_interrupts(); |
Przemyslaw Marczak | ec1c122 | 2014-09-01 13:50:48 +0200 | [diff] [blame] | 37 | |
| 38 | reset_misc(); |
Jean-Christophe PLAGNIOL-VILLARD | 189b87a | 2009-04-05 13:08:03 +0200 | [diff] [blame] | 39 | reset_cpu(0); |
| 40 | |
| 41 | /*NOTREACHED*/ |
| 42 | return 0; |
| 43 | } |