From 8804be8cbeccfca8085a45c76c0d510f030d9061 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Thu, 30 Jul 2015 13:38:24 -0700 Subject: VbNvStorage: Add flags for misc settings 1. Change offset 8 to hold all misc settings (fastboot, boot_on_ac detect) instead of only fastboot settings. 2. Add flag to hold state of boot_on_ac_detect (If set to 1, AP should start booting as soon as AC is connected in off-state). BUG=chrome-os-partner:41680 BRANCH=None TEST=Compiles successfully. make runtests successful. Change-Id: I64b3fc69bd52cbcaf5899c953ccafa2e81b5b8a5 Signed-off-by: Furquan Shaikh Reviewed-on: https://chromium-review.googlesource.com/289900 Trybot-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Vincent Palatin Reviewed-by: Randall Spangler Commit-Queue: Furquan Shaikh --- firmware/2lib/include/2nvstorage.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/2lib/include/2nvstorage.h') diff --git a/firmware/2lib/include/2nvstorage.h b/firmware/2lib/include/2nvstorage.h index 9ade3e78..0a533e3e 100644 --- a/firmware/2lib/include/2nvstorage.h +++ b/firmware/2lib/include/2nvstorage.h @@ -88,6 +88,8 @@ enum vb2_nv_param { /* Fastboot: Unlock in firmware, 0=disabled, 1=enabled. */ VB2_NV_FASTBOOT_UNLOCK_IN_FW, + /* Boot system when AC detected (0=no, 1=yes). */ + VB2_NV_BOOT_ON_AC_DETECT, }; /* Firmware result codes for VB2_NV_FW_RESULT and VB2_NV_FW_PREV_RESULT */ -- cgit v1.2.1