blob: b0ad685a91b12080a67b039efeba47759e088335 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +09002/*
3 * (C) Copyright 2007
4 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +09005 */
6
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +09007#include <command.h>
Simon Glass8f3f7612019-11-14 12:57:42 -07008#include <irq_func.h>
Simon Glass1fa70f82019-11-14 12:57:34 -07009#include <cpu_func.h>
Simon Glass274e0b02020-05-10 11:39:56 -060010#include <net.h>
Nobuhiro Iwamatsufe771152009-02-27 18:35:41 +090011#include <netdev.h>
Nobuhiro Iwamatsu547b67f2007-09-23 02:12:30 +090012#include <asm/processor.h>
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +090013
14int checkcpu(void)
15{
16 puts("CPU: SH4\n");
17 return 0;
18}
19
20int cpu_init (void)
21{
22 return 0;
23}
24
25int cleanup_before_linux (void)
26{
27 disable_interrupts();
28 return 0;
29}
30
Simon Glassed38aef2020-05-10 11:40:03 -060031int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +090032{
33 disable_interrupts();
Harald Seiler6f14d5f2020-12-15 16:47:52 +010034 reset_cpu();
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +090035 return 0;
36}
37
Masahiro Yamadaf7ed78b2020-06-26 15:13:33 +090038int cpu_eth_init(struct bd_info *bis)
Nobuhiro Iwamatsud8f5d502008-11-21 12:04:18 +090039{
40#ifdef CONFIG_SH_ETHER
41 sh_eth_initialize(bis);
42#endif
43 return 0;
44}