blob: f1b8df9b0b205cf7b429549ebe68518371acf29d [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>
Nobuhiro Iwamatsu64f3c0b2009-02-27 18:35:41 +090011#include <netdev.h>
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090012#include <asm/processor.h>
Nobuhiro Iwamatsu0b135cf2007-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
Wolfgang Denk54841ab2010-06-28 22:00:46 +020031int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090032{
33 disable_interrupts();
34 reset_cpu (0);
35 return 0;
36}
37
Nobuhiro Iwamatsubd3980c2008-11-21 12:04:18 +090038int cpu_eth_init(bd_t *bis)
39{
40#ifdef CONFIG_SH_ETHER
41 sh_eth_initialize(bis);
42#endif
43 return 0;
44}