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