Index: src/platform/tpm_lite/src/testsuite/enable.c |
diff --git a/src/platform/tpm_lite/src/testsuite/enable.c b/src/platform/tpm_lite/src/testsuite/enable.c |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d9dfefcb24ca79dfa5a2a653c106e5544f812474 |
--- /dev/null |
+++ b/src/platform/tpm_lite/src/testsuite/enable.c |
@@ -0,0 +1,26 @@ |
+/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+/* Testing: ownership testing code, ForceClear, and nvram write limit. |
+ */ |
+ |
+#include "tlcl.h" |
+ |
+int main(int argc, char** argv) { |
+ |
+ TlclLibInit(); |
+ |
+#if !USE_TPM_EMULATOR |
+ /* The emulator does these itself. */ |
+ TlclStartup(); |
+ TlclSelftestfull(); |
+#endif |
+ |
+ TlclAssertPhysicalPresence(); |
+ TlclSetEnable(); |
+ (void) TlclSetDeactivated(0); // activates the TPM at the next boot |
+ |
+ return 0; |
+} |