summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/sr5650/early_setup.c
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineeringinc.com>2015-09-05 17:46:38 -0500
committerPeter Stuge <peter@stuge.se>2015-10-24 06:11:41 +0200
commitc3fcdccb816f9c5df5a3c158d167a20c1ae088ee (patch)
treed53da681641f9ffd35c29350ce75e48dba8b3936 /src/southbridge/amd/sr5650/early_setup.c
parentf94ceb138fd44f18907febb17b7d415cbd975655 (diff)
downloadcoreboot-c3fcdccb816f9c5df5a3c158d167a20c1ae088ee.tar.xz
southbridge/amd/sr5650: Fix boot failure on ASUS KGPE-D16
Change-Id: Ia13ba58118a826e830a4dc6e2378b76110fcabad Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: http://review.coreboot.org/11939 Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com> Reviewed-by: Edward O'Callaghan <edward.ocallaghan@koparo.com> Tested-by: build bot (Jenkins) Reviewed-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'src/southbridge/amd/sr5650/early_setup.c')
-rw-r--r--src/southbridge/amd/sr5650/early_setup.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/southbridge/amd/sr5650/early_setup.c b/src/southbridge/amd/sr5650/early_setup.c
index ec555f81b2..664f60af10 100644
--- a/src/southbridge/amd/sr5650/early_setup.c
+++ b/src/southbridge/amd/sr5650/early_setup.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2015 Timothy Pearson <tpearson@raptorengineeringinc.com>, Raptor Engineering
* Copyright (C) 2010 Advanced Micro Devices, Inc.
+ * Copyright (C) 2015 Timothy Pearson <tpearson@raptorengineeringinc.com>, Raptor Engineering
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -504,7 +505,8 @@ void sr5650_early_setup(void)
/*ATINB_PrepareInit */
get_cpu_rev();
- switch (get_nb_rev(nb_dev)) { /* PCIEMiscInit */
+ uint8_t revno = get_nb_rev(nb_dev);
+ switch (revno) { /* PCIEMiscInit */
case REV_SR5650_A11:
printk(BIOS_INFO, "NB Revision is A11.\n");
break;
@@ -514,6 +516,9 @@ void sr5650_early_setup(void)
case REV_SR5650_A21:
printk(BIOS_INFO, "NB Revision is A21.\n");
break;
+ default:
+ printk(BIOS_INFO, "NB Revision is %02x (Unrecognized).\n", revno);
+ break;
}
fam10_optimization();