summaryrefslogtreecommitdiff
path: root/include/chipset.h
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2018-11-08 14:28:12 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-15 02:16:28 -0800
commit38b16336b7d254f52261bb0ba12d6a8d691323ab (patch)
tree6986956c5e5e4c45e46906990b9eb41dc80051af /include/chipset.h
parentf02c6f83fae3cdce2933da60a0de44206295489f (diff)
downloadchrome-ec-38b16336b7d254f52261bb0ba12d6a8d691323ab.tar.gz
chipset: Add a host command to issue AP reset
The host command is enabled by defining CONFIG_HOSTCMD_AP_RESET. It calls the chipset_reset() function, similar to the console command "apreset". BRANCH=none BUG=b:119261783 TEST=Manually tested as follow: Enabled CONFIG_HOSTCMD_AP_RESET on Cheza and flashed EC image. Copied the compiled ectool to Cheza. Ran "ectool apreset". Checked EC console: [6698.093141 chipset_reset(4)] [6698.093753 power off 5] ... the power state changing S0 -> S5 -> S0 Change-Id: I09f26f0c7ccd22905979e8b8675185505ad739eb Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/1327841 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/chipset.h')
-rw-r--r--include/chipset.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/chipset.h b/include/chipset.h
index 7363707b38..772114d356 100644
--- a/include/chipset.h
+++ b/include/chipset.h
@@ -58,6 +58,8 @@ enum chipset_reset_reason {
CHIPSET_RESET_HANG_REBOOT,
/* Reset by EC console command */
CHIPSET_RESET_CONSOLE_CMD,
+ /* Reset by EC host command */
+ CHIPSET_RESET_HOST_CMD,
/* Keyboard module reset key combination */
CHIPSET_RESET_KB_SYSRESET,
/* Keyboard module warm reboot */