cros_ec: Use boot mode to check if EC can be trusted
Currently, EC_IN_RW signal is used for the AP to decide whether EC is
running an RO copy or not.
coreboot will set VB2_CONTEXT_EC_TRUSTED based on the EC's boot mode
if supported. It means the EC is in RO and PD is disabled. This patch
makes vb2_allow_recovery check VB2_CONTEXT_EC_TRUSTED prior to
entering recovery mode.
Signed-off-by: Daisuke Nojiri <firstname.lastname@example.org>
Reviewed-by: Furquan Shaikh <email@example.com>
Reviewed-by: Julius Werner <firstname.lastname@example.org>
2 files changed