soc/intel/common: Add function to wait for CSE to enter Soft Temp Disable mode
commit09ea37172eb62d2b675b3d7a1db36c697c49a6da
authorSridhar Siricilla <sridhar.siricilla@intel.com>
Tue, 12 Nov 2019 18:05:50 +0000 (12 23:35 +0530)
committerPatrick Georgi <pgeorgi@google.com>
Tue, 18 Feb 2020 15:01:09 +0000 (18 15:01 +0000)
treef9f18c79991e934e6e5c6b626e0b42d71b091a45
parent206905c309a6a7643a61633d0563ad1245fe7f93
soc/intel/common: Add function to wait for CSE to enter Soft Temp Disable mode

Below helper function is added:
  cse_wait_com_soft_temp_disable() - It polls for CSE's operation mode
 'Soft Temporary Disable'. CSE enters this mode when it boots from
  RO(BP1) partition. The function must be called after resetting CSE to
  wait for CSE to enter 'Soft Temporary Disable' Mode.

BUG=b:145809764

Change-Id: Ibdcf01f31b0310932b8e834ae83144f8a67f1fef
Signed-off-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36786
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
src/soc/intel/common/block/cse/cse.c
src/soc/intel/common/block/include/intelblocks/cse.h