Debian Codegraph @

src/soc/intel/common/vbt.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <acpi/acpi.h>
4 #include <bootmode.h>
5 #include <drivers/intel/gma/opregion.h>
6 #include <stddef.h>
7
8 #include "vbt.h"
9
10 void *vbt_get(void)
11 {
12 if (!CONFIG(RUN_FSP_GOP))
13 return NULL;
14
15 /* Normal mode and S3 resume path PEIM GFX init is not needed.
16 * Passing NULL as VBT will not make PEIM GFX to execute. */
17 if (acpi_is_wakeup_s3())
18 return NULL;
19 if (!display_init_required())
20 return NULL;
21 return locate_vbt(NULL);
22 }