diff options
| author | Prabhakar Kushwaha <prabhakar@freescale.com> | 2013-04-16 13:27:44 +0530 | 
|---|---|---|
| committer | Andy Fleming <afleming@freescale.com> | 2013-06-20 13:51:24 -0500 | 
| commit | 74fa22ed731036f0bc3424c720632c1ee2752896 (patch) | |
| tree | 394a46e8c7aabfd747fc01cb1dd60f1867126bf0 /arch/powerpc/cpu/mpc85xx/cpu_init_early.c | |
| parent | 76d354f411696d6e19fd3156d18cb0359887ce8a (diff) | |
| download | olio-uboot-2014.01-74fa22ed731036f0bc3424c720632c1ee2752896.tar.xz olio-uboot-2014.01-74fa22ed731036f0bc3424c720632c1ee2752896.zip | |
powerpc/mpc85xx:No NOR boot, do not compile IFC errata A003399
IFC errata A003399 is valid for IFC NOR boot i.e.if no on-board NOR flash or
no NOR boot, do not compile its workaround.
Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/cpu_init_early.c')
| -rw-r--r-- | arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c index 234fde484..f4403c2d4 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c +++ b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c @@ -25,7 +25,7 @@  DECLARE_GLOBAL_DATA_PTR; -#if defined(CONFIG_SYS_FSL_ERRATUM_IFC_A003399) && !defined(CONFIG_SYS_RAMBOOT) +#ifdef CONFIG_A003399_NOR_WORKAROUND  void setup_ifc(void)  {  	struct fsl_ifc *ifc_regs = (void *)CONFIG_SYS_IFC_ADDR; @@ -99,7 +99,7 @@ void cpu_init_early_f(void)  #ifdef CONFIG_SYS_FSL_ERRATUM_P1010_A003549  	ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);  #endif -#if defined(CONFIG_SYS_FSL_ERRATUM_IFC_A003399) && !defined(CONFIG_SYS_RAMBOOT) +#ifdef CONFIG_A003399_NOR_WORKAROUND  	ccsr_l2cache_t *l2cache = (void *)CONFIG_SYS_MPC85xx_L2_ADDR;  	u32  *dst, *src;  	void (*setup_ifc_sram)(void); @@ -138,7 +138,7 @@ void cpu_init_early_f(void)   * Work Around for IFC Erratum A003399, issue will hit only when execution   * from NOR Flash   */ -#if defined(CONFIG_SYS_FSL_ERRATUM_IFC_A003399) && !defined(CONFIG_SYS_RAMBOOT) +#ifdef CONFIG_A003399_NOR_WORKAROUND  #define SRAM_BASE_ADDR	(0x00000000)  	/* TLB for SRAM */  	mas0 = MAS0_TLBSEL(1) | MAS0_ESEL(9); |