soc/intel/cse: Select SOC_INTEL_CSE_LITE_SYNC_IN_RAMSTAGE when PSR enabled

PSR data is created and stored in CSE data partition. In platforms that
employ CSE Lite SKU firmware, a firmware downgrade involves clearing of
CSE data partition which results in PSR data being lost. The PSR data
needs to be preserved across the firmware downgrade flow. CSE Lite SKU
firmware supports command to backup PSR data, and this command can be
sent only in post-RAM stages. So the cse_fw_sync actions needs to be
moved to ramstage.

This patch ensures SOC_INTEL_CSE_LITE_SYNC_IN_RAMSTAGE is selected when
PSR is enabled.

BUG=b:273207144

Change-Id: I7c9bf8b8606cf68ec798ff35129e92cd60bbb137
Signed-off-by: Krishna Prasad Bhat <krishna.p.bhat.d@intel.com>
Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78055
Reviewed-by: Anil Kumar K <anil.kumar.k@intel.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Krishna Prasad Bhat 2023-09-22 00:28:50 +05:30 committed by Subrata Banik
parent b0b87ed49c
commit d2bc30f330
1 changed files with 5 additions and 1 deletions

View File

@ -144,10 +144,14 @@ config SOC_INTEL_CSE_LITE_PSR
bool bool
default n default n
depends on SOC_INTEL_CSE_LITE_SKU depends on SOC_INTEL_CSE_LITE_SKU
select SOC_INTEL_CSE_LITE_SYNC_IN_RAMSTAGE
help help
Select this config if Platform Service Record(PSR) is supported by the platform. This Select this config if Platform Service Record(PSR) is supported by the platform. This
config is applicable only for Lite SKU, where PSR data backup is required prior to a config is applicable only for Lite SKU, where PSR data backup is required prior to a
CSE firmware downgrade during which CSE data is cleared. CSE firmware downgrade during which CSE data is cleared. PSR services in CSE FW is
enabled only post DRAM init and the command to backup PSR data is also supported only
post DRAM init. Hence platform that selects PSR would need to perform CSE firmware sync
in ramstage.
config SOC_INTEL_CSE_SERVER_SKU config SOC_INTEL_CSE_SERVER_SKU
bool bool