diff options
author | Poonam Aggrwal <poonam.aggrwal@freescale.com> | 2011-11-01 18:58:20 +0530 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-11-08 08:37:25 -0600 |
commit | cfee584eeadbd6141f6729b19b424448599e4e47 (patch) | |
tree | e44d660e720f75f499f822e84bb68f52aa482367 /arch/powerpc/cpu | |
parent | 50cf3d17ce021fc6156d41abfbaa5490e8238c3b (diff) | |
download | talos-obmc-uboot-cfee584eeadbd6141f6729b19b424448599e4e47.tar.gz talos-obmc-uboot-cfee584eeadbd6141f6729b19b424448599e4e47.zip |
fsl_ifc: Fixed a bug in the erratum handling code for IFC_A003399
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>
Diffstat (limited to 'arch/powerpc/cpu')
-rw-r--r-- | arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c index 4ef3c9a8a5..091af7c95a 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c +++ b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c @@ -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(); |