diff options
author | Martin Roth <martin@se-eng.com> | 2012-04-27 13:54:36 -0600 |
---|---|---|
committer | Marc Jones <marcj303@gmail.com> | 2012-04-30 17:20:32 +0200 |
commit | a403c687b16170966fa955ce55072edec84b5187 (patch) | |
tree | 9c3d86ea7927759aad1d969fa9e7009f5fe38194 /src/northbridge | |
parent | f3005f515b11d7101f34f606a22860b347fd5017 (diff) | |
download | coreboot-a403c687b16170966fa955ce55072edec84b5187.tar.xz |
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@se-eng.com>
Reviewed-on: http://review.coreboot.org/955
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Marc Jones <marcj303@gmail.com>
Diffstat (limited to 'src/northbridge')
-rw-r--r-- | 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 6ec4da9c9f..09496aaba6 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; +} |