Revert "soc/mediatek/mt8183: Force retraining memory if requested"
This reverts commit 285975dbba
.
Reason for revert: VB2_RECOVERY_TRAIN_AND_REBOOT was never meant to have
any special effect on memory training behavior. It was just supposed to
be a "reboot automatically after reaching kernel verification" recovery
reason. On x86 devices this was used to prime the separate recovery
MRC cache in the factory (make sure it is initialized before shipping).
This isn't used on Kukui anyway, but in order to make sure nobody copies
this code and keep the behavior consistent between platforms, let's
remove it.
Change-Id: I5df5e00526e90cb573131de3c8bac9f85f4e3a5f
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40623
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
4e06c6eeb1
commit
00961676fd
|
@ -163,8 +163,7 @@ static void mt_mem_init_run(struct dramc_param_ops *dparam_ops)
|
|||
/* Load calibration params from flash and run fast calibration */
|
||||
if (recovery_mode) {
|
||||
printk(BIOS_WARNING, "Skip loading cached calibration data\n");
|
||||
if (get_recovery_mode_retrain_switch() ||
|
||||
vboot_check_recovery_request() == VB2_RECOVERY_TRAIN_AND_REBOOT) {
|
||||
if (get_recovery_mode_retrain_switch()) {
|
||||
printk(BIOS_WARNING, "Retrain memory in next boot\n");
|
||||
/* Use 0xFF as erased flash data. */
|
||||
memset(dparam, 0xff, sizeof(*dparam));
|
||||
|
|
Loading…
Reference in New Issue