1
2
3
4
5
6
7 #ifndef __ASM_CPU_SH2_CACHE_H
8 #define __ASM_CPU_SH2_CACHE_H
9
10 #define L1_CACHE_SHIFT 4
11
12 #define SH_CACHE_VALID 1
13 #define SH_CACHE_UPDATED 2
14 #define SH_CACHE_COMBINED 4
15 #define SH_CACHE_ASSOC 8
16
17 #if defined(CONFIG_CPU_SUBTYPE_SH7619)
18 #define SH_CCR 0xffffffec
19
20 #define CCR_CACHE_CE 0x01
21 #define CCR_CACHE_WT 0x02
22
23
24
25 #define CCR_CACHE_CB 0x04
26
27
28
29 #define CCR_CACHE_CF 0x08
30
31 #define CACHE_OC_ADDRESS_ARRAY 0xf0000000
32 #define CACHE_OC_DATA_ARRAY 0xf1000000
33
34 #define CCR_CACHE_ENABLE CCR_CACHE_CE
35 #define CCR_CACHE_INVALIDATE CCR_CACHE_CF
36 #define CACHE_PHYSADDR_MASK 0x1ffffc00
37
38 #endif
39
40 #endif