reset.c (8f187142e51634d6887ef397cd6abaa7fab14b21) | reset.c (eb5c853938cb784bbf83ab87847e94764c3cd00a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. 4 */ 5 6#include <command.h> 7#include <common.h> 8 | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. 4 */ 5 6#include <command.h> 7#include <common.h> 8 |
9int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) | 9__weak void reset_cpu(ulong addr) |
10{ | 10{ |
11 printf("Put your restart handler here\n"); 12 13#ifdef DEBUG | |
14 /* Stop debug session here */ 15 __builtin_arc_brk(); | 11 /* Stop debug session here */ 12 __builtin_arc_brk(); |
16#endif | 13} 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 |
17 return 0; 18} | 21 return 0; 22} |