Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2007 |
| 4 | * Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <command.h> |
Simon Glass | 36bf446 | 2019-11-14 12:57:42 -0700 | [diff] [blame] | 9 | #include <irq_func.h> |
Simon Glass | 30c7c43 | 2019-11-14 12:57:34 -0700 | [diff] [blame] | 10 | #include <cpu_func.h> |
Simon Glass | 90526e9 | 2020-05-10 11:39:56 -0600 | [diff] [blame] | 11 | #include <net.h> |
Nobuhiro Iwamatsu | 64f3c0b | 2009-02-27 18:35:41 +0900 | [diff] [blame] | 12 | #include <netdev.h> |
Nobuhiro Iwamatsu | b02bad1 | 2007-09-23 02:12:30 +0900 | [diff] [blame] | 13 | #include <asm/processor.h> |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 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 | |
Simon Glass | 0914011 | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 32 | int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 33 | { |
| 34 | disable_interrupts(); |
Simon Glass | 9a3b4ce | 2019-12-28 10:45:01 -0700 | [diff] [blame] | 35 | reset_cpu(0); |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 36 | return 0; |
| 37 | } |
| 38 | |
Nobuhiro Iwamatsu | bd3980c | 2008-11-21 12:04:18 +0900 | [diff] [blame] | 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 | } |