coreboot-kgpe-d16/src/mainboard/google/butterfly
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 mb/google/butterfly: Convert to ASL 2.0 syntax 2021-01-28 21:37:14 +00:00
acpi_tables.c mb/google: Move ECFW_RW setting for non-ChromeEC boards 2021-04-30 06:48:56 +00:00
board_info.txt
chromeos.c vboot_logic: Set VB2_CONTEXT_EC_TRUSTED in verstage_main 2021-09-16 23:44:20 +00:00
chromeos.fmd
cmos.default
cmos.layout mb/**/cmos.layout: Indent everything with tabs 2020-11-23 09:56:20 +00:00
devicetree.cb sb/intel/bd82x6x: Use array for PCIe ASPM overrides 2021-06-07 11:34:11 +00:00
dsdt.asl ACPI: Move include for <vc/google/chromeos.asl> 2021-01-28 08:59:54 +00:00
early_init.c sandybridge MRC boards: Drop channel disable masks 2021-02-12 07:52:01 +00:00
ec.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ec.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gma-mainboard.ads treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gpio.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
hda_verb.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Kconfig mb/*: Specify type of MAINBOARD_PART_NUMBER once 2021-07-26 14:05:29 +00:00
Kconfig.name mb/google: Unify all variants to start with "-> " 2021-09-16 15:34:29 +00:00
mainboard.c mb/google/butterfly: Put braces around else branch 2021-08-27 20:01:55 +00:00
Makefile.inc arch/x86: Use wildcard for mb/smihandler.c 2021-01-24 21:06:22 +00:00
onboard.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
smihandler.c src: Remove unused <cpu/intel/model_206ax/model_206ax.h> 2021-02-11 10:25:44 +00:00
thermal.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00