summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorLouis Yung-Chieh Lo <yjlou@chromium.org>2012-03-07 17:47:56 +0800
committerLouis Yung-Chieh Lo <yjlou@chromium.org>2012-03-09 21:10:13 +0800
commit9e3e87f802026d1762bb8865f5b2f9125039828f (patch)
treeae13a376518ed3fb1235ebdaa945357574cc1400 /include/common.h
parent9789c3b8fcf86cb84e8d9c9f6604746bd1294c92 (diff)
downloadchrome-ec-9e3e87f802026d1762bb8865f5b2f9125039828f.tar.gz
Support reboot_ec command in ectool (temporarily).
Note that this is a big security hole and should be removed after we complete the EC autoupdate mechanism and vboot code. To full update EC firmware on proto 1.0, we need a manual way to switch EC running on RO/RW. This CL implements the LPC command. BUG=chrome-os-partner:8415 TEST=on proto 0.5. ectool reboot_ec RW_A # EC boots to RW A ectool reboot_ec RO # EC boots to RO Change-Id: Ibf050328bc4e3d2c6d72bfc478d6334f11f0eb46
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index ceb2bc873f..291b950e48 100644
--- a/include/common.h
+++ b/include/common.h
@@ -10,6 +10,15 @@
#include <stdint.h>
+
+/* TODO: This is a serious security hole and should be removed in mass
+ * production. We add this to allow manual firmware update.
+ * Once we complete the vboot and autoupdate, we should remove this.
+ * https://code.google.com/p/chrome-os-partner/issues/detail?id=8391
+ */
+#define CONFIG_REBOOT_EC
+
+
/* List of common error codes that can be returned */
enum ec_error_list {
/* Success - no error */