]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
0b135cfc NI |
2 | /* |
3 | * (C) Copyright 2007 | |
4 | * Nobuhiro Iwamatsu <[email protected]> | |
0b135cfc NI |
5 | */ |
6 | ||
7 | #include <common.h> | |
8 | #include <command.h> | |
36bf446b | 9 | #include <irq_func.h> |
30c7c434 | 10 | #include <cpu_func.h> |
90526e9f | 11 | #include <net.h> |
64f3c0b8 | 12 | #include <netdev.h> |
b02bad12 | 13 | #include <asm/processor.h> |
0b135cfc NI |
14 | |
15 | int checkcpu(void) | |
16 | { | |
17 | puts("CPU: SH4\n"); | |
18 | return 0; | |
19 | } | |
20 | ||
21 | int cpu_init (void) | |
22 | { | |
23 | return 0; | |
24 | } | |
25 | ||
26 | int cleanup_before_linux (void) | |
27 | { | |
28 | disable_interrupts(); | |
29 | return 0; | |
30 | } | |
31 | ||
09140113 | 32 | int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) |
0b135cfc NI |
33 | { |
34 | disable_interrupts(); | |
9a3b4ceb | 35 | reset_cpu(0); |
0b135cfc NI |
36 | return 0; |
37 | } | |
38 | ||
bd3980cc NI |
39 | int cpu_eth_init(bd_t *bis) |
40 | { | |
41 | #ifdef CONFIG_SH_ETHER | |
42 | sh_eth_initialize(bis); | |
43 | #endif | |
44 | return 0; | |
45 | } |