blob: 02e08df48de08234a7e751086ffd4da595220136 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Alexey Brodkin3a59d912014-02-04 12:56:14 +04002/*
3 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
Alexey Brodkin3a59d912014-02-04 12:56:14 +04004 */
5
6#include <command.h>
7#include <common.h>
8
Alexey Brodkin70a66c12018-05-30 12:19:54 +03009__weak void reset_cpu(ulong addr)
Alexey Brodkin3a59d912014-02-04 12:56:14 +040010{
Alexey Brodkin3a59d912014-02-04 12:56:14 +040011 /* Stop debug session here */
Alexey Brodkin2aef3902018-05-30 11:31:07 +030012 __builtin_arc_brk();
Alexey Brodkin70a66c12018-05-30 12:19:54 +030013}
14
15int 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 Brodkin3a59d912014-02-04 12:56:14 +040021 return 0;
22}