summaryrefslogtreecommitdiffstats
path: root/src/soc
diff options
context:
space:
mode:
authorJamie Ryu <jamie.m.ryu@intel.com>2020-06-24 14:45:13 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-06-30 05:59:45 +0000
commitf8668e98902d0ac6589ca9652206468ab370e2f2 (patch)
treed79ccba12bed7394784bd2ba1ce4c81086f4731f /src/soc
parent3d6066eaccb641e001ab28a4b46d8f7f0e827f89 (diff)
downloadcoreboot-f8668e98902d0ac6589ca9652206468ab370e2f2.tar.gz
coreboot-f8668e98902d0ac6589ca9652206468ab370e2f2.tar.bz2
coreboot-f8668e98902d0ac6589ca9652206468ab370e2f2.zip
soc/intel/tigerlake: Add CpuReplacementCheck to chip options
Add CpuReplacementCheck to chip options to control UPD FSPM SkipCpuReplacementCheck from devicetree. This UPD allows platforms with soldered down SoC to skip CPU replacement check to avoid a forced MRC traning. TEST=boot and verified with volteer Change-Id: Ic5782723ac3a204f2af657fac9944fb41fc03f4d Signed-off-by: Jamie Ryu <jamie.m.ryu@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42788 Reviewed-by: Nick Vaccaro <nvaccaro@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/tigerlake/chip.h6
-rw-r--r--src/soc/intel/tigerlake/romstage/fsp_params.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/intel/tigerlake/chip.h b/src/soc/intel/tigerlake/chip.h
index c72698f3d613..26ed64e0f163 100644
--- a/src/soc/intel/tigerlake/chip.h
+++ b/src/soc/intel/tigerlake/chip.h
@@ -365,6 +365,12 @@ struct soc_intel_tigerlake_config {
/* External Vnn Voltage in mV */
int vnn_sx_voltage_mv;
} ext_fivr_settings;
+
+ /*
+ * Enable(1)/Disable(0) CPU Replacement check.
+ * Default 0. Setting this to 1 to check CPU replacement.
+ */
+ uint8_t CpuReplacementCheck;
};
typedef struct soc_intel_tigerlake_config config_t;
diff --git a/src/soc/intel/tigerlake/romstage/fsp_params.c b/src/soc/intel/tigerlake/romstage/fsp_params.c
index 1a46b7a86d5d..1f60b526564f 100644
--- a/src/soc/intel/tigerlake/romstage/fsp_params.c
+++ b/src/soc/intel/tigerlake/romstage/fsp_params.c
@@ -199,6 +199,9 @@ static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
/* Command Pins Mirrored */
m_cfg->CmdMirror[0] = config->CmdMirror;
+
+ /* Skip CPU replacement check */
+ m_cfg->SkipCpuReplacementCheck = !config->CpuReplacementCheck;
}
void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)