arch/x86: Include acpi_s3.c support in postcar stage

This patch ensures acpi APIs are available for postcar
stage.

Change-Id: Ia0f83cd4886ba7a16286dbbeb3257ede014ee3c7
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/21626
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Subrata Banik 2017-09-21 19:17:33 +05:30 committed by Aaron Durbin
parent fd440bb79e
commit 5d2928cdab
2 changed files with 2 additions and 1 deletions

View File

@ -278,6 +278,7 @@ endif # CONFIG_ARCH_ROMSTAGE_X86_32 / CONFIG_ARCH_ROMSTAGE_X86_64
$(eval $(call create_class_compiler,postcar,x86_32))
postcar-generic-ccopts += -D__POSTCAR__
postcar-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.c
postcar-y += boot.c
postcar-y += cbfs_and_run.c
postcar-y += cbmem.c

View File

@ -25,7 +25,7 @@
#include <rules.h>
#include <symbols.h>
#if ENV_RAMSTAGE
#if ENV_RAMSTAGE || ENV_POSTCAR
/* This is filled with acpi_is_wakeup() call early in ramstage. */
static int acpi_slp_type = -1;