X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fec_commands.h;h=76050664372a9b0470519b576288a3734d268280;hb=f029fa8f4eaf0c29d4e96ffe46cb91a4892b9fe0;hp=78baab1641afdfc1453992b356b4d62c055d1347;hpb=836bb6e8277aaa8f0f86e39b0c38b207d32723d9;p=karo-tx-uboot.git 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 */