summaryrefslogtreecommitdiff
path: root/util/flash_ec
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2018-01-30 17:49:24 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-01-31 18:01:00 -0800
commite578304b9aa49ec7aaf0b9767235a8dc8ace5234 (patch)
tree4c72c0c558b04ae5cf919d59cb0e7499a5fae93d /util/flash_ec
parentcdd2c95284be89c9a7e79a27c35b0e1f1773e27f (diff)
downloadchrome-ec-e578304b9aa49ec7aaf0b9767235a8dc8ace5234.tar.gz
flash_ec: Wait 1s before flashing meowth.
Meowth also seems to take enough power when flashing without a battery. Zoombini has a similar issue, and the fix is to wait 1s to let the voltage level stabilize before flashing. This commit just waits 1 second before flashing. BUG=b:65694390 BRANCH=None TEST=./util/flash_ec --board meowth; Verify it succeeds without a battery. Change-Id: Ida34a7eb923187940afe05a32d200b48e71aaa9f Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/894370 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Caveh Jalali <caveh@google.com>
Diffstat (limited to 'util/flash_ec')
-rwxr-xr-xutil/flash_ec9
1 files changed, 5 insertions, 4 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 34a61c4da1..5dc7589ba6 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -642,10 +642,11 @@ function flash_flashrom() {
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
+ # b/65694390: Zoombini and Meowth take 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" || \
+ "${BOARD}" == "meowth" ]]; then
sleep 1
fi
else