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/board.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/board.c')
-rw-r--r-- | board/cr50/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c index dff0b7bfac..d099442965 100644 --- a/board/cr50/board.c +++ b/board/cr50/board.c @@ -1147,6 +1147,8 @@ static void deferred_tpm_rst_isr(void) * then. */ if (!reboot_request_posted || other_rw_is_inactive()) { + /* Update fwmp policies each boot. */ + board_fwmp_update_policies(); /* Reset TPM, no need to wait for completion. */ tpm_reset_request(0, 0); return; |