coreboot/src
Aaron Durbin 0990fbf2d9 vboot: reset vbnv in cmos when cmos failure occurs
There's an occasional issue on machines which use CMOS for their
vbnv storage. The machine that just powers up from complete G3
would have had their RTC rail not held up. The contents of vbnv
in CMOS could pass the crc8 though the values could be bad. In
order to fix this introduce two functions:

1. vbnv_init_cmos()
2. vbnv_cmos_failed()

At the start of vboot the CMOS is queried for failure. If there
is a failure indicated then the vbnv data is restored from flash
backup or reset to known values when there is no flash backup.

BUG=b:63054105

Change-Id: I8bd6f28f64a116b84a08ce4779cd4dc73c0f2f3d
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/21560
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
2017-09-20 23:54:42 +00:00
..
acpi src/acpi: Add guards on all header files 2017-08-01 23:04:27 +00:00
arch arch/x86: Fix typo with MTRR 2017-09-13 17:26:27 +00:00
commonlib sb/intel/bd82x6x: Add time-stamp around ME DRAM update 2017-09-13 16:19:06 +00:00
console console: Add weak method to notify about death 2017-08-14 11:01:41 +00:00
cpu cpu/x86/sipi_vector.S: Use correct op suffix 2017-09-17 00:40:36 +00:00
device device/dram/ddr2.c: Improve error returning and debug output 2017-09-20 01:27:44 +00:00
drivers vboot: remove init_vbnv_cmos() 2017-09-20 23:53:23 +00:00
ec ec/quanta/it8518: add missing HID to SIO device 2017-09-19 14:11:26 +00:00
include AGESA binaryPI: Clean up amdfamXX.h include 2017-09-19 18:38:58 +00:00
lib timestamp: Add function to get time since boot 2017-09-14 18:12:39 +00:00
mainboard vboot: reset vbnv in cmos when cmos failure occurs 2017-09-20 23:54:42 +00:00
northbridge nb/i945/raminit: Use common ddr2 decode functions 2017-09-20 01:24:24 +00:00
soc vboot: reset vbnv in cmos when cmos failure occurs 2017-09-20 23:54:42 +00:00
southbridge vboot: reset vbnv in cmos when cmos failure occurs 2017-09-20 23:54:42 +00:00
superio superio/winbond/w83627*: Remove deprecated code 2017-08-21 17:02:53 +00:00
vboot vboot: reset vbnv in cmos when cmos failure occurs 2017-09-20 23:54:42 +00:00
vendorcode AGESA buildsystem: Reduce include path exposure 2017-09-13 22:52:13 +00:00
Kconfig clang: Allow ANY_TOOLCHAIN for non-coreboot clang 2017-09-02 15:23:22 +00:00