soc: Remove copyright notices
[coreboot.git] / src / soc / intel / common / vbt.c
blob2fd3d1571dd66ccfd0275713c10b85be71b1235b
1 /*
2 * This file is part of the coreboot project.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #include <arch/acpi.h>
16 #include <bootmode.h>
17 #include <bootstate.h>
19 #include "vbt.h"
20 #include <drivers/intel/gma/opregion.h>
22 void *vbt_get(void)
24 if (!CONFIG(RUN_FSP_GOP))
25 return NULL;
27 /* Normal mode and S3 resume path PEIM GFX init is not needed.
28 * Passing NULL as VBT will not make PEIM GFX to execute. */
29 if (acpi_is_wakeup_s3())
30 return NULL;
31 if (!display_init_required())
32 return NULL;
33 return locate_vbt(NULL);