2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2014-02-04 08:56:14 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <command.h>
|
|
|
|
#include <common.h>
|
2019-12-28 17:45:01 +00:00
|
|
|
#include <cpu_func.h>
|
2014-02-04 08:56:14 +00:00
|
|
|
|
2018-05-30 09:19:54 +00:00
|
|
|
__weak void reset_cpu(ulong addr)
|
2014-02-04 08:56:14 +00:00
|
|
|
{
|
|
|
|
/* Stop debug session here */
|
2018-05-30 08:31:07 +00:00
|
|
|
__builtin_arc_brk();
|
2018-05-30 09:19:54 +00:00
|
|
|
}
|
|
|
|
|
2020-05-10 17:40:03 +00:00
|
|
|
int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
2018-05-30 09:19:54 +00:00
|
|
|
{
|
|
|
|
printf("Resetting the board...\n");
|
|
|
|
|
|
|
|
reset_cpu(0);
|
|
|
|
|
2014-02-04 08:56:14 +00:00
|
|
|
return 0;
|
|
|
|
}
|