diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2014-03-07 07:38:11 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2014-06-03 05:44:48 -0400 |
commit | ef680cdc24376f394841a3f19b3a7ef6d57a009d (patch) | |
tree | d70faaeb25f0109b051d675e3ca02641785cbe34 /arch/arc/include/asm/cache.h | |
parent | e87a850b9c92be6a8cf5735c516ec864d65f24dd (diff) |
ARC: Disable caches in early boot if so configured
Requested-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/asm/cache.h')
-rw-r--r-- | arch/arc/include/asm/cache.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arc/include/asm/cache.h b/arch/arc/include/asm/cache.h index 2fd3162ec4df..c1d3d2da1191 100644 --- a/arch/arc/include/asm/cache.h +++ b/arch/arc/include/asm/cache.h | |||
@@ -55,4 +55,31 @@ extern void read_decode_cache_bcr(void); | |||
55 | 55 | ||
56 | #endif /* !__ASSEMBLY__ */ | 56 | #endif /* !__ASSEMBLY__ */ |
57 | 57 | ||
58 | /* Instruction cache related Auxiliary registers */ | ||
59 | #define ARC_REG_IC_BCR 0x77 /* Build Config reg */ | ||
60 | #define ARC_REG_IC_IVIC 0x10 | ||
61 | #define ARC_REG_IC_CTRL 0x11 | ||
62 | #define ARC_REG_IC_IVIL 0x19 | ||
63 | #if defined(CONFIG_ARC_MMU_V3) || defined (CONFIG_ARC_MMU_V4) | ||
64 | #define ARC_REG_IC_PTAG 0x1E | ||
65 | #endif | ||
66 | |||
67 | /* Bit val in IC_CTRL */ | ||
68 | #define IC_CTRL_CACHE_DISABLE 0x1 | ||
69 | |||
70 | /* Data cache related Auxiliary registers */ | ||
71 | #define ARC_REG_DC_BCR 0x72 /* Build Config reg */ | ||
72 | #define ARC_REG_DC_IVDC 0x47 | ||
73 | #define ARC_REG_DC_CTRL 0x48 | ||
74 | #define ARC_REG_DC_IVDL 0x4A | ||
75 | #define ARC_REG_DC_FLSH 0x4B | ||
76 | #define ARC_REG_DC_FLDL 0x4C | ||
77 | #if defined(CONFIG_ARC_MMU_V3) || defined (CONFIG_ARC_MMU_V4) | ||
78 | #define ARC_REG_DC_PTAG 0x5C | ||
79 | #endif | ||
80 | |||
81 | /* Bit val in DC_CTRL */ | ||
82 | #define DC_CTRL_INV_MODE_FLUSH 0x40 | ||
83 | #define DC_CTRL_FLUSH_STATUS 0x100 | ||
84 | |||
58 | #endif /* _ASM_CACHE_H */ | 85 | #endif /* _ASM_CACHE_H */ |