blob: ee36aca407d2fac0923c6564b7e4f65221c6e409 [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
7#include <common.h>
8#include <command.h>
Simon Glass1fa70f82019-11-14 12:57:34 -07009#include <cpu_func.h>
Nobuhiro Iwamatsufe771152009-02-27 18:35:41 +090010#include <netdev.h>
Nobuhiro Iwamatsu547b67f2007-09-23 02:12:30 +090011#include <asm/processor.h>
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +090012
13int checkcpu(void)
14{
15 puts("CPU: SH4\n");
16 return 0;
17}
18
19int cpu_init (void)
20{
21 return 0;
22}
23
24int cleanup_before_linux (void)
25{
26 disable_interrupts();
27 return 0;
28}
29
Wolfgang Denk6262d0212010-06-28 22:00:46 +020030int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +090031{
32 disable_interrupts();
33 reset_cpu (0);
34 return 0;
35}
36
Nobuhiro Iwamatsud8f5d502008-11-21 12:04:18 +090037int cpu_eth_init(bd_t *bis)
38{
39#ifdef CONFIG_SH_ETHER
40 sh_eth_initialize(bis);
41#endif
42 return 0;
43}