summaryrefslogtreecommitdiff
path: root/include/tpm_registers.h
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-07-24 17:20:13 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-08-14 21:04:38 +0000
commit6386c37379284390ed53a7146116947b49576fac (patch)
tree46014a5345b8310b79f338737aa09628cadb4e02 /include/tpm_registers.h
parent73a8098d79d84292ff56674f843f73753520fcbd (diff)
downloadchrome-ec-6386c37379284390ed53a7146116947b49576fac.tar.gz
cr50: introduce tpm task skeleton
TPM command processing should not be happening on the interrupt context. This patch adds a skeleton of the task which handles TPM functions. It initializes the TPM and then enters endless loop waiting for an event trigger from interrupt, which happens when a valid FIFO message is received. BRANCH=none BUG=chrome-os-partner:43025 TEST=none yet Change-Id: I63dce2762cc07370a05bf00bdf144c5d9eb6019b Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/289332 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 cdf8410a51..2bdd87bc25 100644
--- a/include/tpm_registers.h
+++ b/include/tpm_registers.h
@@ -21,4 +21,7 @@ void tpm_register_put(uint32_t regaddr,
/* The SPI master is reading data from a TPM register. */
void tpm_register_get(uint32_t regaddr, uint8_t *dest, uint32_t data_size);
+/* Enable SPS TPM driver. */
+void sps_tpm_enable(void);
+
#endif /* __CROS_EC_TPM_REGISTERS_H */