summaryrefslogtreecommitdiff
path: root/chip/g/board_id.h
diff options
context:
space:
mode:
authorAnatol Pomazau <anatol@google.com>2018-01-18 13:46:50 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-01-31 13:47:15 -0800
commit5a910a86be7e8174d81d194a2a6042e3452ccaf8 (patch)
treedf0fa7b529ba4ac95203e9f5598ebac07466b6ec /chip/g/board_id.h
parent760caca89bfe3d91fe7d66b8d435a105664fd0d3 (diff)
downloadchrome-ec-5a910a86be7e8174d81d194a2a6042e3452ccaf8.tar.gz
Add support for HW alerts
- Add a vendor command that provides alert counter. Userspace can use it e.g. for user metric analysis. - Add 'alerts' debug console command. It provides information about chip alerts: supported alerts, fuse status, interrupt status, alert counter. - Add 'alerts fire [INT]' command to fire a software defined alert (globalsec/fwN where N is 0,1,2,3). Signed-off-by: Anatol Pomazau <anatol@google.com> BUG=b:63523947 TEST=ran the FW at Pyro and checked alerts data sent to host Change-Id: I7cec0c451ed71076b44dad14a151b147ff1337e8 Reviewed-on: https://chromium-review.googlesource.com/817639 Commit-Ready: Anatol Pomazau <anatol@google.com> Tested-by: Anatol Pomazau <anatol@google.com> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'chip/g/board_id.h')
-rw-r--r--chip/g/board_id.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chip/g/board_id.h b/chip/g/board_id.h
index 6aa106d5b0..dda2302c14 100644
--- a/chip/g/board_id.h
+++ b/chip/g/board_id.h
@@ -47,6 +47,11 @@ uint32_t check_board_id_vs_header(const struct board_id *id,
int read_board_id(struct board_id *id);
/**
+ * Return the image header for the current image copy
+ */
+const struct SignedHeader *get_current_image_header(void);
+
+/**
* Check if board ID in the image matches board ID field in the INFO1.
*
* Pass the pointer to the image header to check. If the pointer is set to