summaryrefslogtreecommitdiff
path: root/chip/g/signed_header.h
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-12-10 13:58:35 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-06 00:31:35 +0000
commitc677f06db48a415c982b10f9dd6a57096cfd7570 (patch)
tree530e7244c288219242359199fed7d4149b332774 /chip/g/signed_header.h
parentafa4ade1e47289956506fea5ace9fb7194d001bc (diff)
downloadchrome-ec-c677f06db48a415c982b10f9dd6a57096cfd7570.tar.gz
gsctool: add ti50 image support
Based on the input image, we determine if this is a CR50 image or a Dauntless image. The magic lets us determine which type of image it is. For D2 images, we scan for the RW header instead of using hard coded offsets as this will allow us to change where the RW is located (if RO contracts or expands). BUG=b:172465629 TEST=sent image to D2 from gsctool via CCD TEST=flash new H1 image to volteer using to slot B Signed-off-by: Jett Rink <jettrink@chromium.org> Change-Id: I7554c978a9ba83b423fbaf43c62f9f0d6711d071 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2585926 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'chip/g/signed_header.h')
-rw-r--r--chip/g/signed_header.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/g/signed_header.h b/chip/g/signed_header.h
index 6096350a54..279a32081d 100644
--- a/chip/g/signed_header.h
+++ b/chip/g/signed_header.h
@@ -15,6 +15,9 @@
#define INFO_MAX 128 /* baked in rom! */
#define INFO_IGNORE 0xaa3c55c3 /* baked in rom! */
+#define MAGIC_HAVEN 0xFFFFFFFF
+#define MAGIC_DAUNTLESS 0xFFFFFFFD
+
/* Default value for _pad[] words */
#define SIGNED_HEADER_PADDING 0x33333333