mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	powerpc/85xx: Rename MPC8572 DDR erratum to DDR115
Use unique erratum number instead of platform number. Enable command that reports errata on MPC8572DS. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
		
							parent
							
								
									67f9447634
								
							
						
					
					
						commit
						eb0aff77c8
					
				@ -74,7 +74,9 @@ static int do_errata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 | 
			
		||||
#ifdef CONFIG_SYS_FSL_ERRATUM_DDR_A003
 | 
			
		||||
	puts("Work-around for Erratum DDR-A003 enabled\n");
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef CONFIG_SYS_FSL_ERRATUM_DDR_115
 | 
			
		||||
	puts("Work-around for Erratum DDR115 enabled\n");
 | 
			
		||||
#endif
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -178,7 +178,7 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
 | 
			
		||||
	 * when operatiing in 32-bit bus mode with 4-beat bursts,
 | 
			
		||||
	 * This erratum does not affect DDR3 mode, only for DDR2 mode.
 | 
			
		||||
	 */
 | 
			
		||||
#ifdef CONFIG_MPC8572
 | 
			
		||||
#ifdef CONFIG_SYS_FSL_ERRATUM_DDR_115
 | 
			
		||||
	if ((((in_be32(&ddr->sdram_cfg) >> 24) & 0x7) == SDRAM_TYPE_DDR2)
 | 
			
		||||
	    && in_be32(&ddr->sdram_cfg) & 0x80000) {
 | 
			
		||||
		/* set DEBUG_1[31] */
 | 
			
		||||
 | 
			
		||||
@ -77,6 +77,7 @@
 | 
			
		||||
#define CONFIG_MAX_CPUS			2
 | 
			
		||||
#define CONFIG_SYS_FSL_NUM_LAWS		12
 | 
			
		||||
#define CONFIG_SYS_FSL_SEC_COMPAT	2
 | 
			
		||||
#define CONFIG_SYS_FSL_ERRATUM_DDR_115
 | 
			
		||||
 | 
			
		||||
#elif defined(CONFIG_P1010)
 | 
			
		||||
#define CONFIG_MAX_CPUS			1
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user