summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@amd.com>2008-07-23 21:11:20 +0000
committerMarc Jones <marc.jones@amd.com>2008-07-23 21:11:20 +0000
commit51737cf7da3eee6df5959c8181a49c115368e909 (patch)
tree640a7bdf46435369b8eaaea536da704a44ddb59e
parentc3ec1ac331e9b9338e3804f5cdd02ed177827da4 (diff)
downloadcoreboot-51737cf7da3eee6df5959c8181a49c115368e909.tar.gz
coreboot-51737cf7da3eee6df5959c8181a49c115368e909.tar.bz2
coreboot-51737cf7da3eee6df5959c8181a49c115368e909.zip
Update to the latest AMD Fam10 microcode patches.
Add platform option for patch file name. Signed-off-by: Marc Jones <marc.jones@amd.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3434 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/config/Options.lb6
-rw-r--r--src/cpu/amd/model_10xxx/mc_patch_01000083.h (renamed from src/cpu/amd/model_10xxx/mc_patch_01000065.h)83
-rw-r--r--src/cpu/amd/model_10xxx/mc_patch_01000084.h (renamed from src/cpu/amd/model_10xxx/mc_patch_01000066.h)83
-rw-r--r--src/cpu/amd/model_10xxx/update_microcode.c22
-rw-r--r--src/mainboard/amd/serengeti_cheetah_fam10/Options.lb10
5 files changed, 115 insertions, 89 deletions
diff --git a/src/config/Options.lb b/src/config/Options.lb
index 6da8006040dd..bb5f5704d517 100644
--- a/src/config/Options.lb
+++ b/src/config/Options.lb
@@ -1061,6 +1061,12 @@ define CONFIG_AMDMCT
comment "use AMD MCT to init RAM instead of native code"
end
+define AMD_UCODE_PATCH_FILE
+ default none
+ export used
+ format "\"%s\""
+ comment "name of the micorcode patch file"
+
define CONFIG_VIDEO_MB
default none
export used
diff --git a/src/cpu/amd/model_10xxx/mc_patch_01000065.h b/src/cpu/amd/model_10xxx/mc_patch_01000083.h
index 82a9113d9076..7a37962ac1ff 100644
--- a/src/cpu/amd/model_10xxx/mc_patch_01000065.h
+++ b/src/cpu/amd/model_10xxx/mc_patch_01000083.h
@@ -33,12 +33,12 @@
*/
-0x08, 0x20, 0x11, 0x01, 0x65, 0x00, 0x00, 0x01, 0x00, 0x80, 0x20, 0x00,
-0x9B, 0x78, 0x67, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x08, 0x20, 0x30, 0x04, 0x83, 0x00, 0x00, 0x01, 0x00, 0x80, 0x20, 0x00,
+0xA8, 0x88, 0x43, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x22, 0x10, 0x00, 0x00, 0x00, 0xAA, 0xAA, 0xAA, 0x70, 0x09, 0x00, 0x00,
0x49, 0x01, 0x00, 0x00, 0x8B, 0x01, 0x00, 0x00, 0xC1, 0x08, 0x00, 0x00,
0xAA, 0x0B, 0x00, 0x00, 0x56, 0x0F, 0x00, 0x00, 0x9E, 0x0B, 0x00, 0x00,
-0x9A, 0x0B, 0x00, 0x00, 0x2A, 0xFF, 0xFF, 0x29, 0xC3, 0x5F, 0xD0, 0xC1,
+0x70, 0x0C, 0x00, 0x00, 0x2A, 0xFF, 0xFF, 0x29, 0xC3, 0x5F, 0xD0, 0xC1,
0xBD, 0xFF, 0xFF, 0xB3, 0x0F, 0xFF, 0x7E, 0xFD, 0xF6, 0x1F, 0xF8, 0x57,
0x3C, 0xBC, 0x63, 0x2D, 0x80, 0x96, 0xD6, 0x00, 0xAA, 0xFF, 0xEF, 0xAF,
0xE0, 0xD1, 0x9F, 0x15, 0x57, 0xEF, 0xFF, 0xFF, 0xEA, 0x87, 0x7F, 0xBF,
@@ -49,7 +49,7 @@
0xEB, 0x3F, 0x97, 0xFF, 0x9F, 0xEB, 0xFF, 0xE0, 0x97, 0xFF, 0x5E, 0xFE,
0x7F, 0xAE, 0xFA, 0x83, 0xC9, 0x1A, 0x00, 0x08, 0x8C, 0xFF, 0xAF, 0xF2,
0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, 0x1F, 0xC0, 0x7F,
-0x0F, 0xE0, 0xDF, 0xF0, 0xDF, 0x03, 0x00, 0xFF, 0x03, 0xFF, 0x00, 0xFE,
+0x0F, 0xE0, 0xDF, 0xF0, 0x23, 0x03, 0x00, 0x8E, 0x03, 0xFF, 0x00, 0xFE,
0x7F, 0x00, 0xFF, 0x86, 0x0F, 0xFC, 0x03, 0xF8, 0xFE, 0x01, 0xFC, 0x1B,
0x3F, 0xF0, 0x0F, 0xE0, 0xF8, 0x07, 0xF0, 0x6F, 0xFF, 0xEF, 0x01, 0x80,
+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
diff --git a/src/cpu/amd/model_10xxx/mc_patch_01000066.h b/src/cpu/amd/model_10xxx/mc_patch_01000084.h
index acffabd6aa79..0b0e943234f1 100644
--- a/src/cpu/amd/model_10xxx/mc_patch_01000066.h
+++ b/src/cpu/amd/model_10xxx/mc_patch_01000084.h
@@ -33,12 +33,12 @@
*/
-0x08, 0x20, 0x11, 0x01, 0x66, 0x00, 0x00, 0x01, 0x00, 0x80, 0x20, 0x00,
-0x83, 0x75, 0xF0, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+0x08, 0x20, 0x01, 0x05, 0x84, 0x00, 0x00, 0x01, 0x00, 0x80, 0x20, 0x00,
+0x90, 0x85, 0xCC, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x20, 0x10, 0x00, 0x00, 0x00, 0xAA, 0xAA, 0xAA, 0x70, 0x09, 0x00, 0x00,
0x49, 0x01, 0x00, 0x00, 0x8B, 0x01, 0x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0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
diff --git a/src/cpu/amd/model_10xxx/update_microcode.c b/src/cpu/amd/model_10xxx/update_microcode.c
index 32d7750dcc93..8b61a6e5df81 100644
--- a/src/cpu/amd/model_10xxx/update_microcode.c
+++ b/src/cpu/amd/model_10xxx/update_microcode.c
@@ -31,14 +31,22 @@ static const u8 microcode_updates[] __attribute__ ((aligned(16))) = {
#ifdef __ROMCC__
- // Barcelona rev Ax
-// #include "mc_patch_01000020.h"
-
- // Barcelona rev B0, B1, BA
-// #include "mc_patch_01000066.h"
+/* From the Revision Guide :
+ * Equivalent Processor Table for AMD Family 10h Processors
+ *
+ * Installed Processor Equivalent Processor Patch Level
+ * Revision ID Revision ID
+ * 00100F00h 1000h 01000020h
+ * 00100F01h 1000h 01000020h
+ * 00100F02h 1000h 01000020h
+ * 00100F20h 1020h 01000084h
+ * 00100F21h 1020h 01000084h
+ * 00100F2Ah 1020h 01000084h
+ * 00100F22h 1022h 01000083h
+ * 00100F23h 1022h 01000083h
+ */
- // Barcelona rev B2, B3
- #include "mc_patch_01000065.h"
+#include AMD_UCODE_PATCH_FILE
#endif
/* Dummy terminator */
diff --git a/src/mainboard/amd/serengeti_cheetah_fam10/Options.lb b/src/mainboard/amd/serengeti_cheetah_fam10/Options.lb
index 1382aa2d55a6..ada80daff809 100644
--- a/src/mainboard/amd/serengeti_cheetah_fam10/Options.lb
+++ b/src/mainboard/amd/serengeti_cheetah_fam10/Options.lb
@@ -114,6 +114,7 @@ uses CONFIG_AMDMCT
uses CONFIG_USE_PRINTK_IN_CAR
uses CAR_FAM10
+uses AMD_UCODE_PATCH_FILE
###
### Build options
@@ -260,6 +261,15 @@ default MAINBOARD_VENDOR="AMD"
default MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID=0x1022
default MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID=0x2b80
+##
+## Set microcode patch file name
+##
+## Barcelona rev Ax: "mc_patch_01000020.h"
+## Barcelona rev B0, B1, BA: "mc_patch_01000084.h"
+## Barcelona rev B2, B3: "mc_patch_01000083.h"
+##
+default AMD_UCODE_PATCH_FILE="mc_patch_01000083.h"
+
###
### coreboot layout values
###