summaryrefslogtreecommitdiff
path: root/include/system.h
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2017-07-31 14:19:26 +0200
committerchrome-bot <chrome-bot@chromium.org>2017-08-15 06:51:58 -0700
commitf747f70816ca825a4ff4f9c6234f97e93611dbaa (patch)
tree9b21fd7cf97aa6b1a9cbab245fdc6c8fe2829836 /include/system.h
parent72ea1febb128b4a14ccab5a093bd9abd267b9946 (diff)
downloadchrome-ec-f747f70816ca825a4ff4f9c6234f97e93611dbaa.tar.gz
coral: Add host command to fetch SKU ID
BUG=b:64468585 BRANCH=none TEST=with the other sku-id related patches applied, coreboot obtains the right SKU ID from EC Change-Id: Ibf307c6e46152b4b09e94d8dca6d49ae863cb3ad Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://chromium-review.googlesource.com/608370 Commit-Ready: Patrick Georgi <pgeorgi@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include/system.h')
-rw-r--r--include/system.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h
index e432a994c3..5b7be4064f 100644
--- a/include/system.h
+++ b/include/system.h
@@ -213,6 +213,14 @@ int32_t system_get_rollback_version(enum system_image_copy_t copy);
const char *system_get_version(enum system_image_copy_t copy);
/**
+ * Get the SKU ID for a device
+ *
+ * @return A value that identifies the SKU variant of a model. Its meaning and
+ * the number of bits actually used is opaque outside board specific code.
+ */
+uint32_t system_get_sku_id(void);
+
+/**
* Return the board version number. The meaning of this number is
* board-dependent; boards where the code actually cares about this should
* declare enum board_version in board.h.