summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Frodin <dave.frodin@se-eng.com>2012-12-05 08:20:12 -0700
committerMarc Jones <marcj303@gmail.com>2012-12-07 20:42:33 +0100
commitcbf3d407b8d943395f67d023795effe8f307b8c9 (patch)
tree9e6f68df803c81676f8aadbff30bb66ee3460cff /src
parent0a90861ff2308cf03928dbe5b7c4d3dfde82ceb4 (diff)
Add function to map vendor/device to generic VBIOS IDs
Change-Id: I4d7c4ec2b91c97eacf96770c150c2b9a61309053 Signed-off-by: Dave Frodin <dave.frodin@se-eng.com> Reviewed-on: http://review.coreboot.org/1982 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/northbridge/amd/agesa/family15tn/northbridge.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/northbridge/amd/agesa/family15tn/northbridge.c b/src/northbridge/amd/agesa/family15tn/northbridge.c
index 5659ac6539..9318164a04 100644
--- a/src/northbridge/amd/agesa/family15tn/northbridge.c
+++ b/src/northbridge/amd/agesa/family15tn/northbridge.c
@@ -1150,3 +1150,39 @@ struct chip_operations northbridge_amd_agesa_family15tn_root_complex_ops = {
CHIP_NAME("AMD FAM15 Root Complex")
.enable_dev = root_complex_enable_dev,
};
+
+/********************************************************************
+* Change the vendor / device IDs to match the generic VBIOS header.
+********************************************************************/
+u32 map_oprom_vendev(u32 vendev)
+{
+ u32 new_vendev=vendev;
+
+ switch(vendev) {
+ //case 0x10029900: //FS1r2
+ case 0x10029901: //FM2
+ case 0x10029903: //FS1r2
+ case 0x10029904: //FM2
+ case 0x10029906: //FM2
+ case 0x10029907: //FP2
+ case 0x10029908: //FP2
+ case 0x1002990A: //FP2
+ case 0x10029910: //FS1r2
+ case 0x10029913: //FS1r2
+ case 0x10029917: //FP2
+ case 0x10029918: //FP2
+ case 0x10029919: //FP2
+ case 0x10029990: //FS1r2
+ case 0x10029991: //FM2
+ case 0x10029992: //FS1r2
+ case 0x10029993: //FM2
+ case 0x10029994: //FP2
+ case 0x100299A0: //FS1r2
+ case 0x100299A2: //FS1r2
+ case 0x100299A4: //FP2
+ new_vendev=0x10029900;
+ break;
+ }
+
+ return new_vendev;
+}