intel/common/block/sgx: Refactor SGX common code
commit53d68b4ffb9f99f51a3634c263b8a9176d7ea1a6
authorPratik Prajapati <pratikkumar.v.prajapati@intel.com>
Mon, 14 Aug 2017 18:46:47 +0000 (14 11:46 -0700)
committerAaron Durbin <adurbin@chromium.org>
Mon, 21 Aug 2017 19:46:34 +0000 (21 19:46 +0000)
tree3f856e67ce2bad9c66a6cba0aae8e2547ffee155
parent9cd6a265e2af9629a5391212ccf6e4ddf1c9ebd8
intel/common/block/sgx: Refactor SGX common code

To correct the SGX init sequence; PRMRR on all cores first
needs to be set, then follow the SGX init sequence. This
patch would refactor the common SGX code (and add needed
checks in the init sequence) so that SOC specific code can
call SGX init in correct order.

Change-Id: Ic2fb00edbf6e98de17c12145c6f38eacd99399ad
Signed-off-by: Pratik Prajapati <pratikkumar.v.prajapati@intel.com>
Reviewed-on: https://review.coreboot.org/21006
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/soc/intel/common/block/include/intelblocks/sgx.h
src/soc/intel/common/block/sgx/sgx.c