summaryrefslogtreecommitdiff
path: root/board/cr50/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cr50/board.c')
-rw-r--r--board/cr50/board.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c
index 2edf27a511..f1d4d2a743 100644
--- a/board/cr50/board.c
+++ b/board/cr50/board.c
@@ -9,6 +9,7 @@
#include "common.h"
#include "console.h"
#include "dcrypto/dcrypto.h"
+#include "ec_comm.h"
#include "ec_version.h"
#include "endian.h"
#include "extension.h"
@@ -1045,6 +1046,12 @@ void board_reboot_ec(void)
}
DECLARE_DEFERRED(board_reboot_ec);
+void board_reboot_ec_deferred(int32_t usec_delay)
+{
+ if (usec_delay >= 0)
+ hook_call_deferred(&board_reboot_ec_data, usec_delay);
+}
+
/*
* This interrupt handler will be called if the RBOX key combo is detected.
*/
@@ -1141,6 +1148,8 @@ void assert_ec_rst(void)
/* Prevent bit bang interrupt storm. */
if (uart_bitbang_is_enabled())
task_disable_irq(bitbang_config.rx_irq);
+ else if (board_has_ec_cr50_comm_support())
+ ec_efs_reset();
wait_ec_rst(1);