diff options
Diffstat (limited to 'include/chipset.h')
-rw-r--r-- | include/chipset.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/chipset.h b/include/chipset.h index fd7455f9f7..ead2a9680e 100644 --- a/include/chipset.h +++ b/include/chipset.h @@ -299,4 +299,20 @@ static inline enum chipset_shutdown_reason chipset_get_shutdown_reason(void) #endif /* !CONFIG_CMD_AP_RESET_LOG */ +#ifdef TEST_BUILD +/** + * @brief Gets the number of AP resets since the EC booted. Takes the reset log + * mutex for thread safety. + * + * @return uint32_t AP reset count + */ +uint32_t test_chipset_get_ap_resets_since_ec_boot(void); + +/** + * @brief Corrupts the stored reset log checksum, which forces init_reset_log() + * to wipe the log and fully reset. + */ +void test_chipset_corrupt_reset_log_checksum(void); +#endif /* TEST_BUILD */ + #endif /* __CROS_EC_CHIPSET_H */ |