Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / arch / mips / cpu / cpu.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2003
4  * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
5  */
6
7 #include <common.h>
8 #include <command.h>
9 #include <init.h>
10 #include <linux/compiler.h>
11 #include <asm/cache.h>
12 #include <asm/mipsregs.h>
13 #include <asm/reboot.h>
14
15 #ifndef CONFIG_SYSRESET
16 void __weak _machine_restart(void)
17 {
18         fprintf(stderr, "*** reset failed ***\n");
19
20         while (1)
21                 /* NOP */;
22 }
23
24 int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
25 {
26         _machine_restart();
27
28         return 0;
29 }
30 #endif
31
32 int arch_cpu_init(void)
33 {
34         mips_cache_probe();
35         return 0;
36 }