Changeset 3689 for trunk/coreboot-v2
- Timestamp:
- 10/23/08 00:26:09 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/coreboot-v2/src/northbridge/amd/lx/raminit.c
r3052 r3689 195 195 196 196 /* Turn SPD ns time into MHZ. Check what the asm does to this math. */ 197 speed = 2 * ((10000 / (((spd_byte0 >> 4) * 10) + (spd_byte0 & 0x0F))));197 speed = 20000 / (((spd_byte0 >> 4) * 10) + (spd_byte0 & 0x0F)); 198 198 199 199 /* current speed > max speed? */ … … 275 275 if (spd_byte != 0) { 276 276 /* Turn SPD ns time into MHZ. Check what the asm does to this math. */ 277 dimm_speed = 2 * (10000 / (((spd_byte >> 4) * 10) + 278 (spd_byte & 0x0F))); 277 dimm_speed = 20000 / (((spd_byte >> 4) * 10) + (spd_byte & 0x0F)); 279 278 if (dimm_speed >= glspeed) { 280 279 casmap_shift = 1; /* -.5 is a shift of 1 */ … … 283 282 if (spd_byte != 0) { 284 283 /* Turn SPD ns time into MHZ. Check what the asm does to this math. */ 285 dimm_speed = 2 * (10000 / (((spd_byte >> 4) * 10) + (spd_byte & 0x0F)));284 dimm_speed = 20000 / (((spd_byte >> 4) * 10) + (spd_byte & 0x0F)); 286 285 if (dimm_speed >= glspeed) { 287 286 casmap_shift = 2; /* -1 is a shift of 2 */ … … 307 306 if (spd_byte != 0) { 308 307 /* Turn SPD ns time into MHZ. Check what the asm does to this math. */ 309 dimm_speed = 2 * (10000 / (((spd_byte >> 4) * 10) + (spd_byte & 0x0F)));308 dimm_speed = 20000 / (((spd_byte >> 4) * 10) + (spd_byte & 0x0F)); 310 309 if (dimm_speed >= glspeed) { 311 310 casmap_shift = 1; /* -.5 is a shift of 1 */ … … 314 313 if (spd_byte != 0) { 315 314 /* Turn SPD ns time into MHZ. Check what the asm does to this math. */ 316 dimm_speed = 2 * (10000 / (((spd_byte >> 4) * 10) + (spd_byte & 0x0F)));315 dimm_speed = 20000 / (((spd_byte >> 4) * 10) + (spd_byte & 0x0F)); 317 316 if (dimm_speed >= glspeed) { 318 317 casmap_shift = 2; /* -1 is a shift of 2 */
