blob: 1b2f50dbe6e4339bc595374f9ad094564dc60442 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +09002/*
3 * (C) Copyright 2007
4 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +09005 */
6
7#include <common.h>
8#include <command.h>
Simon Glass36bf4462019-11-14 12:57:42 -07009#include <irq_func.h>
Simon Glass30c7c432019-11-14 12:57:34 -070010#include <cpu_func.h>
Simon Glass90526e92020-05-10 11:39:56 -060011#include <net.h>
Nobuhiro Iwamatsu64f3c0b2009-02-27 18:35:41 +090012#include <netdev.h>
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090013#include <asm/processor.h>
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090014
15int checkcpu(void)
16{
17 puts("CPU: SH4\n");
18 return 0;
19}
20
21int cpu_init (void)
22{
23 return 0;
24}
25
26int cleanup_before_linux (void)
27{
28 disable_interrupts();
29 return 0;
30}
31
Simon Glass09140112020-05-10 11:40:03 -060032int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090033{
34 disable_interrupts();
Harald Seiler35b65dd2020-12-15 16:47:52 +010035 reset_cpu();
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090036 return 0;
37}
38
Masahiro Yamadab75d8dc2020-06-26 15:13:33 +090039int cpu_eth_init(struct bd_info *bis)
Nobuhiro Iwamatsubd3980c2008-11-21 12:04:18 +090040{
41#ifdef CONFIG_SH_ETHER
42 sh_eth_initialize(bis);
43#endif
44 return 0;
45}