soc/intel/cmn/cse: Always save CSE RW version to CBMEM
This patch renames `cse_store_rw_fw_version` function that store currently running CSE RW FW version inside CBMEM. Additionally, perform the CSE RW FW storing operation unconditionally. TEST=Able to build and boot google/marasov. Change-Id: Iba85807b7d9e6f067b5b628c6fa062fab5c485e0 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/75768 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kangheui Won <khwon@chromium.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
This commit is contained in:
parent
272ce9a579
commit
3c06f1e522
|
@ -1175,7 +1175,7 @@ void cse_fw_sync(void)
|
||||||
* Helper function that stores current CSE firmware version to CBMEM memory,
|
* Helper function that stores current CSE firmware version to CBMEM memory,
|
||||||
* except during recovery mode.
|
* except during recovery mode.
|
||||||
*/
|
*/
|
||||||
static void store_cse_rw_fw_version(void)
|
static void cse_store_rw_fw_version(void)
|
||||||
{
|
{
|
||||||
if (vboot_recovery_mode_enabled())
|
if (vboot_recovery_mode_enabled())
|
||||||
return;
|
return;
|
||||||
|
@ -1303,15 +1303,15 @@ static void ramstage_cse_misc_ops(void *unused)
|
||||||
if (CONFIG(SOC_INTEL_CSE_LITE_SYNC_IN_RAMSTAGE))
|
if (CONFIG(SOC_INTEL_CSE_LITE_SYNC_IN_RAMSTAGE))
|
||||||
cse_fw_sync();
|
cse_fw_sync();
|
||||||
|
|
||||||
|
/* Store the CSE RW Firmware Version into CBMEM */
|
||||||
|
cse_store_rw_fw_version();
|
||||||
/*
|
/*
|
||||||
* Store the CSE/ISH RW Firmware Version into CBMEM if ISH partition
|
* Store the ISH RW Firmware Version into CBMEM if ISH partition
|
||||||
* is available
|
* is available
|
||||||
*/
|
*/
|
||||||
if (CONFIG(SOC_INTEL_STORE_ISH_FW_VERSION) &&
|
if (CONFIG(SOC_INTEL_STORE_ISH_FW_VERSION) &&
|
||||||
soc_is_ish_partition_enabled()) {
|
soc_is_ish_partition_enabled())
|
||||||
store_cse_rw_fw_version();
|
|
||||||
store_ish_version();
|
store_ish_version();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
BOOT_STATE_INIT_ENTRY(BS_PRE_DEVICE, BS_ON_EXIT, ramstage_cse_misc_ops, NULL);
|
BOOT_STATE_INIT_ENTRY(BS_PRE_DEVICE, BS_ON_EXIT, ramstage_cse_misc_ops, NULL);
|
||||||
|
|
Loading…
Reference in New Issue