]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sh: Changed value of CACHE_OC_NUM_ENTRIES and CACHE_OC_WAY_SHIFT
authorNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Tue, 25 Nov 2008 02:05:19 +0000 (11:05 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 10 Dec 2008 14:11:35 +0000 (23:11 +0900)
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>
include/asm-sh/cpu_sh4.h

index b6cc6cfbd97719873bb782f7ef65775175214d9e..d2dbfcd143e4fc417c00b11b9c713c4b04c04524 100644 (file)
 #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) || \