diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-03-27 16:57:06 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-03-31 14:14:15 +0000 |
commit | e467a44551cc8c1c7e0de90537c5f9e4b1e0b348 (patch) | |
tree | ce3d4d6a67dd048f6ceaa65890bcb691a072c12f /src/soc/amd/picasso/graphics.c | |
parent | d98b24d39023c58ea832cb43d4306a5761a0c8d5 (diff) |
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>
Diffstat (limited to 'src/soc/amd/picasso/graphics.c')
-rw-r--r-- | src/soc/amd/picasso/graphics.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } } |