summaryrefslogtreecommitdiff
path: root/src/soc/amd/phoenix/graphics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/phoenix/graphics.c')
-rw-r--r--src/soc/amd/phoenix/graphics.c15
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;
+}