soc/amd/picasso/graphics: use RAVEN2_VBIOS_REV with RAVEN2_VBIOS_VID_DID
commite467a44551cc8c1c7e0de90537c5f9e4b1e0b348
authorFelix Held <felix-coreboot@felixheld.de>
Mon, 27 Mar 2023 14:57:06 +0000 (27 16:57 +0200)
committerFelix Held <felix-coreboot@felixheld.de>
Fri, 31 Mar 2023 14:14:15 +0000 (31 14:14 +0000)
treece3d4d6a67dd048f6ceaa65890bcb691a072c12f
parentd98b24d39023c58ea832cb43d4306a5761a0c8d5
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>
src/soc/amd/picasso/graphics.c