76cedd2c29
This change moves all ACPI table support in coreboot currently living under arch/x86 into common code to make it architecture independent. ACPI table generation is not really tied to any architecture and hence it makes sense to move this to its own directory. In order to make it easier to review, this change is being split into multiple CLs. This is change 3/5 which basically is generated by running the following command: $ git grep -iIl "arch/acpi" | xargs sed -i 's/arch\/acpi/acpi\/acpi/g' BUG=b:155428745 Change-Id: I16b1c45d954d6440fb9db1d3710063a47b582eae Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40938 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
23 lines
527 B
C
23 lines
527 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* This file is part of the coreboot project. */
|
|
|
|
#include <acpi/acpi.h>
|
|
#include <bootmode.h>
|
|
#include <bootstate.h>
|
|
|
|
#include "vbt.h"
|
|
#include <drivers/intel/gma/opregion.h>
|
|
|
|
void *vbt_get(void)
|
|
{
|
|
if (!CONFIG(RUN_FSP_GOP))
|
|
return NULL;
|
|
|
|
/* Normal mode and S3 resume path PEIM GFX init is not needed.
|
|
* Passing NULL as VBT will not make PEIM GFX to execute. */
|
|
if (acpi_is_wakeup_s3())
|
|
return NULL;
|
|
if (!display_init_required())
|
|
return NULL;
|
|
return locate_vbt(NULL);
|
|
}
|