Debian Codegraph @

src/soc/amd/picasso/graphics.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <console/console.h>
4 #include <device/pci_rom.h>
5 #include <soc/cpu.h>
6 #include <soc/soc_util.h>
7 #include <stdint.h>
8
9 u32 map_oprom_vendev(u32 vendev)
10 {
11 if (vendev == PICASSO_VBIOS_VID_DID) {
12 /* Check if the RV2 video bios needs to be used instead of the RV1/PCO one */
13 if (soc_is_raven2()) {
14 printk(BIOS_NOTICE, "Using RV2 VBIOS.\n");
15 return RAVEN2_VBIOS_VID_DID;
16 } else {
17 printk(BIOS_NOTICE, "Using RV1/PCO VBIOS.\n");
18 }
19 } else if (vendev == RAVEN2_VBIOS_VID_DID) {
20 printk(BIOS_NOTICE, "Using RV2 VBIOS.\n");
21 }
22
23 return vendev;
24 }