summaryrefslogtreecommitdiff
path: root/src/soc/amd/sabrina/graphics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/sabrina/graphics.c')
-rw-r--r--src/soc/amd/sabrina/graphics.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/soc/amd/sabrina/graphics.c b/src/soc/amd/sabrina/graphics.c
new file mode 100644
index 0000000000..b65ef8855f
--- /dev/null
+++ b/src/soc/amd/sabrina/graphics.c
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/* TODO: Check if this is still correct */
+
+#include <device/pci_rom.h>
+#include <soc/cpu.h>
+#include <stdint.h>
+
+u32 map_oprom_vendev(u32 vendev)
+{
+ u32 new_vendev = vendev;
+
+ switch (vendev) {
+ case CEZANNE_VBIOS_VID_DID:
+ case BARCELO_VBIOS_VID_DID:
+ new_vendev = CEZANNE_VBIOS_VID_DID;
+ break;
+ }
+
+ return new_vendev;
+}