From 8f3f0c0807728e6d100a5976ba645a911afa3602 Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Mon, 16 Oct 2017 18:09:29 -0700 Subject: [PATCH] flash_ec: Add 1s delay after turning on SPI VREF. On zoombini, we were taking enough power that the voltage dipped for a little bit. This commit adds a 1 second delay after applying SPI VREF but before actually flashing the EC. BUG=b:65694390 BRANCH=None TEST=`./util/flash_ec --board zoombini` still works. Change-Id: I431cbfcc569fd5369971b06dedb85e8d5fdb9a32 Signed-off-by: Aseda Aboagye Reviewed-on: https://chromium-review.googlesource.com/722354 Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye Reviewed-by: Shawn N --- util/flash_ec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/util/flash_ec b/util/flash_ec index 73d9a76ed9..f2b83e37d3 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -602,6 +602,13 @@ function flash_flashrom() { # Servo micro doesn't support this control. dut_control spi1_buf_on_flex_en:on fi + + # b/65694390: Zoombini takes enough power that when flashing + # without power, the SPI Vref voltage dips for a little bit. + # Therefore, wait 1 second to let the voltage stabilize. + if [[ "${BOARD}" == "zoombini" ]]; then + sleep 1 + fi else # Temp layout L=/tmp/flash_spi_layout_$$