coreboot-kgpe-d16/src/soc/intel/braswell
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 soc/braswell: assign unique DMA request lines to I2C controllers 2017-06-09 16:56:47 +02:00
bootblock intel: Fix copy/paste error in license text 2017-01-16 12:57:05 +01:00
include/soc soc/intel/braswell: refactor rtc failure checking 2017-09-20 23:54:14 +00:00
romstage lib: put romstage_handoff implementation in own compilation unit 2016-12-01 08:16:47 +01:00
acpi.c fsp/gop: Add running the GOP to the choice of gfx init 2017-06-08 14:58:29 +02:00
chip.c soc/intel/braswell: add USB2 PHY PERPORTRXISET UPD 2017-09-08 21:09:48 +00:00
chip.h soc/intel/braswell: add USB2 PHY PERPORTRXISET UPD 2017-09-08 21:09:48 +00:00
cpu.c cpu/x86/mp_init: remove adjust_cpu_apic_entry() 2017-09-11 01:17:45 +00:00
elog.c
emmc.c
gfx.c
gpio.c soc/intel/braswell: Fix spacing issues detected by checkpatch 2017-03-17 02:35:47 +01:00
gpio_support.c soc/intel/braswell: Fix spacing issues detected by checkpatch 2017-03-17 02:35:47 +01:00
hda.c
iosf.c intel: Fix copy/paste error in license text 2017-01-16 12:57:05 +01:00
Kconfig soc/intel/braswell: select GENERIC_GPIO_LIB 2017-08-25 18:56:24 +00:00
lpc_init.c
lpe.c soc/intel/braswell: Fix most of the issues detected by checkpatch 2017-03-17 02:36:36 +01:00
lpss.c
Makefile.inc soc/intel/braswell: refactor rtc failure checking 2017-09-20 23:54:14 +00:00
memmap.c
northcluster.c soc/braswell: fix ACPI table by recollecting TOLM 2017-06-09 17:04:33 +02:00
pcie.c soc/intel/braswell: Add int to unsigned 2017-03-17 02:36:16 +01:00
placeholders.c
pmutil.c vboot: reset vbnv in cmos when cmos failure occurs 2017-09-20 23:54:42 +00:00
ramstage.c
sata.c
scc.c soc/intel/braswell: Populate NVS SCC BAR1 2017-08-25 18:59:35 +00:00
sd.c
smihandler.c
smm.c
southcluster.c soc/intel/braswell: refactor rtc failure checking 2017-09-20 23:54:14 +00:00
spi.c Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
spi_loading.c
tsc_freq.c soc/intel/braswell: Fix most of the issues detected by checkpatch 2017-03-17 02:36:36 +01:00
xhci.c soc/intel/braswell: Fix most of the issues detected by checkpatch 2017-03-17 02:36:36 +01:00