soc/intel/common/cse: Add function to perform global reset lock
commit80c9289712789c9e08519c06eebfe7527856af04
authorSubrata Banik <subratabanik@google.com>
Mon, 31 Jan 2022 18:56:55 +0000 (1 00:26 +0530)
committerFelix Held <felix-coreboot@felixheld.de>
Wed, 9 Feb 2022 14:19:00 +0000 (9 14:19 +0000)
treed7924f4963d1404538e7e58b48d3ecf090b41476
parent71f03b463007940f9cefc2340bf907be7cca0a35
soc/intel/common/cse: Add function to perform global reset lock

This patch implements `cse_control_global_reset_lock()` as per ME BWG
(doc: 627331) recommendation.

It is recommended that BIOS should set this bit early on in the boot
sequence, and then clear it and set the CF9LOCK bit prior to loading
the OS in both an Intel CSME Enabled and a Intel CSME Disabled system.

Note: For CSE-Lite SKUs BIOS should set CF9LOCK bit unconditionally.

BUG=b:211954778
TEST=Able to build and boot Brya.

Signed-off-by: Subrata Banik <subratabanik@google.com>
Change-Id: I3894b2cd8b90dc033f475384486815ab2fadf381
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61520
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
src/soc/intel/common/block/cse/cse.c
src/soc/intel/common/block/include/intelblocks/cse.h