summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-07-16 12:22:10 -0700
committerGerrit <chrome-bot@google.com>2012-07-16 17:49:11 -0700
commitcc36ff4073c13eb6dc755248f357883316962e94 (patch)
treeea00d4d185fb906c43eb7d24bc5404f2ca2bd162
parentffb9233a90fe8f29bb80292a75aed04778b0cda5 (diff)
downloadvboot-cc36ff4073c13eb6dc755248f357883316962e94.tar.gz
Request EC reboot to RO via return code rather than function (vboot portion)
This gives the AP a chance to save NvStorage data first. BUG=chrome-os-partner:11087 TEST=none yet; API isn't used yet Change-Id: Iae7a24958fb076039795b92d9edb73d7e6ebfc6f Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/27525 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
-rw-r--r--firmware/include/vboot_api.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h
index 60f06dfc..4b37a07b 100644
--- a/firmware/include/vboot_api.h
+++ b/firmware/include/vboot_api.h
@@ -103,6 +103,8 @@ enum VbErrorPredefined_t {
VBERROR_BIOS_SHELL_REQUESTED = 0x10020,
/* Need VGA and don't have it, or vice-versa */
VBERROR_VGA_OPROM_MISMATCH = 0x10021,
+ /* Need EC to reboot to read-only code */
+ VBERROR_EC_REBOOT_TO_RO_REQUIRED = 0x10022
};
@@ -626,10 +628,6 @@ VbError_t VbExEcRunningRW(int *in_rw);
* rewritable code. */
VbError_t VbExEcJumpToRW(void);
-/* Cold-reboot the EC into read-only code. This also reboots the main
- * processor, so this function only returns if there was an error. */
-VbError_t VbExEcRebootToRO(void);
-
/* Tell the EC to stay in RO code until it reboots. Subsequent calls to
* VbExEcJumpToRW() this boot will fail. Fails if the EC is not currently in
* RO code. */