summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/cr50/board.c2
-rw-r--r--board/cr50/usb_spi.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c
index 43e4e8cd3b..1026580c5a 100644
--- a/board/cr50/board.c
+++ b/board/cr50/board.c
@@ -1191,11 +1191,13 @@ void assert_ec_rst(void)
void deassert_ec_rst(void)
{
+#ifdef CONFIG_AP_RO_VERIFICATION
if (ec_rst_override()) {
ccprintf("EC un-reset blocked, try powercycle or Cr50 reboot."
"\n");
return;
}
+#endif /* CONFIG_AP_RO_VERIFICATION */
wait_ec_rst(0);
diff --git a/board/cr50/usb_spi.c b/board/cr50/usb_spi.c
index 4ba11d6f30..392cb8e8e7 100644
--- a/board/cr50/usb_spi.c
+++ b/board/cr50/usb_spi.c
@@ -79,10 +79,12 @@ DECLARE_DEFERRED(spi_hash_inactive_timeout);
* concurrent USB SPI operations over CCD.
*/
static bool shortcut_active_;
+#ifdef CONFIG_AP_RO_VERIFICATION
bool usb_spi_shortcut_active(void)
{
return shortcut_active_;
}
+#endif /* CONFIG_AP_RO_VERIFICATION */
/*****************************************************************************/
/*