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:
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();
dcache_disable();
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?
Try to set cache-Inhibit attributes in the MMU before cache disabling.
Regards,
Bulat