summaryrefslogtreecommitdiff
path: root/board/cr50/board.h
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@google.com>2019-01-28 18:24:55 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-06 06:51:00 -0800
commit4aa18870f9a9609749a5a250f94e5ae26e943874 (patch)
tree0531c19c10814beee4c89fb2e32c8d2029278539 /board/cr50/board.h
parent70b2257b4c9d22847574a5128332787909934043 (diff)
downloadchrome-ec-4aa18870f9a9609749a5a250f94e5ae26e943874.tar.gz
cr50: add a closed loop reset function
Add a function that asserts EC_RST_L until TPM_RST_L gets asserted. Disable sleep using SLEEP_MASK_AP_RUN while waiting for the AP reset. Disable tpm communications using tpm_stop until the AP is reset. BUG=b:123544145 BRANCH=cr50 TEST=run 'ecrst cl' on mistral, scarlet, and soraka. Make sure the sleepmask is cleared correctly and the TPM works after the reset is complete. Change-Id: I5971b45b7a69fd24887a7c22ee7984972b7828ae Signed-off-by: Mary Ruthven <mruthven@google.com> Reviewed-on: https://chromium-review.googlesource.com/1444411 Commit-Ready: Mary Ruthven <mruthven@chromium.org> Tested-by: Mary Ruthven <mruthven@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/cr50/board.h')
-rw-r--r--board/cr50/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h
index 352afdc04f..4878090ab0 100644
--- a/board/cr50/board.h
+++ b/board/cr50/board.h
@@ -318,6 +318,7 @@ int board_battery_is_present(void);
int board_fwmp_allows_unlock(void);
int board_vboot_dev_mode_enabled(void);
void board_reboot_ap(void);
+void board_closed_loop_reset(void);
int board_wipe_tpm(void);
int board_is_first_factory_boot(void);