mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
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 <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/722354 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
7501654d20
commit
8f3f0c0807
@@ -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_$$
|
||||
|
||||
Reference in New Issue
Block a user