From 4aa18870f9a9609749a5a250f94e5ae26e943874 Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Mon, 28 Jan 2019 18:24:55 -0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1444411 Commit-Ready: Mary Ruthven Tested-by: Mary Ruthven Reviewed-by: Keith Short --- board/cr50/board.h | 1 + 1 file changed, 1 insertion(+) (limited to 'board/cr50/board.h') 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); -- cgit v1.2.1