mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-05 22:41:44 +00:00
cr50: log tpm reset event
Use the previously introduced TPM logging framework to log TPM reset
events. The two lowest data field bits are used to communicate the
type of reset passed to tpm_reset_request(),
BRANCH=cr50
BUG=b:63760920
TEST=with the upcoming patches verified that TPM initialization is
logged as expected
Change-Id: Ic0874723ec6df616a8237b036542398b29fe5ccc
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/620113
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
940b88754c
commit
e24bd63fae
@@ -146,6 +146,8 @@
|
||||
/* Implement custom udelay, due to usec hwtimer imprecision. */
|
||||
#define CONFIG_HW_SPECIFIC_UDELAY
|
||||
|
||||
#define CONFIG_TPM_LOGGING
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include "gpio_signal.h"
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#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"
|
||||
@@ -696,6 +697,10 @@ int tpm_reset_request(int wait_until_done, int wipe_nvmem_first)
|
||||
return EC_ERROR_BUSY;
|
||||
}
|
||||
|
||||
/* Record input parameters as two bits in the data field. */
|
||||
tpm_log_event(TPM_EVENT_INIT,
|
||||
(!!wait_until_done << 1) | !!wipe_nvmem_first);
|
||||
|
||||
reset_in_progress = 1;
|
||||
wipe_result = EC_SUCCESS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user