summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-12-13 16:21:57 -0700
committerCommit Bot <commit-bot@chromium.org>2020-01-30 22:20:49 +0000
commite6d61bac16b9b7b709d20a8e83177afce27d6e4e (patch)
treea2261569f7d55ef7537af70c98453204fbafa3e0 /extra
parentd79ee1cba05d36d568ed6f30ba5dadb45fd57681 (diff)
downloadchrome-ec-e6d61bac16b9b7b709d20a8e83177afce27d6e4e.tar.gz
c2d2: initial c2d2 add
C2D2 is a debug board bring that uses an 8-pin debug header that is pin compatible with the em100 flash emulator. BRANCH=none BUG=b:145314772 TEST=UART communication for EC and H1 TEST=UART flashing of EC TEST=SPI reading and writing TEST=Automatic Vref detection for UART upon connect and disconnect Change-Id: I023994ed78942f2307e4adb802b5cc96afdf7e24 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1991849 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'extra')
-rw-r--r--extra/usb_updater/c2d2.json15
-rwxr-xr-xextra/usb_updater/servo_updater.py2
2 files changed, 16 insertions, 1 deletions
diff --git a/extra/usb_updater/c2d2.json b/extra/usb_updater/c2d2.json
new file mode 100644
index 0000000000..79fc6f0992
--- /dev/null
+++ b/extra/usb_updater/c2d2.json
@@ -0,0 +1,15 @@
+{
+ "Comment": "This file describes the updateable sections of the flash.",
+ "board": "c2d2",
+ "vid": "0x18d1",
+ "pid": "0x5041",
+ "console": "3",
+ "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": ["0xf000", "0x1000"],
+ "RO": ["0x0000", "0xf000"]
+ }
+}
diff --git a/extra/usb_updater/servo_updater.py b/extra/usb_updater/servo_updater.py
index c819230f21..7ef16658fd 100755
--- a/extra/usb_updater/servo_updater.py
+++ b/extra/usb_updater/servo_updater.py
@@ -200,7 +200,7 @@ def findfiles(cname, fname):
if not fname:
# If None, try defaults.
dev = None
- for default_f in ['servo_v4', 'servo_micro', 'sweetberry']:
+ for default_f in ['c2d2', 'servo_micro', 'servo_v4', 'sweetberry']:
if default_f in cname:
dev = default_f
if os.path.isfile(FIRMWARE_PATH + dev + ".bin"):