]> Git Repo - u-boot.git/blob - arch/arc/lib/reset.c
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sh
[u-boot.git] / arch / arc / lib / reset.c
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 <cpu_func.h>
8
9 __weak void reset_cpu(void)
10 {
11         /* Stop debug session here */
12         __builtin_arc_brk();
13 }
14
15 int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
16 {
17         printf("Resetting the board...\n");
18
19         reset_cpu();
20
21         return 0;
22 }
This page took 0.027693 seconds and 4 git commands to generate.