northbridge/amd/amdht/h3finit.c: Fix boot failure
GIT hash 586d6e introduced a regression that causes boot failure with an f0011449 AMD stop code. Change-Id: Ieced9088b79bc89d55117b7240b82a086eff9d21 Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: http://review.coreboot.org/8685 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
parent
8517f94bfd
commit
b812d5d92f
|
@ -77,7 +77,7 @@ static const uint16_t ht_speed_limit[16] =
|
|||
|
||||
static const struct ht_speed_limit_map_t {
|
||||
uint16_t mhz;
|
||||
uint8_t config;
|
||||
uint8_t nvram;
|
||||
} ht_speed_limit_map[] = {
|
||||
{0, NVRAM_LIMIT_HT_SPEED_AUTO},
|
||||
{200, NVRAM_LIMIT_HT_SPEED_200},
|
||||
|
@ -102,7 +102,7 @@ static const uint16_t ht_speed_mhz_to_hw(uint16_t mhz)
|
|||
size_t i;
|
||||
for (i = 0; i < ARRAY_SIZE(ht_speed_limit_map); i++)
|
||||
if (ht_speed_limit_map[i].mhz == mhz)
|
||||
return ht_speed_limit_map[i].config;
|
||||
return ht_speed_limit[ht_speed_limit_map[i].nvram];
|
||||
|
||||
printk(BIOS_WARNING,
|
||||
"WARNING: Invalid HT link limit frequency %d specified, ignoring...\n",
|
||||
|
|
Loading…
Reference in New Issue