summaryrefslogtreecommitdiff
path: root/lib/tpm_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tpm_api.c')
-rw-r--r--lib/tpm_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tpm_api.c b/lib/tpm_api.c
index f1553512cc5..687fc8bc7ee 100644
--- a/lib/tpm_api.c
+++ b/lib/tpm_api.c
@@ -118,7 +118,7 @@ u32 tpm_nv_read_value(struct udevice *dev, u32 index, void *data, u32 count)
if (is_tpm1(dev))
return tpm1_nv_read_value(dev, index, data, count);
else if (is_tpm2(dev))
- return -ENOSYS;
+ return tpm2_nv_read_value(dev, index, data, count);
else
return -ENOSYS;
}
@@ -129,7 +129,7 @@ u32 tpm_nv_write_value(struct udevice *dev, u32 index, const void *data,
if (is_tpm1(dev))
return tpm1_nv_write_value(dev, index, data, count);
else if (is_tpm2(dev))
- return -ENOSYS;
+ return tpm2_nv_write_value(dev, index, data, count);
else
return -ENOSYS;
}