aboutsummaryrefslogtreecommitdiff
path: root/include/cros_ec.h
diff options
context:
space:
mode:
authorSimon Glass2021-01-16 14:52:25 -0700
committerSimon Glass2021-01-30 14:25:41 -0700
commit7791df576c4e0bcb0529850e14173d028ec37275 (patch)
tree93b1185fd5fb60bc540d9b93d0478cf072978ac1 /include/cros_ec.h
parent698e30f7a862ae6eb4754ef0d42b8dc8cf416edd (diff)
cros_ec: Add support for reading the SKU ID
This allows reading strapping pins attached to the EC. Add an implementation for this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/cros_ec.h')
-rw-r--r--include/cros_ec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cros_ec.h b/include/cros_ec.h
index f57e0cc4501..1154cdc52b8 100644
--- a/include/cros_ec.h
+++ b/include/cros_ec.h
@@ -330,6 +330,14 @@ int cros_ec_flash_offset(struct udevice *dev, enum ec_flash_region region,
uint32_t *offset, uint32_t *size);
/**
+ * cros_ec_get_sku_id() - Read the SKU ID
+ *
+ * @dev: CROS-EC device
+ * return SKU ID, or -ve on error
+ */
+int cros_ec_get_sku_id(struct udevice *dev);
+
+/**
* Read/write non-volatile data from/to a CROS-EC device.
*
* @param dev CROS-EC device