mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / intel / common / vbt.c
blobc01db665a1a9ea32b9617b0a911b03c7de6a3c36
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi.h>
4 #include <bootmode.h>
5 #include <drivers/intel/gma/opregion.h>
6 #include <stddef.h>
8 #include "vbt.h"
10 void *vbt_get(void)
12 if (!CONFIG(RUN_FSP_GOP))
13 return NULL;
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);