soc/amd/picasso/graphics: use RAVEN2_VBIOS_REV with RAVEN2_VBIOS_VID_DID

In order for the code to find the correct VBIOS file in CBFS, remap the
revision ID in the RAVEN2_VBIOS_VID_DID case to the one that matches the
CBFS file name. This will make the code work as expected on devices with
the PCI ID RAVEN2_VBIOS_VID_DID and a revision != RAVEN2_VBIOS_REV.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I94412dc2e778e7c4f74e475cd49114a00a81b2ce
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74045
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Held 2023-03-27 16:57:06 +02:00
parent d98b24d390
commit e467a44551
1 changed files with 3 additions and 0 deletions

View File

@ -18,5 +18,8 @@ void map_oprom_vendev_rev(u32 *vendev, u8 *rev)
printk(BIOS_NOTICE, "Using RV1/PCO VBIOS.\n"); printk(BIOS_NOTICE, "Using RV1/PCO VBIOS.\n");
*rev = PICASSO_VBIOS_REV; *rev = PICASSO_VBIOS_REV;
} }
} else if (*vendev == RAVEN2_VBIOS_VID_DID) {
printk(BIOS_NOTICE, "Using RV2 VBIOS.\n");
*rev = RAVEN2_VBIOS_REV;
} }
} }