diff options
author | Mary Ruthven <mruthven@chromium.org> | 2023-03-23 12:06:48 -0500 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-17 22:07:26 +0000 |
commit | 058ae2bf2a86fd45abe219a443619035f8fdcfdc (patch) | |
tree | e5e546547253c20df3eda94fb0645e635377b1e8 /board/cr50/wp.c | |
parent | e7976477ffaf388e90cebeeafb48e499d5d3b6b3 (diff) | |
download | chrome-ec-058ae2bf2a86fd45abe219a443619035f8fdcfdc.tar.gz |
cr50: add update fwmp policies hook
Update the FWMP WP policies whenever the fwmp is written or whenever the
AP comes out of reset. Add a board_fwmp_update_policies function that is
when TPM_RST_L is deasserted and called _plat__NvInformIndexDataChanged
shows the FWMP is written.
BUG=b:268352167
TEST=make buildall -j
Change-Id: Ia00a356b88a36fb879c208b248da08825f21abca
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4367524
Reviewed-by: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'board/cr50/wp.c')
-rw-r--r-- | board/cr50/wp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/cr50/wp.c b/board/cr50/wp.c index fe0dc2da29..54dc17318c 100644 --- a/board/cr50/wp.c +++ b/board/cr50/wp.c @@ -496,6 +496,13 @@ int board_fwmp_allows_boot_policy_update(void) return fwmp_allows(BOOT_POLICY_UPDATE); } +void board_fwmp_update_policies(void) +{ +#ifdef CR50_DEV + CPRINTS("Update fwmp policies."); +#endif +} + int board_vboot_dev_mode_enabled(void) { struct RollbackSpaceFirmware fw; |