soc/amd/stoneyridge/graphics: introduce defines for constants
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I2021a106e0d3a603b1a05296411700ffea32fc8c Reviewed-on: https://review.coreboot.org/c/coreboot/+/74042 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
This commit is contained in:
@@ -4,15 +4,22 @@
|
|||||||
#include <device/pci_rom.h>
|
#include <device/pci_rom.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#define ST_GPU_FIRST_VID_DID 0x100298e0
|
||||||
|
#define ST_GPU_LAST_VID_DID 0x100298ef
|
||||||
|
#define ST_VBIOS_VID_DID 0x100298e0
|
||||||
|
#define CZ_GPU_FIRST_VID_DID 0x10029870
|
||||||
|
#define CZ_GPU_LAST_VID_DID 0x1002987f
|
||||||
|
#define CZ_VBIOS_VID_DID 0x10029870
|
||||||
|
|
||||||
/* Change the vendor / device IDs to match the generic VBIOS header. */
|
/* Change the vendor / device IDs to match the generic VBIOS header. */
|
||||||
u32 map_oprom_vendev(u32 vendev)
|
u32 map_oprom_vendev(u32 vendev)
|
||||||
{
|
{
|
||||||
u32 new_vendev;
|
u32 new_vendev;
|
||||||
|
|
||||||
if ((vendev >= 0x100298e0) && (vendev <= 0x100298ef))
|
if ((vendev >= ST_GPU_FIRST_VID_DID) && (vendev <= ST_GPU_LAST_VID_DID))
|
||||||
new_vendev = 0x100298e0;
|
new_vendev = ST_VBIOS_VID_DID;
|
||||||
else if ((vendev >= 0x10029870) && (vendev <= 0x1002987f))
|
else if ((vendev >= CZ_GPU_FIRST_VID_DID) && (vendev <= CZ_GPU_LAST_VID_DID))
|
||||||
new_vendev = 0x10029870;
|
new_vendev = CZ_VBIOS_VID_DID;
|
||||||
else
|
else
|
||||||
new_vendev = vendev;
|
new_vendev = vendev;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user