So my software engineer was attempting to enable ECC fro l2 Cache and was unable to using this code snippet for an AM3715:
MRC p15, 1, <Rd>, c9, c0, 2 ; Read L2 Cache Auxiliary Control Register
ORR <Rd>, <Rd>, #0x0020_0000; Set parity/ECC enable
MCR p15, 1, <Rd>, c9, c0, 2 ; Write L2 Cache Auxiliary Control Register
MRC p15, 1, <Rd>, c9, c0, 2 ; Read L2 Cache Auxiliary Control Register
TST <Rd>, #0x0020_0000 ; Test for parity/ECC enable
BEQ no_parity_ram_setup
parity_ram_setup:
;<do parity RAM setup>
B done_parity_RAM_setup
no_parity_ram_setup:
;<do no parity/ECC RAM setup>
done_parity_RAM_setup:
;<continue>
He stated that the all indications show that the processor does not support this function. The cortex a8 shows this is the step to enable it and to verify that it was enabled, but he stated that it does not enable. Does this processor support ECC and if so what is the code I need to implement that will enable the bit. Thank you!