Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Jean-Christophe PLAGNIOL-VILLARD | ab29823 | 2009-04-05 13:08:03 +0200 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2002 |
| 4 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| 5 | * Marius Groeger <mgroeger@sysgo.de> |
| 6 | * |
| 7 | * (C) Copyright 2002 |
| 8 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| 9 | * Alex Zuepke <azu@sysgo.de> |
| 10 | * |
| 11 | * (C) Copyright 2002 |
Detlev Zundel | 792a09e | 2009-05-13 10:54:10 +0200 | [diff] [blame] | 12 | * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
Jean-Christophe PLAGNIOL-VILLARD | ab29823 | 2009-04-05 13:08:03 +0200 | [diff] [blame] | 13 | * |
| 14 | * (C) Copyright 2004 |
| 15 | * DAVE Srl |
| 16 | * http://www.dave-tech.it |
| 17 | * http://www.wawnet.biz |
| 18 | * mailto:info@wawnet.biz |
| 19 | * |
| 20 | * (C) Copyright 2004 Texas Insturments |
Jean-Christophe PLAGNIOL-VILLARD | ab29823 | 2009-04-05 13:08:03 +0200 | [diff] [blame] | 21 | */ |
| 22 | |
| 23 | #include <common.h> |
| 24 | |
Przemyslaw Marczak | 1fb4dab | 2014-09-01 13:50:48 +0200 | [diff] [blame] | 25 | __weak void reset_misc(void) |
| 26 | { |
| 27 | } |
| 28 | |
Wolfgang Denk | 54841ab | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 29 | int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
Jean-Christophe PLAGNIOL-VILLARD | ab29823 | 2009-04-05 13:08:03 +0200 | [diff] [blame] | 30 | { |
| 31 | puts ("resetting ...\n"); |
| 32 | |
| 33 | udelay (50000); /* wait 50 ms */ |
| 34 | |
| 35 | disable_interrupts(); |
Przemyslaw Marczak | 1fb4dab | 2014-09-01 13:50:48 +0200 | [diff] [blame] | 36 | |
| 37 | reset_misc(); |
Jean-Christophe PLAGNIOL-VILLARD | ab29823 | 2009-04-05 13:08:03 +0200 | [diff] [blame] | 38 | reset_cpu(0); |
| 39 | |
| 40 | /*NOTREACHED*/ |
| 41 | return 0; |
| 42 | } |