summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-07-31 15:52:37 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-08-11 22:05:21 +0000
commit49ee1cb8727aa5826a12df44044ea0d4226b5273 (patch)
treef3fbe15eb034f649c701c096ee2cbd21ca3a630e /util
parentdc1834593ad379211b2d6922b85cd664b6110610 (diff)
downloadchrome-ec-49ee1cb8727aa5826a12df44044ea0d4226b5273.tar.gz
pd: modify PD to allow sending VDMs anytime
Change the VDM implementation in the PD task to allow for VDMs at any time when connected without disrupting any regular PD communications. BUG=none BRANCH=none TEST=load on a samus and on a zinger and test sending VDMs: pd 0 flash version pd 0 flash reboot Also, test using the flash_pd.py script to write zinger RW using VDMs. Change-Id: I48352978d8c45f78e8a5a7735d65b013a853f3e2 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/210746 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/flash_pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/flash_pd.py b/util/flash_pd.py
index b93e2628cc..2ae64b730e 100755
--- a/util/flash_pd.py
+++ b/util/flash_pd.py
@@ -184,7 +184,7 @@ def flash_pd(options):
# reboot in RO
ec.flash_command('reboot')
# delay to give time to reboot
- time.sleep(0.5)
+ time.sleep(1.5)
# erase all RW partition
ec.flash_command('erase')
@@ -214,7 +214,7 @@ def flash_pd(options):
# reboot in RW
ec.flash_command('reboot')
# delay for reboot
- time.sleep(0.2)
+ time.sleep(1.5)
logging.info('Flashing DONE.')
logging.info('SHA-1: %s', sha_str)