Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <command.h> |
| 7 | #include <common.h> |
| 8 | |
Alexey Brodkin | 70a66c1 | 2018-05-30 12:19:54 +0300 | [diff] [blame] | 9 | __weak void reset_cpu(ulong addr) |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 10 | { |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 11 | /* Stop debug session here */ |
Alexey Brodkin | 2aef390 | 2018-05-30 11:31:07 +0300 | [diff] [blame] | 12 | __builtin_arc_brk(); |
Alexey Brodkin | 70a66c1 | 2018-05-30 12:19:54 +0300 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) |
| 16 | { |
| 17 | printf("Resetting the board...\n"); |
| 18 | |
| 19 | reset_cpu(0); |
| 20 | |
Alexey Brodkin | 3a59d91 | 2014-02-04 12:56:14 +0400 | [diff] [blame] | 21 | return 0; |
| 22 | } |