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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user