fsl_ifc: Fixed a bug in the erratum handling code for IFC_A003399
authorPoonam Aggrwal <poonam.aggrwal@freescale.com>
Tue, 1 Nov 2011 13:28:20 +0000 (18:58 +0530)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 8 Nov 2011 14:37:25 +0000 (08:37 -0600)
Wrong pointer was being used to copy code into L2SRAM.
Also removed the unreferenced variable l2srbar.

Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/cpu_init_early.c

index 4ef3c9a8a5fedcb3c0306cdefcf2fe1ff7e71930..091af7c95af03433770e332351e6d45c50a83ca6 100644 (file)
@@ -71,7 +71,7 @@ void cpu_init_early_f(void)
 #endif
 #if defined(CONFIG_SYS_FSL_ERRATUM_IFC_A003399) && !defined(CONFIG_SYS_RAMBOOT)
        ccsr_l2cache_t *l2cache = (void *)CONFIG_SYS_MPC85xx_L2_ADDR;
-       u32  *l2srbar, *dst, *src;
+       u32  *dst, *src;
        void (*setup_ifc_sram)(void);
 #endif
 
@@ -137,7 +137,7 @@ void cpu_init_early_f(void)
        dst = (u32 *) SRAM_BASE_ADDR;
        src = (u32 *) setup_ifc;
        for (i = 0; i < 1024; i++)
-               *l2srbar++ = *src++;
+               *dst++ = *src++;
 
        setup_ifc_sram();