sw_apps:zynqmp_fsbl: disable cache during ECC initialization

Disabling cache ensures proper initialization of ECC

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
This commit is contained in:
Sarat Chand Savitala 2015-03-20 18:10:33 +05:30 committed by Nava kishore Manne
parent 659a5ebfc2
commit e3aad72bc2

View file

@ -438,11 +438,15 @@ void XFsbl_EccInitialize(u32 Address, u32 Length)
{
u32 Index=0U;
/* Disable cache to ensure proper ECC initialization */
Xil_DCacheDisable();
while (Index<Length)
{
XFsbl_Out32(Address+Index, 1U) ;
Index += 4U;
}
Xil_DCacheEnable();
XFsbl_Printf(DEBUG_INFO,
"Address 0x%0lx, Length %0lx, ECC initialized \r\n",
Address, Length);