summaryrefslogtreecommitdiff
path: root/cpu/sh4/cpu.c
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>2007-09-23 02:12:30 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2007-09-23 02:12:30 +0900
commitb02bad128669e567fce87d8df823b06a0144b8db (patch)
treee388d06d722b283d09260ceab22f9cc342216f94 /cpu/sh4/cpu.c
parentb8685affe614ccf5f4ec66252b30e2e524d18948 (diff)
downloadu-boot-imx-b02bad128669e567fce87d8df823b06a0144b8db.zip
u-boot-imx-b02bad128669e567fce87d8df823b06a0144b8db.tar.gz
u-boot-imx-b02bad128669e567fce87d8df823b06a0144b8db.tar.bz2
sh: Update core code of SuperH.
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'cpu/sh4/cpu.c')
-rw-r--r--cpu/sh4/cpu.c24
1 files changed, 20 insertions, 4 deletions
diff --git a/cpu/sh4/cpu.c b/cpu/sh4/cpu.c
index 70df45e..d76d518 100644
--- a/cpu/sh4/cpu.c
+++ b/cpu/sh4/cpu.c
@@ -23,6 +23,7 @@
#include <common.h>
#include <command.h>
+#include <asm/processor.h>
int checkcpu(void)
{
@@ -48,20 +49,35 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 0;
}
-void flush_cache (unsigned long addr, unsigned long size){}
+void flush_cache (unsigned long addr, unsigned long size)
+{
+
+}
void icache_enable (void)
{
-
+ cache_control(0);
}
void icache_disable (void)
{
-
+ cache_control(1);
}
-
int icache_status (void)
{
return 0;
}
+
+void dcache_enable (void)
+{
+}
+
+void dcache_disable (void)
+{
+}
+
+int dcache_status (void)
+{
+ return 0;
+}