diff options
| author | York Sun <yorksun@freescale.com> | 2011-06-07 09:42:16 +0800 | 
|---|---|---|
| committer | Kumar Gala <galak@kernel.crashing.org> | 2011-07-11 13:24:20 -0500 | 
| commit | 1b3e3c4f263ff20b95c3514eefbde47e950c39e0 (patch) | |
| tree | 4043fc4d718f49dee1a2d88daa1b9ef87b435980 /arch/powerpc/cpu/mpc85xx/cpu.c | |
| parent | aeb6716a12c68644d6dc1e798b724086c3cfcd24 (diff) | |
| download | olio-uboot-2014.01-1b3e3c4f263ff20b95c3514eefbde47e950c39e0.tar.xz olio-uboot-2014.01-1b3e3c4f263ff20b95c3514eefbde47e950c39e0.zip | |
powerpc/mpc8xxx: Enable calculation for fixed DDR chips
We used to have fixed parameters for soldered DDR chips. This patch
introduces CONFIG_SYS_DDR_RAW_TIMING to enable calculation based on timing
data from DDR chip datasheet, implemneted in board-specific files or header
files.
Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/cpu.c')
| -rw-r--r-- | arch/powerpc/cpu/mpc85xx/cpu.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c index f863f4aad..53f088791 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu.c +++ b/arch/powerpc/cpu/mpc85xx/cpu.c @@ -336,7 +336,9 @@ phys_size_t initdram(int board_type)  	}  #endif -#if defined(CONFIG_SPD_EEPROM) || defined(CONFIG_DDR_SPD) +#if	defined(CONFIG_SPD_EEPROM)	|| \ +	defined(CONFIG_DDR_SPD)		|| \ +	defined(CONFIG_SYS_DDR_RAW_TIMING)  	dram_size = fsl_ddr_sdram();  #else  	dram_size = fixed_sdram(); |