1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
6 #ifndef _ASM_CPU_SH4_H_
7 #define _ASM_CPU_SH4_H_
10 #define CCR_CACHE_STOP 0x00000808
11 #define CCR_CACHE_ENABLE 0x00000101
12 #define CCR_CACHE_ICI 0x00000800
14 #define CACHE_OC_ADDRESS_ARRAY 0xf4000000
16 #if defined (CONFIG_CPU_SH7750) || \
17 defined(CONFIG_CPU_SH7751)
18 #define CACHE_OC_WAY_SHIFT 14
19 #define CACHE_OC_NUM_ENTRIES 512
21 #define CACHE_OC_WAY_SHIFT 13
22 #define CACHE_OC_NUM_ENTRIES 256
24 #define CACHE_OC_ENTRY_SHIFT 5
26 #if defined (CONFIG_CPU_SH7750) || \
27 defined(CONFIG_CPU_SH7751)
28 # include <asm/cpu_sh7750.h>
29 #elif defined (CONFIG_CPU_SH7722)
30 # include <asm/cpu_sh7722.h>
31 #elif defined (CONFIG_CPU_SH7723)
32 # include <asm/cpu_sh7723.h>
33 #elif defined (CONFIG_CPU_SH7734)
34 # include <asm/cpu_sh7734.h>
35 #elif defined (CONFIG_CPU_SH7752)
36 # include <asm/cpu_sh7752.h>
37 #elif defined (CONFIG_CPU_SH7753)
38 # include <asm/cpu_sh7753.h>
39 #elif defined (CONFIG_CPU_SH7757)
40 # include <asm/cpu_sh7757.h>
41 #elif defined (CONFIG_CPU_SH7763)
42 # include <asm/cpu_sh7763.h>
43 #elif defined (CONFIG_CPU_SH7780)
44 # include <asm/cpu_sh7780.h>
46 # error "Unknown SH4 variant"
49 #endif /* _ASM_CPU_SH4_H_ */