blob: aa8d4dfcd1c259224e54d0142c267d8f78b564d4 [file] [log] [blame]
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +09001/*
2 * (C) Copyright 2007
3 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu970dc332007-05-13 20:58:00 +09006 */
7
8#include <common.h>
9#include <command.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}