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