Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2007 |
| 3 | * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> |
| 4 | * |
| 5 | * (C) Copyright 2007 |
| 6 | * Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
| 7 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #include <common.h> |
| 12 | #include <command.h> |
| 13 | #include <asm/processor.h> |
| 14 | |
| 15 | int checkcpu(void) |
| 16 | { |
| 17 | puts("CPU: SH3\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 | |
Wolfgang Denk | 6262d021 | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 32 | 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] | 33 | { |
| 34 | disable_interrupts(); |
| 35 | reset_cpu(0); |
| 36 | return 0; |
| 37 | } |
| 38 | |
| 39 | void flush_cache(unsigned long addr, unsigned long size) |
| 40 | { |
| 41 | |
| 42 | } |
| 43 | |
| 44 | void icache_enable(void) |
| 45 | { |
| 46 | } |
| 47 | |
| 48 | void icache_disable(void) |
| 49 | { |
| 50 | } |
| 51 | |
| 52 | int icache_status(void) |
| 53 | { |
| 54 | return 0; |
| 55 | } |
| 56 | |
| 57 | void dcache_enable(void) |
| 58 | { |
| 59 | } |
| 60 | |
| 61 | void dcache_disable(void) |
| 62 | { |
| 63 | } |
| 64 | |
| 65 | int dcache_status(void) |
| 66 | { |
| 67 | return 0; |
| 68 | } |
Simon Glass | 6c2afb8 | 2016-05-14 18:49:29 -0600 | [diff] [blame] | 69 | |
| 70 | void relocate_code(ulong start_addr_sp, gd_t *new_gd, ulong relocaaddr) |
| 71 | { |
| 72 | /* TODO(sh maintainer): Implement this */ |
| 73 | while (1); |
| 74 | } |