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 | |
Wolfgang Denk | 6262d021 | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 26 | 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] | 27 | { |
| 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 | } |