xref: /openbmc/u-boot/arch/sh/cpu/sh4/cpu.c (revision 78a88f79)
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 <netdev.h>
10 #include <asm/processor.h>
11 
12 int checkcpu(void)
13 {
14 	puts("CPU: SH4\n");
15 	return 0;
16 }
17 
18 int cpu_init (void)
19 {
20 	return 0;
21 }
22 
23 int cleanup_before_linux (void)
24 {
25 	disable_interrupts();
26 	return 0;
27 }
28 
29 int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
30 {
31 	disable_interrupts();
32 	reset_cpu (0);
33 	return 0;
34 }
35 
36 int cpu_eth_init(bd_t *bis)
37 {
38 #ifdef CONFIG_SH_ETHER
39 	sh_eth_initialize(bis);
40 #endif
41 	return 0;
42 }
43