]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
ab298231 JCPV |
2 | /* |
3 | * (C) Copyright 2002 | |
4 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> | |
5 | * Marius Groeger <[email protected]> | |
6 | * | |
7 | * (C) Copyright 2002 | |
8 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> | |
9 | * Alex Zuepke <[email protected]> | |
10 | * | |
11 | * (C) Copyright 2002 | |
792a09eb | 12 | * Gary Jennejohn, DENX Software Engineering, <[email protected]> |
ab298231 JCPV |
13 | * |
14 | * (C) Copyright 2004 | |
15 | * DAVE Srl | |
16 | * http://www.dave-tech.it | |
17 | * http://www.wawnet.biz | |
18 | * mailto:[email protected] | |
19 | * | |
20 | * (C) Copyright 2004 Texas Insturments | |
ab298231 JCPV |
21 | */ |
22 | ||
09140113 | 23 | #include <command.h> |
9a3b4ceb | 24 | #include <cpu_func.h> |
36bf446b | 25 | #include <irq_func.h> |
c05ed00a | 26 | #include <linux/delay.h> |
c5f4cdb8 | 27 | #include <stdio.h> |
ab298231 | 28 | |
1fb4dab2 PM |
29 | __weak void reset_misc(void) |
30 | { | |
31 | } | |
32 | ||
09140113 | 33 | int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) |
ab298231 JCPV |
34 | { |
35 | puts ("resetting ...\n"); | |
c5f4cdb8 | 36 | flush(); |
ab298231 JCPV |
37 | |
38 | disable_interrupts(); | |
1fb4dab2 PM |
39 | |
40 | reset_misc(); | |
35b65dd8 | 41 | reset_cpu(); |
ab298231 JCPV |
42 | |
43 | /*NOTREACHED*/ | |
44 | return 0; | |
45 | } |