summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorShelley Chen <shchen@chromium.org>2017-01-12 13:23:17 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-13 21:49:02 -0800
commit1d1042c1d575c9b9d4e54b183e56fe840d05efb2 (patch)
tree8289c6f60174642cdc8b296715bd6efc70b46eb0 /include/ec_commands.h
parenta9c79eede9fdff172ddc0b1048f0c544f85bf27e (diff)
downloadchrome-ec-1d1042c1d575c9b9d4e54b183e56fe840d05efb2.tar.gz
poppy: host command for configuring power button
Specifically, we are using a bit to disable the SMI pulse on x86 systems so that we can use the power button for menu selection. BUG=chrome-os-partner:61275 BRANCH=None TEST=Try running with depthcharge sending the host command during detachable FW menus and making sure power button select doesn't turn off device on reef. Change-Id: I4a68cf514d514a4abe98beb99e7934d6fb0f44bd Signed-off-by: Shelley Chen <shchen@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/427413 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index b63ae327fd..f4ee639c64 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -2254,6 +2254,20 @@ struct __ec_align1 ec_params_force_lid_open {
};
/*****************************************************************************/
+/* Configure the behavior of the power button */
+#define EC_CMD_CONFIG_POWER_BUTTON 0x002D
+
+enum ec_config_power_button_flags {
+ /* Enable/Disable SMI pulses for x86 devices */
+ EC_POWER_BUTTON_ENABLE_SMI_PULSE = 1 << 0,
+};
+
+struct __ec_align1 ec_params_config_power_button {
+ /* See enum ec_config_power_button_flags */
+ uint8_t flags;
+};
+
+/*****************************************************************************/
/* USB charging control commands */
/* Set USB port charging mode */