coreboot/src/security/vboot
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
..
antirollback.h security/vboot: Add support for ZTE spaces 2021-06-10 23:38:53 +00:00
bootmode.c vboot_logic: Set VB2_CONTEXT_EC_TRUSTED in verstage_main 2021-09-16 23:44:20 +00:00
common.c src/security: Remove unused <console/console.h> 2021-02-15 10:49:53 +00:00
ec_sync.c vboot: ec_sync: Switch to new CBFS API 2021-04-14 01:03:22 +00:00
Kconfig vboot: add VBOOT_X86_SHA256_ACCELERATION config 2021-07-01 09:38:19 +00:00
Makefile.inc vboot: add VBOOT_X86_SHA256_ACCELERATION config 2021-07-01 09:38:19 +00:00
misc.h src/security: Drop unneeded empty lines 2020-09-21 16:26:17 +00:00
mrc_cache_hash_tpm.c mrc_cache: Add tpm_hash_index field to cache_region struct 2020-10-20 23:26:01 +00:00
mrc_cache_hash_tpm.h security/vboot: Make mrc_cache hash functions generic 2020-10-20 23:25:39 +00:00
secdata_mock.c vboot/secdata_mock: Make v0 kernel secdata context 2021-05-18 15:30:47 +00:00
secdata_tpm.c vboot/secdata_tpm: Add WRITE_STCLEAR attr to RW ARB spaces 2021-07-26 07:27:48 +00:00
symbols.h
tpm_common.c security: vboot: Clarify PCR extension algorithms/sizes 2021-03-30 21:07:56 +00:00
tpm_common.h Add Kconfig TPM 2021-05-26 12:31:10 +00:00
vbnv.c
vbnv.h
vbnv_cmos.c coreboot_table: Move VBOOT_VBNV support 2021-02-04 08:43:39 +00:00
vbnv_ec.c
vbnv_flash.c
vbnv_layout.h
vboot_common.c src: Remove unused 'include <boot_device.h>' 2020-08-18 12:15:10 +00:00
vboot_common.h cbfs: Add metadata cache 2020-11-21 10:43:53 +00:00
vboot_lib.c src: Change BOOL CONFIG_ to CONFIG() in comments & strings 2020-07-26 21:20:30 +00:00
vboot_loader.c security/vboot: Add timestamps when loading verstage 2021-06-14 05:11:07 +00:00
vboot_logic.c vboot_logic: Set VB2_CONTEXT_EC_TRUSTED in verstage_main 2021-09-16 23:44:20 +00:00
verstage.c verstage: Add debug print when returning from verstage 2021-04-06 07:49:43 +00:00