I was trying to find an example in Starterware that shows how to setup/enable use of L2. The use case for enabling is for an applicaitons executing code from NOR XIP.
The below code is apparentely not sufficient (has not been demonstrated to work.)
//Disable L2 cache
MRC P15, 0, r1, C1, C0, 1
BIC r1, r1, #0x2
MCR P15, 0 , r1, C1, C0, 1
//Set L2EN bit
MRC P15, 0, r1, C1, C0, 0
ORR r1,r1, #0x2
MCR P15, 0 , r1, C1, C0, 0
//set C bit
MRC P15, 0, r1, C1, C0, 1
ORR r1,r1, #0x4
MCR P15, 0 , r1, C1, C0, 1
Thanks,