[coreboot] New patch to review for coreboot: 2f35ad5 Add default map_oprom_vendev() for AMD Family 14h processors.

Martin Roth (martin@se-eng.com) gerrit at coreboot.org
Sun Apr 29 22:29:32 CEST 2012


Martin Roth (martin at se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/955

-gerrit

commit 2f35ad5db4e11e3843764c8bf8d982e4a174f4a1
Author: Martin Roth <martin at se-eng.com>
Date:   Fri Apr 27 13:54:36 2012 -0600

    Add default map_oprom_vendev() for AMD Family 14h processors.
    
    AMD supplies their video bios for the Family 14h processor line
    with Vendor ID: 1002, Device ID: 9802.  This rom should work for
    Device IDs 9802-9809.  This patch maps all those device IDs to
    0x9802 so coreboot will be able to load the vbios.  If a vbios
    rom using the ACTUAL Device ID is loaded, this function will not
    be called.
    This file should contain of all Family 14h Graphics PCI IDs so
    that they don't need to be overridden on a per mainboard basis.
    
    Change-Id: If3d4a744b3c400dea9444a61f05382af2b2d0237
    Signed-off-by: Martin L Roth <martin at se-eng.com>
---
 src/northbridge/amd/agesa/family14/amdfam14_conf.c |   22 ++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/src/northbridge/amd/agesa/family14/amdfam14_conf.c b/src/northbridge/amd/agesa/family14/amdfam14_conf.c
index 6ec4da9..09496aa 100644
--- a/src/northbridge/amd/agesa/family14/amdfam14_conf.c
+++ b/src/northbridge/amd/agesa/family14/amdfam14_conf.c
@@ -303,3 +303,25 @@ static void set_mmio_addr_reg(u32 nodeid, u32 linkn, u32 reg, u32 index, u32 mmi
 }
 
 #endif // !defined(__PRE_RAM__)
+
+/********************************************************************
+* Change the vendor / device IDs to match the generic VBIOS header.
+********************************************************************/
+u32 map_oprom_vendev(u32 vendev)
+{
+	u32 new_vendev=vendev;
+
+	switch(vendev) {
+	case 0x10029809:
+	case 0x10029808:
+	case 0x10029807:
+	case 0x10029806:
+	case 0x10029805:
+	case 0x10029804:
+	case 0x10029803:
+		new_vendev=0x10029802;
+		break;
+	}
+
+	return new_vendev;
+}




More information about the coreboot mailing list