diff options
| author | Stefan Roese <sr@denx.de> | 2007-08-14 16:36:29 +0200 | 
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2007-08-14 16:36:29 +0200 | 
| commit | 3b3bff4cbf2cb14f9a3e7d03f26ebab900efe4ae (patch) | |
| tree | fb66bf8861d9f78765160d734a438856f5317cdb /cpu/mpc83xx/spd_sdram.c | |
| parent | 4ce846ec59f36b85d6644a769690ad3feb667575 (diff) | |
| parent | 4ef35e53c693556c54b0c22d6f873de87bade253 (diff) | |
| download | olio-uboot-2014.01-3b3bff4cbf2cb14f9a3e7d03f26ebab900efe4ae.tar.xz olio-uboot-2014.01-3b3bff4cbf2cb14f9a3e7d03f26ebab900efe4ae.zip | |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'cpu/mpc83xx/spd_sdram.c')
| -rw-r--r-- | cpu/mpc83xx/spd_sdram.c | 13 | 
1 files changed, 10 insertions, 3 deletions
| diff --git a/cpu/mpc83xx/spd_sdram.c b/cpu/mpc83xx/spd_sdram.c index 647813f68..54f0c83d4 100644 --- a/cpu/mpc83xx/spd_sdram.c +++ b/cpu/mpc83xx/spd_sdram.c @@ -574,7 +574,10 @@ long int spd_sdram()  	/* Check DIMM data bus width */  	if (spd.dataw_lsb == 0x20) { -		burstlen = 0x03; /* 32 bit data bus, burst len is 8 */ +		if (spd.mem_type == SPD_MEMTYPE_DDR) +			burstlen = 0x03; /* 32 bit data bus, burst len is 8 */ +		else +			burstlen = 0x02; /* 32 bit data bus, burst len is 4 */  		printf("\n   DDR DIMM: data bus width is 32 bit");  	} else {  		burstlen = 0x02; /* Others act as 64 bit bus, burst len is 4 */ @@ -730,8 +733,12 @@ long int spd_sdram()  		sdram_cfg |= 0x10000000;  	/* The DIMM is 32bit width */ -	if (spd.dataw_lsb == 0x20) -		sdram_cfg |= 0x000C0000; +	if (spd.dataw_lsb == 0x20) { +		if (spd.mem_type == SPD_MEMTYPE_DDR) +			sdram_cfg |= 0x000C0000; +		if (spd.mem_type == SPD_MEMTYPE_DDR2) +			sdram_cfg |= 0x00080000; +	}  	ddrc_ecc_enable = 0; |