From cbf3d407b8d943395f67d023795effe8f307b8c9 Mon Sep 17 00:00:00 2001 From: Dave Frodin Date: Wed, 5 Dec 2012 08:20:12 -0700 Subject: Add function to map vendor/device to generic VBIOS IDs Change-Id: I4d7c4ec2b91c97eacf96770c150c2b9a61309053 Signed-off-by: Dave Frodin Reviewed-on: http://review.coreboot.org/1982 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/northbridge/amd/agesa/family15tn/northbridge.c | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src/northbridge') 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; +} -- cgit v1.2.3