diff options
| author | Kumar Gala <galak@kernel.crashing.org> | 2008-08-26 22:56:56 -0500 | 
|---|---|---|
| committer | Kumar Gala <galak@kernel.crashing.org> | 2008-08-27 11:43:51 -0500 | 
| commit | be0bd8234b9777ecd63c4c686f72af070d886517 (patch) | |
| tree | 46f2a340bb521ed9d2320ff4394da07e39a64a5e /board/socrates/sdram.c | |
| parent | 1167a2fd56138b716e01370c4267f3b70bf9ffa0 (diff) | |
| download | olio-uboot-2014.01-be0bd8234b9777ecd63c4c686f72af070d886517.tar.xz olio-uboot-2014.01-be0bd8234b9777ecd63c4c686f72af070d886517.zip | |
FSL DDR: Convert socrates to new DDR code.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/socrates/sdram.c')
| -rw-r--r-- | board/socrates/sdram.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/board/socrates/sdram.c b/board/socrates/sdram.c index 768fe05a2..12d1b8a73 100644 --- a/board/socrates/sdram.c +++ b/board/socrates/sdram.c @@ -25,6 +25,7 @@  #include <common.h>  #include <asm/processor.h>  #include <asm/immap_85xx.h> +#include <asm/fsl_ddr_sdram.h>  #include <asm/processor.h>  #include <asm/mmu.h>  #include <spd_sdram.h> @@ -80,7 +81,9 @@ phys_size_t initdram (int board_type)  {  	long dram_size = 0;  #if defined(CONFIG_SPD_EEPROM) -	dram_size = spd_sdram (); +	dram_size = fsl_ddr_sdram(); +	dram_size = setup_ddr_tlbs(dram_size / 0x100000); +	dram_size *= 0x100000;  #else  	dram_size = sdram_setup(CONFIG_DDR_DEFAULT_CL);  #endif |