summaryrefslogtreecommitdiffstats
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-05-04 11:31:09 -0600
committerSimon Glass <sjg@chromium.org>2015-05-14 18:49:34 -0600
commitb5279249544c6ad261991a2f4c20bb05376522d4 (patch)
tree71cc68b5fbde1827e34bb1412b49b66daa6afd05 /include/ec_commands.h
parent38068820426f08224bf3a146086a7eb380bc04f0 (diff)
downloadblackbird-obmc-uboot-b5279249544c6ad261991a2f4c20bb05376522d4.tar.gz
blackbird-obmc-uboot-b5279249544c6ad261991a2f4c20bb05376522d4.zip
sandbox: cros_ec: Support EC_CMD_ENTERING_MODE emulation
Emualate this function which is used with Chrome OS verified boot. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 78baab1641..7605066437 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -1555,6 +1555,21 @@ struct ec_params_sb_wr_block {
uint16_t data[32];
} __packed;
+/*
+ * Entering Verified Boot Mode Command
+ * Default mode is VBOOT_MODE_NORMAL if EC did not receive this command.
+ * Valid Modes are: normal, developer, and recovery.
+ */
+#define EC_CMD_ENTERING_MODE 0xb6
+
+struct ec_params_entering_mode {
+ int vboot_mode;
+} __packed;
+
+#define VBOOT_MODE_NORMAL 0
+#define VBOOT_MODE_DEVELOPER 1
+#define VBOOT_MODE_RECOVERY 2
+
/*****************************************************************************/
/* System commands */
OpenPOWER on IntegriCloud