diff options
author | Simon Glass | 2021-02-06 14:23:41 -0700 |
---|---|---|
committer | Tom Rini | 2021-03-02 15:53:37 -0500 |
commit | 7785bc1d5f94d28497bef6935ecbaa1b0ddd3e26 (patch) | |
tree | 27f83962679608c05adcb0ee964b6bf6f28c6177 /lib/tpm_api.c | |
parent | 6719cbe31afef2cba4bc10b33350b38c4a51c3ac (diff) |
tpm: Add TPM2 support for write_lock
Implement this API function for TPM2.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib/tpm_api.c')
-rw-r--r-- | lib/tpm_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tpm_api.c b/lib/tpm_api.c index 687fc8bc7ee..4c662640a92 100644 --- a/lib/tpm_api.c +++ b/lib/tpm_api.c @@ -144,7 +144,7 @@ u32 tpm_write_lock(struct udevice *dev, u32 index) if (is_tpm1(dev)) return -ENOSYS; else if (is_tpm2(dev)) - return -ENOSYS; + return tpm2_write_lock(dev, index); else return -ENOSYS; } |