coreboot-kgpe-d16/src/soc/intel/broadwell
Duncan Laurie 35dc00f75b broadwell: Preserve VbNv around cmos_init
To ensure that boot flags (legacy, usb, signed-only) are
properly restored from CMOS and used in the first boot after
a battery removal or RTC reset then the VbNv region needs to
be preserved around the cmos_init call.

When using vboot firmware selection and VbNv is stored in CMOS
then that region of CMOS will have been re-initialized by the
time we call cmos_init and reset CMOS if the chipset flag was
set indicating a problem.

BUG=chrome-os-partner:35240
BRANCH=broadwell
TEST=manual testing on samus:
1) boot in dev mode, enable dev_boot_legacy and ensure it works
2) on EC console pulse PCH_RTCRST_L low for a second
3) ensure first boot after RTC reset will still boot legacy mode
4) remove battery for a time
5) ensure first boot after battery is re-inserted will still
boot legacy mode

Change-Id: Ica256bbdcba6d4616957ff38e63914dd15f645c6
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Original-Commit-Id: 881c7841c95dec392a66eef38a7112c1f385fdfa
Original-Change-Id: I4c33f183ba4b301d68ae31c41fc6663f3be857b0
Original-Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/241529
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9495
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2015-04-10 20:16:59 +02:00
..
acpi broadwell: Remove XHCI workarounds on WPT 2015-04-10 20:13:56 +02:00
bootblock broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
include/soc broadwell: Add function to apply PRR to a range of SPI flash 2015-04-10 20:16:30 +02:00
microcode broadwell: Update Haswell and Broadwell E0 microcode 2014-10-22 03:48:52 +02:00
romstage broadwell: Fix PCIe ports programming sequences to enable HSIOPC 2015-04-10 20:09:56 +02:00
acpi.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
adsp.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
chip.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
chip.h broadwell: Disable ADSP power gating feature by default 2015-04-02 17:28:15 +02:00
cpu.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
cpu_info.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
ehci.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
elog.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
finalize.c broadwell: Add a few bits to finalize step 2015-04-10 20:08:18 +02:00
gpio.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
hda.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
igd.c broadwell: Only do pre-graphics delay when running option rom 2015-04-10 20:13:05 +02:00
iobp.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
Kconfig broadwell: Add function to apply PRR to a range of SPI flash 2015-04-10 20:16:30 +02:00
lpc.c broadwell: Preserve VbNv around cmos_init 2015-04-10 20:16:59 +02:00
Makefile.inc broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
me.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
me_status.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
memmap.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
minihd.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
monotonic_timer.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
pch.c broadwell: add RCBA posting read after writing 2015-04-10 19:29:33 +02:00
pcie.c broadwell: Skip steps when disabling PCIe port 2015-04-10 20:14:33 +02:00
pei_data.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
pmutil.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
ramstage.c broadwell: Add support for ACPI \_GPE._SWS 2015-04-10 19:22:25 +02:00
refcode.c Broadwell: Set boot_mode of pei_data before running reference code 2015-04-10 20:03:23 +02:00
reset.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
sata.c broadwell: Update SATA Gen3 TX adjustment registers 2015-04-10 20:08:48 +02:00
serialio.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
smbus.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
smbus_common.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
smi.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
smihandler.c broadwell: Turn off panel backlight in S5 SMI handler 2015-04-10 20:15:05 +02:00
smmrelocate.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
spi.c broadwell: Add function to apply PRR to a range of SPI flash 2015-04-10 20:16:30 +02:00
stage_cache.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
systemagent.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
tsc_freq.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
usbdebug.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
xhci.c broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00