summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorSam McNally <sammc@chromium.org>2020-02-27 21:29:25 +1100
committerCommit Bot <commit-bot@chromium.org>2020-03-03 07:47:32 +0000
commit6020472e12860d58ec3cf2d6336e4eecc2017b63 (patch)
tree351a3fc55a5e78c838147d7143c42998adcc2dd4 /include/ec_commands.h
parent9d3f321689ddcdc0989842055292aeb4e8d6f811 (diff)
downloadchrome-ec-6020472e12860d58ec3cf2d6336e4eecc2017b63.tar.gz
vboot: Add a reboot option to keep EFS in RO with the AP off.
With EFS, the EC will typically switch to RW shortly after boot. cros_ec_softrec_power triggers recovery mode using the hostevent console command after rebooting the EC with ap-off and then simulates a power button press. This requires the EC to remain in RO after rebooting so doesn't currently work with EFS. Add a reboot option "ap-off-in-ro" to request the EC remain in RO with the AP off after rebooting. BUG=b:149657030 TEST=make buildall; firmware_RecoveryCacheBootKeys on puff BRANCH=none Change-Id: I65d291106accebf18bb46d951351def122627e61 Signed-off-by: Sam McNally <sammc@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2077699 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index d68b7b6146..8f1e4ef523 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -5746,6 +5746,9 @@ struct ec_params_set_cbi {
#define EC_RESET_FLAG_RBOX BIT(16) /* Fixed Reset Functionality */
#define EC_RESET_FLAG_SECURITY BIT(17) /* Security threat */
#define EC_RESET_FLAG_AP_WATCHDOG BIT(18) /* AP experienced a watchdog reset */
+#define EC_RESET_FLAG_STAY_IN_RO BIT(19) /* Do not select RW in EFS. This
+ * enables PD in RO for Chromebox.
+ */
struct ec_response_uptime_info {
/*