summaryrefslogtreecommitdiff
path: root/board/cr50/board.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2016-08-05 10:25:42 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-09-24 13:53:26 -0700
commitb94747d501ad7e4347b50c3ea55e615422d96212 (patch)
treeb2c078ca5b87a8af29827474789475903f5b316f /board/cr50/board.c
parent5fa727805ca3222e9268755c54c15bbf87c5b2bd (diff)
downloadchrome-ec-b94747d501ad7e4347b50c3ea55e615422d96212.tar.gz
cr50: reset only the TPM state on SYS_RST_L
Rather than doing a full cr50 reset when the system reset SYS_RST_L is asserted, just reset the state of the TPM task and library. Re-clear .bss for those modules, then re-initialize. BRANCH=none BUG=chrome-os-partner:52366 CQ-DEPEND=CL:366792 TEST=make buildall; test on Gru Trigger a SYS_RST_L by using the AP's reboot command, power off/on, log in/out/in. See that the Cr50 does not reboot and the firmware and userspace are still happy about the TPM. Change-Id: I32cd2bb72316f68c74db77a20a8d09112b402d4b Signed-off-by: Randall Spangler <rspangler@chromium.org> Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/361680
Diffstat (limited to 'board/cr50/board.c')
-rw-r--r--board/cr50/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c
index 3f365350da..31a8d2fef1 100644
--- a/board/cr50/board.c
+++ b/board/cr50/board.c
@@ -394,8 +394,8 @@ void sys_rst_asserted(enum gpio_signal signal)
if (usb_spi_update_in_progress() || is_sys_rst_asserted())
return;
- cflush();
- system_reset(0);
+ /* Re-initialize the TPM software state */
+ task_set_event(TASK_ID_TPM, TPM_EVENT_RESET, 0);
}
void assert_sys_rst(void)