mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 02:20:48 +00:00
We want to be able to collect statistics of the i2c bus problems. This
patch logs an event each time the wedged bus recovery happens.
BRANCH=cr50
BUG=b:63760920
TEST=with the upcoming patches verified that i2c recovery events are
logged as expected.
Change-Id: I1241b2dece33f89cd724d53a48f94e17f4415c62
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/620114
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
20 lines
451 B
C
20 lines
451 B
C
/* Copyright 2017 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.
|
|
*/
|
|
|
|
#ifndef __CROS_EC_TPM_LOG_H
|
|
#define __CROS_EC_TPM_LOG_H
|
|
|
|
#include "event_log.h"
|
|
|
|
enum tpm_event {
|
|
TPM_EVENT_INIT,
|
|
TPM_I2C_RESET,
|
|
};
|
|
|
|
/* Log TPM event of given type with data payload. */
|
|
void tpm_log_event(enum tpm_event type, uint16_t data);
|
|
|
|
#endif /* __CROS_EC_TPM_LOG_H */
|