diff options
author | Ritul Guru <ritul.bits@gmail.com> | 2023-02-20 00:45:11 +0530 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-02-21 22:44:53 +0000 |
commit | 4843ded47c3e72ee112a1ea79f03017f6999c1e1 (patch) | |
tree | 8c0bd2f0ca2e869e297a1811568750b4e77aa4cd /src/soc/amd/phoenix/graphics.c | |
parent | de74711dc8bd7eceb9d9c13fb24a2cee40d47009 (diff) |
soc/amd/phoenix: add VBIOS ID remapping for phoenix
Phoenix2 VBIOS PCI DID is 15c8 though the VBIOS image uses a different
PCI ID i.e. 0x1205, so we need to implement map_oprom_vendev for the SoC.
Change-Id: I7eef5eb41b781f02abb9dd4098e92a8652a431f5
Signed-off-by: Ritul Guru <ritul.bits@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73122
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/soc/amd/phoenix/graphics.c')
-rw-r--r-- | src/soc/amd/phoenix/graphics.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/soc/amd/phoenix/graphics.c b/src/soc/amd/phoenix/graphics.c new file mode 100644 index 0000000000..ee07229640 --- /dev/null +++ b/src/soc/amd/phoenix/graphics.c @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/pci_rom.h> +#include <soc/cpu.h> +#include <stdint.h> + +u32 map_oprom_vendev(u32 vendev) +{ + switch (vendev) { + case PHOENIX2_VBIOS_VID_DID: + return PHOENIX2_GPU_VID_DID; + } + + return vendev; +} |