[coreboot] Patch set updated for coreboot: 8522fe8 Add AMD Family 10h PH-EO support

QingPei Wang (wangqingpei@gmail.com) gerrit at coreboot.org
Tue Sep 13 10:13:07 CEST 2011


QingPei Wang (wangqingpei at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/202

-gerrit

commit 8522fe8eff497bb7bd3fe125664a9d4f36227bf3
Author: QingPei Wang <wangqingpei at gmail.com>
Date:   Tue Sep 13 16:12:18 2011 +0800

    Add AMD Family 10h PH-EO support
    
    the patch file comes from
    src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevE
    /F10MicrocodePatch010000bf.c
    
    Change-Id: If701c8a908edf1c486665d3ce4df65da0f65c802
    Signed-off-by: QingPei Wang <wangqingpei at gmail.com>
---
 src/cpu/amd/model_10xxx/model_10xxx_init.c    |    1 +
 src/cpu/amd/model_10xxx/update_microcode.c    |    2 ++
 src/northbridge/amd/amdfam10/raminit_amdmct.c |    3 +++
 src/northbridge/amd/amdmct/amddefs.h          |    3 ++-
 4 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/cpu/amd/model_10xxx/model_10xxx_init.c b/src/cpu/amd/model_10xxx/model_10xxx_init.c
index 2e8bbfe..cf11135 100644
--- a/src/cpu/amd/model_10xxx/model_10xxx_init.c
+++ b/src/cpu/amd/model_10xxx/model_10xxx_init.c
@@ -157,6 +157,7 @@ static struct cpu_device_id cpu_table[] = {
 	{ X86_VENDOR_AMD, 0x100F63 },           /* DA-C3 */
 	{ X86_VENDOR_AMD, 0x100F80 },           /* HY-D0 */
 	{ X86_VENDOR_AMD, 0x100F81 },           /* HY-D1 */
+	{ X86_VENDOR_AMD, 0x100FA0 },           /* PH-E0 */
 	{ 0, 0 },
 };
 
diff --git a/src/cpu/amd/model_10xxx/update_microcode.c b/src/cpu/amd/model_10xxx/update_microcode.c
index fa3b4f8..a9faafa 100644
--- a/src/cpu/amd/model_10xxx/update_microcode.c
+++ b/src/cpu/amd/model_10xxx/update_microcode.c
@@ -51,6 +51,7 @@ static const u8 microcode_updates[] __attribute__ ((aligned(16))) = {
  * 00100F62h (DA-C2)     1062h                  0100009Fh
  * 00100F63h (DA-C3)     1043h                  010000b6h
  * 00100F81h (HY-D1)     1081h                  010000c4h
+ * 00100FA0h (PH-E0)     10A0h                  010000bfh
  */
 
 #include CONFIG_AMD_UCODE_PATCH_FILE
@@ -78,6 +79,7 @@ static u32 get_equivalent_processor_rev_id(u32 orig_id) {
 		0x100f62, 0x1062,
 		0x100f63, 0x1043,
 		0x100f81, 0x1081,
+		0x100fa0, 0x10A0,
 	};
 
 	u32 new_id;
diff --git a/src/northbridge/amd/amdfam10/raminit_amdmct.c b/src/northbridge/amd/amdfam10/raminit_amdmct.c
index 0c01cf1..4ac6c76 100644
--- a/src/northbridge/amd/amdfam10/raminit_amdmct.c
+++ b/src/northbridge/amd/amdfam10/raminit_amdmct.c
@@ -211,6 +211,9 @@ u32 mctGetLogicalCPUID(u32 Node)
 	case 0x10081:
 		ret = AMD_HY_D1;
 		break;
+	case 0x100A0:
+		ret = AMD_PH_E0;
+		break;
 	default:
 		/* FIXME: mabe we should die() here. */
 		print_err("FIXME! CPU Version unknown or not supported! \n");
diff --git a/src/northbridge/amd/amdmct/amddefs.h b/src/northbridge/amd/amdmct/amddefs.h
index 7852668..d2bef38 100644
--- a/src/northbridge/amd/amdmct/amddefs.h
+++ b/src/northbridge/amd/amdmct/amddefs.h
@@ -46,6 +46,7 @@
 #define	AMD_RB_C3	0x08000000	/* ??? C3 */
 #define	AMD_DA_C3	0x10000000	/* XXXX C3 */
 #define	AMD_HY_D1	0x20000000	/* Istanbul D1 */
+#define	AMD_PH_E0	0x40000000	/* Phenom II X4 X6 */
 
 /*
  * Groups - Create as many as you wish, from the above public values
@@ -64,7 +65,7 @@
 #define	AMD_DR_GT_B0	(AMD_DR_ALL & ~(AMD_DR_B0))
 #define	AMD_DR_GT_Bx	(AMD_DR_ALL & ~(AMD_DR_Ax | AMD_DR_Bx))
 #define	AMD_DR_ALL	(AMD_DR_Bx)
-#define	AMD_FAM10_ALL	(AMD_DR_ALL | AMD_RB_C2 | AMD_HY_D0 | AMD_DA_C3 | AMD_DA_C2 | AMD_RB_C3 | AMD_HY_D1)
+#define	AMD_FAM10_ALL	(AMD_DR_ALL | AMD_RB_C2 | AMD_HY_D0 | AMD_DA_C3 | AMD_DA_C2 | AMD_RB_C3 | AMD_HY_D1 | AMD_PH_E0)
 #define AMD_FAM10_LT_D  (AMD_FAM10_ALL & ~(AMD_HY_D0))
 #define	AMD_FAM10_GT_B0	(AMD_FAM10_ALL & ~(AMD_DR_B0))
 #define	AMD_DA_Cx       (AMD_DA_C2 | AMD_DA_C3)




More information about the coreboot mailing list