summaryrefslogtreecommitdiff
path: root/include/tpm.h
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2011-03-30 15:36:25 +0800
committerSimon Glass <sjg@chromium.org>2011-08-24 10:00:43 -0700
commit58c83a2edc25a1fc27016dcd628cae44ea6c551e (patch)
tree113174b3efad477677d2d0fe1f525e12fa8463d3 /include/tpm.h
parent1b643aa4f49df471e5065796e05b0e900b7c9ca3 (diff)
This is the preliminary v05 TPM driver from Infineon. With a wrapper layer added to auto detect v03 and v05 chips. This is a version that just work. Cleanup will start after the initial push.
BUG=chromium-os:10497 TEST=Manual Build 1. build a compatible lib first emerge-tegra2_seaboard vboot_reference-firmware 2. use MAKEALL script to check all cfg CROSS_COMPILE=armv7a-cros-linux-gnueabi- VBOOT=/build/tegra2_seaboard/usr ./MAKEALL chromeos 3. check result. 25 passed, no warning, no error u-boot command 1. build a compatible version USE-debug VBOOT_DEBUG=1 emerge-tegra2_seaboard -av vboot_reference-firmware chromeos-u-boot-next 2. flash it using proper tools [board specific] 3. reset system and boot into command prompt 4. test with cros_tpm_test command sets: cros_tpm_test enable cros_tpm_test fast_enable cros_tpm_test startup cros_tpm_test timing Review URL: http://codereview.chromium.org/6683023 Change-Id: I37b73dc90399533594c841b016a194ff21ab889a
Diffstat (limited to 'include/tpm.h')
-rw-r--r--include/tpm.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/tpm.h b/include/tpm.h
index dd1b4bfe4fb..7b0d415088e 100644
--- a/include/tpm.h
+++ b/include/tpm.h
@@ -8,8 +8,10 @@
#include <common.h>
-int tpm_init(void);
-int tpm_send(const uint8_t *pdata, size_t length);
-int tpm_receive(uint8_t *pdata, size_t max_length);
+int tis_init(void);
+int tis_open(void);
+int tis_close(void);
+int tis_sendrecv(const uint8_t *sendbuf, size_t send_size, uint8_t *recvbuf,
+ size_t *recv_len);
#endif /* TPM_H_ */