diff options
author | Andrey Pronin <apronin@google.com> | 2023-02-10 19:18:17 -0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-02-15 00:09:47 +0000 |
commit | 528d2182bbd49a3ffe9c1cfcdd306d1effd80c74 (patch) | |
tree | 9bcbf4ab0b58e5bce75bade847719dd060c03b58 /board | |
parent | b993899fe481fb8252a5016db8f298dd004bd456 (diff) | |
download | chrome-ec-528d2182bbd49a3ffe9c1cfcdd306d1effd80c74.tar.gz |
cr50: implement trivial _plat__NvUpdateAllowed
This CL adds a trivial (always returns TRUE) callback to check
if platform allows TPM2 stack to update (modify or delete) a
specific nvmem index.
BUG=b:267674073
TEST=build
Change-Id: Iba51e15771de1350083a950041562070d813a1b5
Signed-off-by: Andrey Pronin <apronin@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4241651
Tested-by: Andrey Pronin <apronin@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Commit-Queue: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/cr50/tpm2/platform.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/cr50/tpm2/platform.c b/board/cr50/tpm2/platform.c index f684bd254f..ce0a559390 100644 --- a/board/cr50/tpm2/platform.c +++ b/board/cr50/tpm2/platform.c @@ -104,3 +104,8 @@ void _plat__OwnerClearCallback(void) if (rv != EC_SUCCESS) CPRINTF("%s: failed (%d)\n", __func__, rv); } + +BOOL _plat__NvUpdateAllowed(uint32_t handle) +{ + return TRUE; +} |