coreboot/src
Tim Wawrzynczak 38d38479fa soc/intel/icelake: 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: I1a55df754c711b2afb8939b442019831c25cce29
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56671
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:12 +00:00
..
acpi acpi: Generate power resource name instead of default "PRIC" 2021-09-16 06:07:15 +00:00
arch arch/riscv: Avoid gcc11 replacing memset implementation with memset call 2021-09-19 18:52:22 +00:00
commonlib commonlib/cbfs: Fix minor parser edge cases 2021-09-15 01:19:22 +00:00
console console: Remove asmlinkage from console_init 2021-09-17 23:52:02 +00:00
cpu cpu: add missing arch/cpu.h includes 2021-09-17 20:28:09 +00:00
device device/dram/spd.c: Add more manufacturer ID codes 2021-09-20 12:12:46 +00:00
drivers driver/i2c/max98390: Add vmon_slot_no/imon_slot_no property 2021-09-20 12:40:51 +00:00
ec ec/system76/ec: acpi: Implement _BIX method 2021-09-17 01:03:59 +00:00
include device: Add helper macros for device pointers using alias names 2021-09-20 12:17:50 +00:00
lib Move post_codes.h to commonlib/console/ 2021-08-04 15:15:51 +00:00
mainboard mb/google/brya/var/redrix: Get wifi sar name 2021-09-20 12:16:04 +00:00
northbridge nb/intel/haswell: Move MRC glue code into a subfolder 2021-08-02 14:59:45 +00:00
security security/intel/txt/romstage: add missing arch/cpu.h include 2021-09-17 20:28:19 +00:00
soc soc/intel/icelake: Clear RTC_BATTERY_DEAD 2021-09-20 15:44:12 +00:00
southbridge sb/intel/ibexpeak/early_cir: add missing arch/cpu.h include 2021-09-17 22:32:29 +00:00
superio superio/nuvoton/nct6776: Correct the definition of NCT6776_GPIOBASE 2021-08-29 16:41:12 +00:00
vendorcode vc/amd/sb800: Fix out of bounds shift 2021-09-20 15:43:26 +00:00
Kconfig util/kconfig: Add pre-built parser 2021-09-13 15:35:03 +00:00