From e467a44551cc8c1c7e0de90537c5f9e4b1e0b348 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 27 Mar 2023 16:57:06 +0200 Subject: 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 Change-Id: I94412dc2e778e7c4f74e475cd49114a00a81b2ce Reviewed-on: https://review.coreboot.org/c/coreboot/+/74045 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/soc/amd/picasso/graphics.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/amd') diff --git a/src/soc/amd/picasso/graphics.c b/src/soc/amd/picasso/graphics.c index f0f5bd4e4f..3c2e0f8ad0 100644 --- a/src/soc/amd/picasso/graphics.c +++ b/src/soc/amd/picasso/graphics.c @@ -18,5 +18,8 @@ void map_oprom_vendev_rev(u32 *vendev, u8 *rev) printk(BIOS_NOTICE, "Using RV1/PCO VBIOS.\n"); *rev = PICASSO_VBIOS_REV; } + } else if (*vendev == RAVEN2_VBIOS_VID_DID) { + printk(BIOS_NOTICE, "Using RV2 VBIOS.\n"); + *rev = RAVEN2_VBIOS_REV; } } -- cgit v1.2.3