summaryrefslogtreecommitdiff
path: root/include/asm-sh
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>2008-11-25 11:05:19 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2008-12-10 23:11:35 +0900
commitc54b9a42d8f5ab5b2a039b3a2e6fde8b427745e5 (patch)
tree6df36960cfb5daa3273b361a6168910184d581e4 /include/asm-sh
parente9d5f35497885b3c65d494d09a525d443dcccd3b (diff)
downloadu-boot-imx-c54b9a42d8f5ab5b2a039b3a2e6fde8b427745e5.zip
u-boot-imx-c54b9a42d8f5ab5b2a039b3a2e6fde8b427745e5.tar.gz
u-boot-imx-c54b9a42d8f5ab5b2a039b3a2e6fde8b427745e5.tar.bz2
sh: Changed value of CACHE_OC_NUM_ENTRIES and CACHE_OC_WAY_SHIFT
SH4 is different a value of CACHE_OC_NUM_ENTRIES and CACHE_OC_WAY_SHIFT every CPU. This patch corrects these values. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'include/asm-sh')
-rw-r--r--include/asm-sh/cpu_sh4.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-sh/cpu_sh4.h b/include/asm-sh/cpu_sh4.h
index b6cc6cf..d2dbfcd 100644
--- a/include/asm-sh/cpu_sh4.h
+++ b/include/asm-sh/cpu_sh4.h
@@ -26,8 +26,15 @@
#define CCR_CACHE_ICI 0x00000800
#define CACHE_OC_ADDRESS_ARRAY 0xf4000000
+
+#if defined (CONFIG_CPU_SH7750) || \
+ defined(CONFIG_CPU_SH7751)
#define CACHE_OC_WAY_SHIFT 14
#define CACHE_OC_NUM_ENTRIES 512
+#else
+#define CACHE_OC_WAY_SHIFT 13
+#define CACHE_OC_NUM_ENTRIES 256
+#endif
#define CACHE_OC_ENTRY_SHIFT 5
#if defined (CONFIG_CPU_SH7750) || \