summaryrefslogtreecommitdiff
path: root/include/tpm_registers.h
diff options
context:
space:
mode:
authorScott <scollyer@chromium.org>2016-08-02 12:36:52 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-09-05 23:22:13 -0700
commite4f389a275fb81c112b1186df0465e48ff163cfd (patch)
tree8cb4b98a9a79a8f89461f5472c7f8e947e373e9c /include/tpm_registers.h
parentd6c69cef59b9abb31da6ed362b61340a5d8318b9 (diff)
downloadchrome-ec-e4f389a275fb81c112b1186df0465e48ff163cfd.tar.gz
Cr50: Preliminary I2CS TPM2.0 driver
This CL includes changes in Cr50 required to support TPM via the I2CS interface. BRANCH=none BUG=chrome-os-partner:40397 TEST=manual Limited testing so far. Verified that the I2CS interface is initialized properly and that register reads occur when initiated on the AP console via command i2cget -y 8 0x50 0x1 w Change-Id: I16ac17c7c82d420a384908e4b5a9867a3b24bc9e Reviewed-on: https://chromium-review.googlesource.com/356241 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/tpm_registers.h')
-rw-r--r--include/tpm_registers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tpm_registers.h b/include/tpm_registers.h
index c7e8dd27a9..3416492f03 100644
--- a/include/tpm_registers.h
+++ b/include/tpm_registers.h
@@ -26,6 +26,9 @@ void tpm_register_get(uint32_t regaddr, uint8_t *dest, uint32_t data_size);
/* Enable SPS TPM driver. */
void sps_tpm_enable(void);
+/* Get the current value of the burst size field of the status register. */
+size_t tpm_get_burst_size(void);
+
/*
* This structure describes the header of all commands and responses sent and
* received over TPM FIFO.