summaryrefslogtreecommitdiff
path: root/common/tpm_registers.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2019-03-14 11:17:21 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-03-28 11:16:54 -0700
commite0d934828ef95a702a2a491a9219a1a55cc997cc (patch)
tree57adcb2aa9738ad64bdb4b894a2387f2df031860 /common/tpm_registers.c
parent5ea675bcecddf7fc9e94d718e22523216157e9d5 (diff)
downloadchrome-ec-e0d934828ef95a702a2a491a9219a1a55cc997cc.tar.gz
cr50: move to use flash event log
With upcoming Cr50 changes which might trigger occasional reboots, it is better to keep the Cr50 log in the newly introduced flash log space as opposed to the circular log in SRAM. There is no need to log TPM resent events, as this is not something worth tracking in a flash log. Enabling flash log facility adds 624 bytes to the prod Cr50 image and 1420 bytes to the DBG Cr50 image. BRANCH=cr50, cr50-mp BUG=b:63760920 TEST=with modified code observed saving of FE_TPM_I2C_ERROR event. Change-Id: Id6779de887dac20ce6c1091c8b1571ae900623fd Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1525145 Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'common/tpm_registers.c')
-rw-r--r--common/tpm_registers.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/common/tpm_registers.c b/common/tpm_registers.c
index fe6ffffc75..8a7a4c5360 100644
--- a/common/tpm_registers.c
+++ b/common/tpm_registers.c
@@ -20,7 +20,6 @@
#include "system.h"
#include "system_chip.h"
#include "task.h"
-#include "tpm_log.h"
#include "tpm_manufacture.h"
#include "tpm_registers.h"
#include "util.h"
@@ -764,12 +763,6 @@ int tpm_reset_request(int wait_until_done, int wipe_nvmem_first)
return EC_ERROR_BUSY;
}
-#ifdef CONFIG_TPM_LOGGING
- /* Record input parameters as two bits in the data field. */
- tpm_log_event(TPM_EVENT_INIT,
- (!!wait_until_done << 1) | !!wipe_nvmem_first);
-#endif
-
reset_in_progress = 1;
wipe_result = EC_SUCCESS;