summaryrefslogtreecommitdiff
path: root/chip/g/usb_spi.h
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2017-05-15 16:18:16 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-05-16 20:55:50 -0700
commit2c33693bb3d6fd82c8ad0758ffe70cd11ba7c12a (patch)
tree70aa39c4c0d8b4e61b6fc2f1d797b143ce8e83c9 /chip/g/usb_spi.h
parent9fd645a0051fcf5e19a2cafe74aa2016897cd86b (diff)
downloadchrome-ec-2c33693bb3d6fd82c8ad0758ffe70cd11ba7c12a.tar.gz
cr50: remove code that was used to work around sys_rst issues
Cr50 holds the EC in reset when it wants to flash the EC or AP. This will trigger a pulse on the tpm reset signal. In early Cr50 versions when the tpm was reset we would reboot cr50, so we added some code to prevent cr50 from resetting itself when the update was going on. sys_rst_asserted would check if there was an update going on and ignore the signal if update in progress was true. At the end of the update the deferred function was used to reset Cr50 after the update was complete. None of this is needed anymore. We can just release the EC from reset at the end of the update. This change removes usb_spi_update_in_progress and the deferred update_finished. BUG=b:35571516 BRANCH=none TEST=flash the bob ec and ap using ccd. Change-Id: I79416dba178c06bbc7289ad96968ee4e61947c4c Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/506571 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'chip/g/usb_spi.h')
-rw-r--r--chip/g/usb_spi.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/chip/g/usb_spi.h b/chip/g/usb_spi.h
index 9d198a7dc2..bdd4fbcd24 100644
--- a/chip/g/usb_spi.h
+++ b/chip/g/usb_spi.h
@@ -236,10 +236,4 @@ int usb_spi_interface(struct usb_spi_config const *config,
int usb_spi_board_enable(struct usb_spi_config const *config);
void usb_spi_board_disable(struct usb_spi_config const *config);
-/*
- * Returns true if SPI update is running, needed to properly handle SYS_RST_L
- * input state changes.
- */
-int usb_spi_update_in_progress(void);
-
#endif /* __CROS_EC_USB_SPI_H */