Need help on disabling data cache in U-Boot. We are using P1011. I tried flag in U-Boot CONFIG_SYS_DCACHE_OFF but this doesn't help.
Did following routine execution:
- flush_dcache --> dcache_disable
- interrupts_disable --> dcache_disable
- Changed source in arch/powerpc/cpu/mpc85xx/release.S and tried to modified source wherever L1CSR0_DCE bit getting set.
In all the above cases, CPU just hangs.
printf("\nData (writethrough) Cache is %s\n", dcache_status() ? "ON" : "OFF"); This works and Status comes as ON
flush_dcache also works but as soon dcache_disable is called CPU hangs.
Please suggest, if I am missing something here. Also Does MAS2_I need to be set to 1?