diff options
Diffstat (limited to 'src/soc/amd/stoneyridge/graphics.c')
-rw-r--r-- | src/soc/amd/stoneyridge/graphics.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/soc/amd/stoneyridge/graphics.c b/src/soc/amd/stoneyridge/graphics.c new file mode 100644 index 0000000000..c0d4328c71 --- /dev/null +++ b/src/soc/amd/stoneyridge/graphics.c @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <console/console.h> +#include <device/pci_rom.h> +#include <stdint.h> + +/* Change the vendor / device IDs to match the generic VBIOS header. */ +u32 map_oprom_vendev(u32 vendev) +{ + u32 new_vendev; + + if ((vendev >= 0x100298e0) && (vendev <= 0x100298ef)) + new_vendev = 0x100298e0; + else if ((vendev >= 0x10029870) && (vendev <= 0x1002987f)) + new_vendev = 0x10029870; + else + new_vendev = vendev; + + if (vendev != new_vendev) + printk(BIOS_NOTICE, "Mapping PCI device %8x to %8x\n", vendev, new_vendev); + + return new_vendev; +} |