coreboot/src/soc/intel
Tim Wawrzynczak ff8d0e64a7 soc/intel/jasperlake: Clear RTC_BATTERY_DEAD
Normally for vboot-enabled x86 board, the VBNV region is stored in CMOS
and backed up to flash (RW_NVRAM). However, on the very first boot after
a flash of the full SPI image (so RW_NVRAM is empty), if
RTC_BATTERY_DEAD is set, coreboot persistently requests recovery before
FSP-M finishes (which appears to be the current location that
RTC_BATTERY_DEAD is cleared on this platform). This is because
vbnv_cmos_failed() will still return 1. Therefore, immediately after
reading RTC_BATTERY_DEAD, it is cleared. This prevents an infinite boot
loop when trying to set the recovery mode bit.

Note that this was the behavior for previous generations of Intel PMC
programming as well (see southbridge/intel, soc/skylake, soc/broadwell,
etc).

BUG=b:181678769

Change-Id: Idfaa9a24f7b7fefa4f63ab8e3bc4ee6a0f1faedf
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56670
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
2021-09-20 15:44:09 +00:00
..
alderlake soc/intel/{common,tgl,adl}: guard TME Kconfig option by SoC support 2021-09-20 12:19:39 +00:00
apollolake vboot_logic: Set VB2_CONTEXT_EC_TRUSTED in verstage_main 2021-09-16 23:44:20 +00:00
baytrail cpu/x86/tsc: Deduplicate Makefile logic 2021-09-08 14:35:16 +00:00
braswell cpu/x86/tsc: Deduplicate Makefile logic 2021-09-08 14:35:16 +00:00
broadwell soc/broadwell/acpi.c: Fix unresolvable symbol '\DNVS' 2021-09-15 15:28:57 +00:00
cannonlake soc/intel/cannonlake: Switch to runtime generation of Intel Power Engine 2021-09-10 21:57:20 +00:00
common soc/intel/{common,tgl,adl}: guard TME Kconfig option by SoC support 2021-09-20 12:19:39 +00:00
denverton_ns cpu/x86/tsc: Deduplicate Makefile logic 2021-09-08 14:35:16 +00:00
elkhartlake soc/intel/{ehl,jsl}: make use of Kconfig options for PRMRR size 2021-09-17 22:22:20 +00:00
icelake cpu/x86/tsc: Deduplicate Makefile logic 2021-09-08 14:35:16 +00:00
jasperlake soc/intel/jasperlake: Clear RTC_BATTERY_DEAD 2021-09-20 15:44:09 +00:00
quark cpu/x86/tsc: Deduplicate Makefile logic 2021-09-08 14:35:16 +00:00
skylake vboot_logic: Set VB2_CONTEXT_EC_TRUSTED in verstage_main 2021-09-16 23:44:20 +00:00
tigerlake soc/intel/tigerlake: Clear RTC_BATTERY_DEAD 2021-09-20 15:44:07 +00:00
xeon_sp drivers/intel/fsp2_0: Refactor MultiPhaseSiInit API calling method 2021-09-16 14:31:12 +00:00
Kconfig