northbridge/amd/amdfam10: Update RAM speed table with DDR3 values

Change-Id: I8ab7b2cd9bf36d53b744a11d32dd40c750149567
Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Reviewed-on: http://review.coreboot.org/12272
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Timothy Pearson 2015-10-30 18:53:48 -05:00 committed by Ronald G. Minnich
parent 0746452a26
commit 160ad6aa75

View File

@ -946,19 +946,38 @@ static int amdfam10_get_smbios_data16(int* count, int handle, unsigned long *cur
static uint16_t amdmct_mct_speed_enum_to_mhz(uint8_t speed) static uint16_t amdmct_mct_speed_enum_to_mhz(uint8_t speed)
{ {
switch (speed) { if (IS_ENABLED(CONFIG_DIMM_DDR2)) {
case 1: switch (speed) {
return 200; case 1:
case 2: return 200;
return 266; case 2:
case 3: return 266;
return 333; case 3:
case 4: return 333;
return 400; case 4:
case 5: return 400;
return 533; case 5:
default: return 533;
return 0; default:
return 0;
}
} else if (IS_ENABLED(CONFIG_DIMM_DDR3)) {
switch (speed) {
case 3:
return 333;
case 4:
return 400;
case 5:
return 533;
case 6:
return 667;
case 7:
return 800;
default:
return 0;
}
} else {
return 0;
} }
} }