Skip to contentSkip to conversation

powerpc/fsl-booke: Enable L1 cache on e500v1/e500v2/e500mc CPUs

PATCH Applied Nate Case 2 participants 2 messages Jun 10, 2009 – Jun 11, 2009 PowerPC

lore
Share & tools
lore

Nate Case

author
#0 lore raw

PATCH 1/1 powerpc/fsl-booke: Enable L1 cache on e500v1/e500v2/e500mc CPUs

Some boot loaders may not enable L1 instruction/data cache. Check if data and instruction caches are enabled, and enable them if needed.

---
 arch/powerpc/include/asm/reg_booke.h      |    2 +
 arch/powerpc/kernel/cpu_setup_fsl_booke.S |   49 +++++++++++++++++++++++++++--
 2 files changed, 48 insertions(+), 3 deletions(-)
arch/powerpc/include/asm/reg_booke.h +2 -0
index 601ddbc..6bcf364 100644
@@ -389,12 +389,14 @@
 #define ICCR_CACHE	1		/* Cacheable */
 
 /* Bit definitions for L1CSR0. */
+#define L1CSR0_CPE	0x00010000	/* Data Cache Parity Enable */
 #define L1CSR0_CLFC	0x00000100	/* Cache Lock Bits Flash Clear */
 #define L1CSR0_DCFI	0x00000002	/* Data Cache Flash Invalidate */
 #define L1CSR0_CFI	0x00000002	/* Cache Flash Invalidate */
 #define L1CSR0_DCE	0x00000001	/* Data Cache Enable */
 
 /* Bit definitions for L1CSR1. */
+#define L1CSR1_CPE	0x00010000	/* Instruction Cache Parity Enable */
 #define L1CSR1_ICLFR	0x00000100	/* Instr Cache Lock Bits Flash Reset */
 #define L1CSR1_ICFI	0x00000002	/* Instr Cache Flash Invalidate */
 #define L1CSR1_ICE	0x00000001	/* Instr Cache Enable */
arch/powerpc/kernel/cpu_setup_fsl_booke.S +46 -3

59 lines not on this page · raw message

Signature · 1 line
1.6.0.2
Applied
#1 lore raw
Quoted 9 lines · Nate Case

Some boot loaders may not enable L1 instruction/data cache. Check if data and instruction caches are enabled, and enable them if needed.

---
arch/powerpc/include/asm/reg_booke.h | 2 +
arch/powerpc/kernel/cpu_setup_fsl_booke.S | 49 ++++++++++++++++++++
+++++++--

2 files changed, 48 insertions(+), 3 deletions(-)

applied to next

- k