coreboot/src/drivers
Julius Werner 29fbfcc472 vboot: Clean up pre-RAM use of vboot_recovery_mode_enabled()
vboot_recovery_mode_enabled() was recently changed to assert() when it
is called before vboot logic has run, because we cannot determine
whether we're going to be in recovery mode at that point and we wanted
to flush out existing uses that pretended that we could. Turns out there
are a bunch of uses like that, and there is some code that is shared
across configurations that can and those that can't.

This patch cleans them up to either remove checks that cannot return
true, or add explicit Kconfig guards to clarify that the code is shared.
This means that using a separate recovery MRC cache is no longer
supported on boards that use VBOOT_STARTS_IN_ROMSTAGE (this has already
been broken with CB:38780, but with this patch those boards will boot
again using their normal MRC caches rather than just die). Skipping the
MRC cache and always regenerating from scratch in recovery mode is
likewise no longer supported for VBOOT_STARTS_IN_ROMSTAGE.

For FSP1.1 boards, none of them support VBOOT_STARTS_IN_BOOTBLOCK and
that is unlikely to change in the future so we will just hardcode that
fact in Kconfig (otherwise, fsp1.1 raminit would also have to be fixed
to work around this issue).

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I31bfc7663724fdacab9955224dcaf650d1ec1c3c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39221
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2020-05-09 00:21:59 +00:00
..
amd/agesa acpi: Move ACPI table support out of arch/x86 (3/5) 2020-05-02 18:45:16 +00:00
ams drivers/ams: Hide RTC driver from Kconfig menus 2020-04-24 18:16:29 +00:00
analogix/anx7625 src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
asmedia src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
aspeed treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
broadcom src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
crb acpi: Move ACPI table support out of arch/x86 (3/5) 2020-05-02 18:45:16 +00:00
dec/21143 treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
elog acpi: Move ACPI table support out of arch/x86 (3/5) 2020-05-02 18:45:16 +00:00
emulation/qemu treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
generic acpi: Move ACPI table support out of arch/x86 (3/5) 2020-05-02 18:45:16 +00:00
gfx/generic acpi: Move ACPI table support out of arch/x86 (3/5) 2020-05-02 18:45:16 +00:00
gic src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
i2c treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
intel vboot: Clean up pre-RAM use of vboot_recovery_mode_enabled() 2020-05-09 00:21:59 +00:00
ipmi acpi: Move ACPI table support out of arch/x86 (3/5) 2020-05-02 18:45:16 +00:00
lenovo treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
maxim treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
mrc_cache vboot: Clean up pre-RAM use of vboot_recovery_mode_enabled() 2020-05-09 00:21:59 +00:00
net acpi: Move ACPI table support out of arch/x86 (3/5) 2020-05-02 18:45:16 +00:00
parade src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
pc80 treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
ricoh/rce822 src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
secunet/dmi treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
siemens/nc_fpga src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
sil/3114 src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
smmstore src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
spi treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
ti drivers/ti/tps65913: Hide RTC driver from Kconfig menus 2020-04-24 18:16:31 +00:00
tpm acpi: Move ACPI table support out of arch/x86 (3/5) 2020-05-02 18:45:16 +00:00
uart treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
usb {drivers,ec/kontron}: Replace GPLv2 long form headers with SPDX header 2020-05-08 15:21:37 +00:00
vpd src/drivers: Use SPDX for GPL-2.0-only files 2020-04-06 13:42:15 +00:00
wifi treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
xgi treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00