blob: 30dd4b5238b26ebfcb7ac655201b089c547881b8 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Alexey Brodkin2f16ac92014-02-04 12:56:14 +04002/*
3 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
Alexey Brodkin2f16ac92014-02-04 12:56:14 +04004 */
5
6#include <command.h>
7#include <common.h>
Simon Glass9a3b4ce2019-12-28 10:45:01 -07008#include <cpu_func.h>
Alexey Brodkin2f16ac92014-02-04 12:56:14 +04009
Alexey Brodkineb5c8532018-05-30 12:19:54 +030010__weak void reset_cpu(ulong addr)
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040011{
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040012 /* Stop debug session here */
Alexey Brodkin8f187142018-05-30 11:31:07 +030013 __builtin_arc_brk();
Alexey Brodkineb5c8532018-05-30 12:19:54 +030014}
15
16int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
17{
18 printf("Resetting the board...\n");
19
20 reset_cpu(0);
21
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040022 return 0;
23}