coreboot-kgpe-d16/src/mainboard/google/beltino
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
..
acpi
variants lynxpoint/broadwell: Rename LP GPIO config global 2021-03-22 11:26:22 +00:00
acpi_tables.c ACPI: Select ACPI_SOC_NVS only where suitable 2021-01-18 07:21:34 +00:00
board_info.txt
bootblock.c
chromeos.c vboot_logic: Set VB2_CONTEXT_EC_TRUSTED in verstage_main 2021-09-16 23:44:20 +00:00
chromeos.fmd
cmos.layout
data.vbt
devicetree.cb cpu/intel/haswell: Factor out ACPI C-state values 2021-01-15 11:23:23 +00:00
dsdt.asl ACPI: Move include for <vc/google/chromeos.asl> 2021-01-28 08:59:54 +00:00
gma-mainboard.ads
Kconfig mb/*: Specify type of VARIANT_DIR once 2021-07-26 14:07:38 +00:00
Kconfig.name
lan.c mb/google/*: allow LAN MAC to be read from VPD w/o ChromeOS 2021-04-21 09:12:31 +00:00
mainboard.c
Makefile.inc nb/intel: Don't select VBOOT_SEPARATE_VERSTAGE 2021-05-05 11:47:15 +00:00
onboard.h
romstage.c nb/intel/haswell: Decouple mainboard USB config from MRC 2021-03-25 07:51:38 +00:00
smihandler.c ACPI: Select ACPI_SOC_NVS only where suitable 2021-01-18 07:21:34 +00:00