Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 970dc33 | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2007 |
| 4 | * Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
Nobuhiro Iwamatsu | 970dc33 | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <command.h> |
Simon Glass | 1fa70f8 | 2019-11-14 12:57:34 -0700 | [diff] [blame] | 9 | #include <cpu_func.h> |
Nobuhiro Iwamatsu | fe77115 | 2009-02-27 18:35:41 +0900 | [diff] [blame] | 10 | #include <netdev.h> |
Nobuhiro Iwamatsu | 547b67f | 2007-09-23 02:12:30 +0900 | [diff] [blame] | 11 | #include <asm/processor.h> |
Nobuhiro Iwamatsu | 970dc33 | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 12 | |
| 13 | int checkcpu(void) |
| 14 | { |
| 15 | puts("CPU: SH4\n"); |
| 16 | return 0; |
| 17 | } |
| 18 | |
| 19 | int cpu_init (void) |
| 20 | { |
| 21 | return 0; |
| 22 | } |
| 23 | |
| 24 | int cleanup_before_linux (void) |
| 25 | { |
| 26 | disable_interrupts(); |
| 27 | return 0; |
| 28 | } |
| 29 | |
Wolfgang Denk | 6262d021 | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 30 | int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
Nobuhiro Iwamatsu | 970dc33 | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 31 | { |
| 32 | disable_interrupts(); |
| 33 | reset_cpu (0); |
| 34 | return 0; |
| 35 | } |
| 36 | |
Nobuhiro Iwamatsu | d8f5d50 | 2008-11-21 12:04:18 +0900 | [diff] [blame] | 37 | int cpu_eth_init(bd_t *bis) |
| 38 | { |
| 39 | #ifdef CONFIG_SH_ETHER |
| 40 | sh_eth_initialize(bis); |
| 41 | #endif |
| 42 | return 0; |
| 43 | } |