Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2007 |
| 4 | * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> |
| 5 | * |
| 6 | * (C) Copyright 2007 |
| 7 | * Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <common.h> |
| 11 | #include <command.h> |
| 12 | #include <asm/processor.h> |
| 13 | |
| 14 | int checkcpu(void) |
| 15 | { |
| 16 | puts("CPU: SH3\n"); |
| 17 | return 0; |
| 18 | } |
| 19 | |
| 20 | int cpu_init(void) |
| 21 | { |
| 22 | return 0; |
| 23 | } |
| 24 | |
| 25 | int cleanup_before_linux(void) |
| 26 | { |
| 27 | disable_interrupts(); |
| 28 | return 0; |
| 29 | } |
| 30 | |
Wolfgang Denk | 6262d021 | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 31 | int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 32 | { |
| 33 | disable_interrupts(); |
| 34 | reset_cpu(0); |
| 35 | return 0; |
| 36 | } |
| 37 | |
| 38 | void flush_cache(unsigned long addr, unsigned long size) |
| 39 | { |
| 40 | |
| 41 | } |
| 42 | |
| 43 | void icache_enable(void) |
| 44 | { |
| 45 | } |
| 46 | |
| 47 | void icache_disable(void) |
| 48 | { |
| 49 | } |
| 50 | |
| 51 | int icache_status(void) |
| 52 | { |
| 53 | return 0; |
| 54 | } |
| 55 | |
| 56 | void dcache_enable(void) |
| 57 | { |
| 58 | } |
| 59 | |
| 60 | void dcache_disable(void) |
| 61 | { |
| 62 | } |
| 63 | |
| 64 | int dcache_status(void) |
| 65 | { |
| 66 | return 0; |
| 67 | } |