summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/console/post_codes.h7
-rw-r--r--src/vendorcode/google/chromeos/vboot.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h
index 0310db3958..9f9b7886a6 100644
--- a/src/include/console/post_codes.h
+++ b/src/include/console/post_codes.h
@@ -220,6 +220,13 @@
#define POST_JUMPING_TO_PAYLOAD 0xf3
/**
+ * \brief TPM failure
+ *
+ * An error with the TPM, either unexepcted state or communications failure.
+ */
+#define POST_TPM_FAILURE 0xed
+
+/**
* \brief Not supposed to get here
*
* A function that should not have returned, returned
diff --git a/src/vendorcode/google/chromeos/vboot.c b/src/vendorcode/google/chromeos/vboot.c
index e42961ff47..44fe9e3025 100644
--- a/src/vendorcode/google/chromeos/vboot.c
+++ b/src/vendorcode/google/chromeos/vboot.c
@@ -233,6 +233,7 @@ static void init_vboot(int bootmode)
#if !MOCK_TPM
printk(BIOS_ERR, "TPM: Error code 0x%x. Hard reset!\n", result);
+ post_code(POST_TPM_FAILURE);
hard_reset();
#endif
}