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 <pratikkumar.v.prajapati@intel.com>
Reviewed-on: https://review.coreboot.org/21972
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Pratik Prajapati 2017-10-11 16:12:21 -07:00 committed by Aaron Durbin
parent d06c7646ac
commit 418535e222
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,7 @@
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include <intelblocks/cpulib.h> #include <intelblocks/cpulib.h>
#include <intelblocks/lpc_lib.h> #include <intelblocks/lpc_lib.h>
#include <intelblocks/sgx.h>
#include <soc/intel/common/acpi.h> #include <soc/intel/common/acpi.h>
#include <soc/acpi.h> #include <soc/acpi.h>
#include <soc/cpu.h> #include <soc/cpu.h>
@ -200,6 +201,9 @@ static void acpi_create_gnvs(global_nvs_t *gnvs)
/* Set USB2/USB3 wake enable bitmaps. */ /* Set USB2/USB3 wake enable bitmaps. */
gnvs->u2we = config->usb2_wake_enable_bitmap; gnvs->u2we = config->usb2_wake_enable_bitmap;
gnvs->u3we = config->usb3_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) unsigned long acpi_fill_mcfg(unsigned long current)