coreboot-kgpe-d16/src/mainboard/google/guybrush
Hsuan Ting Chen 6260bf712a vboot_logic: Set VB2_CONTEXT_EC_TRUSTED in verstage_main
vboot_reference is introducing a new field (ctx) to store the current
boot mode in crrev/c/2944250 (ctx->bootmode), which will be leveraged
in both vboot flow and elog_add_boot_reason in coreboot.

In current steps of deciding bootmode, a function vb2ex_ec_trusted
is required. This function checks gpio EC_IN_RW pin and will return
'trusted' only if EC is not in RW. Therefore, we need to implement
similar utilities in coreboot.

We will deprecate vb2ex_ec_trusted and use the flag,
VB2_CONTEXT_EC_TRUSTED, in vboot, vb2api_fw_phase1 and set that flag
in coreboot, verstage_main.

Also add a help function get_ec_is_trusted which needed to be
implemented per mainboard.

BUG=b:177196147, b:181931817
BRANCH=none
TEST=Test on trogdor if manual recovery works

Signed-off-by: Hsuan Ting Chen <roccochen@chromium.org>
Change-Id: I479c8f80e45cc524ba87db4293d19b29bdfa2192
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57048
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2021-09-16 23:44:20 +00:00
..
spd mb/google/guybrush: Update memory configuration 2021-06-14 05:16:31 +00:00
variants mb/google/guybrush: Initialize WWAN GPIOs the same for PCI vs USB 2021-09-16 22:47:48 +00:00
board_info.txt
bootblock.c mb/google/guybrush: Reorganize bootblock_mainboard_early_init() 2021-09-16 22:48:35 +00:00
chromeos.c vboot_logic: Set VB2_CONTEXT_EC_TRUSTED in verstage_main 2021-09-16 23:44:20 +00:00
chromeos.fmd mb/google/guybrush,mancomb: Adjust GBB size to 12KB 2021-05-12 15:08:31 +00:00
dsdt.asl mb/google/guybrush: Add ACPI support for Chrome EC 2021-03-13 02:37:30 +00:00
ec.c mb/google/guybrush: Fix EC SCI configuration 2021-04-27 23:36:05 +00:00
Kconfig mb/(amd,google): Update SPI Kconfig settings based on devicetree 2021-08-28 17:42:22 +00:00
Kconfig.name mb/google: Unify all variants to start with "-> " 2021-09-16 15:34:29 +00:00
mainboard.c mb/google/guybrush: Update GPIOs for fingerprint MCU 2021-08-16 14:47:03 +00:00
Makefile.inc mb/google/guybrush: Update romstage power-on timings for PCIe 2021-06-29 18:06:13 +00:00
port_descriptors.c mb/google/guybrush: If not using PCIe WWAN, disable the port 2021-09-16 22:46:52 +00:00
romstage.c mb/google/guybrush: Update romstage power-on timings for PCIe 2021-06-29 18:06:13 +00:00
smihandler.c mb/google/guybrush,mancomb: only print warning in mainboard_smi_gpi 2021-04-29 15:31:53 +00:00
verstage.c mb/google/guybrush: configure eSPI mux on psp_verstage 2021-06-24 04:16:47 +00:00