summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDevin Lu <devin.lu@quantatw.com>2017-09-05 20:15:10 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-09-11 22:47:12 -0700
commita52cfbc80c060d9883aee9de4e764e0b250d184a (patch)
tree723d6e14d0fc398b350da14746a40db3c68f97f8 /include
parent1f17e1cfc9724f5598cfe3d0addbe5beb41810e7 (diff)
downloadchrome-ec-a52cfbc80c060d9883aee9de4e764e0b250d184a.tar.gz
common: add host command to push AP SKU ID to ec
add host command to set AP SKU ID to ec. BUG=b:65359225 BRANCH=reef TEST=make buildall -j Change-Id: I76ffa4485be4de996b001097fa3f5a371f3a92ce Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/650277 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h3
-rw-r--r--include/ec_commands.h5
2 files changed, 7 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h
index ff383b281b..92eaf48dc8 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1500,6 +1500,9 @@
/* EC controls the board's SKU ID and can report that to the AP */
#undef CONFIG_HOSTCMD_SKUID
+/* Set SKU ID from AP */
+#undef CONFIG_HOSTCMD_AP_SET_SKUID
+
/*****************************************************************************/
/* Enable debugging and profiling statistics for hook functions */
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 413e2afb39..223a25fcbe 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -1122,7 +1122,10 @@ struct __ec_align4 ec_response_get_features {
/* Get the board's SKU ID from EC */
#define EC_CMD_GET_SKU_ID 0x000E
-struct __ec_align4 ec_response_sku_id {
+/* Set SKU ID from AP */
+#define EC_CMD_SET_SKU_ID 0x000F
+
+struct __ec_align4 ec_sku_id_info {
uint32_t sku_id;
};