xref: /openbmc/u-boot/arch/sh/cpu/sh3/cpu.c (revision 78a88f79)
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2007
4  * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
5  *
6  * (C) Copyright 2007
7  * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
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 
31 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
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 }
68