Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / arch / sh / cpu / sh4 / cpu.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2007
4  * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
5  */
6
7 #include <common.h>
8 #include <command.h>
9 #include <irq_func.h>
10 #include <cpu_func.h>
11 #include <net.h>
12 #include <netdev.h>
13 #include <asm/processor.h>
14
15 int checkcpu(void)
16 {
17         puts("CPU: SH4\n");
18         return 0;
19 }
20
21 int cpu_init (void)
22 {
23         return 0;
24 }
25
26 int cleanup_before_linux (void)
27 {
28         disable_interrupts();
29         return 0;
30 }
31
32 int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
33 {
34         disable_interrupts();
35         reset_cpu(0);
36         return 0;
37 }
38
39 int cpu_eth_init(bd_t *bis)
40 {
41 #ifdef CONFIG_SH_ETHER
42         sh_eth_initialize(bis);
43 #endif
44         return 0;
45 }