From 418535e222ccd9f688facbb7d9663ca4cacc2739 Mon Sep 17 00:00:00 2001 From: Pratik Prajapati Date: Wed, 11 Oct 2017 16:12:21 -0700 Subject: soc/intel/skylake: update GNVS with SGX data - Call sgx_fill_gnvs to update GNVS data, if CONFIG_SOC_INTEL_COMMON_BLOCK_SGX is set. - With this patch SGX ACPI device would get pached with enumaretd values of ECP device status, base address and length Change-Id: Ief0531fbab34838a3f8adb9cdc7d3fe19203c432 Signed-off-by: Pratik Prajapati Reviewed-on: https://review.coreboot.org/21972 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/skylake/acpi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/soc/intel/skylake/acpi.c') diff --git a/src/soc/intel/skylake/acpi.c b/src/soc/intel/skylake/acpi.c index 387cb6da74..12036617c5 100644 --- a/src/soc/intel/skylake/acpi.c +++ b/src/soc/intel/skylake/acpi.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -200,6 +201,9 @@ static void acpi_create_gnvs(global_nvs_t *gnvs) /* Set USB2/USB3 wake enable bitmaps. */ gnvs->u2we = config->usb2_wake_enable_bitmap; gnvs->u3we = config->usb3_wake_enable_bitmap; + + if (IS_ENABLED(CONFIG_SOC_INTEL_COMMON_BLOCK_SGX)) + sgx_fill_gnvs(gnvs); } unsigned long acpi_fill_mcfg(unsigned long current) -- cgit v1.2.3