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>
This commit is contained in:
Ritul Guru 2023-02-20 00:45:11 +05:30 committed by Felix Held
parent de74711dc8
commit 4843ded47c
3 changed files with 19 additions and 0 deletions

View File

@ -36,6 +36,7 @@ ramstage-y += cpu.c
ramstage-y += fch.c ramstage-y += fch.c
ramstage-y += fsp_s_params.c ramstage-y += fsp_s_params.c
ramstage-y += gpio.c ramstage-y += gpio.c
ramstage-y += graphics.c
ramstage-y += i2c.c ramstage-y += i2c.c
ramstage-y += mca.c ramstage-y += mca.c
ramstage-y += root_complex.c ramstage-y += root_complex.c

View File

@ -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;
}

View File

@ -6,4 +6,7 @@
#define PHOENIX_A0_CPUID CPUID_FROM_FMS(0x19, 0x74, 0) #define PHOENIX_A0_CPUID CPUID_FROM_FMS(0x19, 0x74, 0)
#define PHOENIX2_A0_CPUID CPUID_FROM_FMS(0x19, 0x78, 0) #define PHOENIX2_A0_CPUID CPUID_FROM_FMS(0x19, 0x78, 0)
#define PHOENIX2_VBIOS_VID_DID 0x100215c8
#define PHOENIX2_GPU_VID_DID 0x10021205
#endif /* AMD_PHOENIX_CPU_H */ #endif /* AMD_PHOENIX_CPU_H */