From f747f70816ca825a4ff4f9c6234f97e93611dbaa Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 31 Jul 2017 14:19:26 +0200 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/608370 Commit-Ready: Patrick Georgi Tested-by: Patrick Georgi Reviewed-by: Aaron Durbin --- include/system.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/system.h') diff --git a/include/system.h b/include/system.h index e432a994c3..5b7be4064f 100644 --- a/include/system.h +++ b/include/system.h @@ -212,6 +212,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 -- cgit v1.2.1