summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorRuben Rodriguez Buchillon <coconutruben@chromium.org>2018-12-10 17:21:19 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-03 15:04:45 -0800
commit0d8358a854797867564bc4032dbe3296c3b040e4 (patch)
treedd8dd4a3fd5ea1003c28a307bfce981b53dd2023 /extra
parentb53abd8e57bcd4c643ce31822be176d8e364a0d9 (diff)
downloadchrome-ec-0d8358a854797867564bc4032dbe3296c3b040e4.tar.gz
servo_updater: include sweetberry into servo_updater logic
This change allows for sweetberry to be a valid configuration for servo_updater BRANCH=None BUG=b:120449224 TEST=manual testing sudo servod_updater --board sweetberry ... ... update complete image updated Change-Id: If6a9113beb89ae8b58c70e959a77c9bb9f00607d Signed-off-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1369506 Reviewed-by: Nick Sanders <nsanders@chromium.org>
Diffstat (limited to 'extra')
-rwxr-xr-xextra/usb_updater/servo_updater.py7
-rw-r--r--extra/usb_updater/sweetberry.json6
2 files changed, 6 insertions, 7 deletions
diff --git a/extra/usb_updater/servo_updater.py b/extra/usb_updater/servo_updater.py
index 18d25130dd..136cfaf820 100755
--- a/extra/usb_updater/servo_updater.py
+++ b/extra/usb_updater/servo_updater.py
@@ -170,10 +170,9 @@ def findfiles(cname, fname):
if not fname:
# If None, try defaults.
dev = None
- if "servo_v4" in cname:
- dev = "servo_v4"
- if "servo_micro" in cname:
- dev = "servo_micro"
+ for default_f in ['servo_v4', 'servo_micro', 'sweetberry']:
+ if default_f in cname:
+ dev = default_f
if os.path.isfile(FIRMWARE_PATH + dev + ".bin"):
fname = FIRMWARE_PATH + dev + ".bin"
elif not os.path.isfile(fname):
diff --git a/extra/usb_updater/sweetberry.json b/extra/usb_updater/sweetberry.json
index 121ca0baf9..6b70d19fad 100644
--- a/extra/usb_updater/sweetberry.json
+++ b/extra/usb_updater/sweetberry.json
@@ -3,12 +3,12 @@
"board": "sweetberry",
"vid": "0x18d1",
"pid": "0x5020",
+ "console": "0",
"Comment on flash": "This is the base address of writeable flash",
"flash": "0x8000000",
"Comment on region format": "name: [baseoffset, length]",
"regions": {
- "RW": ["0x10000", "0x10000"],
- "PSTATE": ["0xc000", "0x4000"],
- "RO": ["0x0000", "0xc000"]
+ "RW": ["0x40000", "0x40000"],
+ "RO": ["0x0000", "0x40000"]
}
}