aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorRajat Jain <rajatja@google.com>2017-04-03 14:53:41 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-04-03 14:59:57 -0400
commite6eba3fac9a0eb2018a85505b91740e27c60fdba (patch)
treee765d4afcbf56564654c2af9562c6159d88cec47 /include/linux
parentf6f08c55cced6885f1e1448cd0806098e836c5f5 (diff)
Input: cros_ec_keyb - add an EC event for sysrq
Some form factors (detachables/tablets) may not have a keyboard and thus user may have to resort to using a defined EC UI to send sysrq(s) to the kernel in order to collect crash info etc. This UI typically is in the form of user pressing volume / power buttons in some specific sequence and for some specific time. Add a new EC event that allows EC to communicate the sysrq to the AP. (We're skipping event number 5 because it has been reserved for something else) Signed-off-by: Rajat Jain <rajatja@google.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/cros_ec_commands.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h
index da1c188562bc..3ceebf6b9afb 100644
--- a/include/linux/mfd/cros_ec_commands.h
+++ b/include/linux/mfd/cros_ec_commands.h
@@ -2040,6 +2040,9 @@ enum ec_mkbp_event {
2040 /* The state of the switches have changed. */ 2040 /* The state of the switches have changed. */
2041 EC_MKBP_EVENT_SWITCH = 4, 2041 EC_MKBP_EVENT_SWITCH = 4,
2042 2042
2043 /* EC sent a sysrq command */
2044 EC_MKBP_EVENT_SYSRQ = 6,
2045
2043 /* Number of MKBP events */ 2046 /* Number of MKBP events */
2044 EC_MKBP_EVENT_COUNT, 2047 EC_MKBP_EVENT_COUNT,
2045}; 2048};
@@ -2052,6 +2055,7 @@ union ec_response_get_next_data {
2052 2055
2053 uint32_t buttons; 2056 uint32_t buttons;
2054 uint32_t switches; 2057 uint32_t switches;
2058 uint32_t sysrq;
2055} __packed; 2059} __packed;
2056 2060
2057struct ec_response_get_next_event { 2061struct ec_response_get_next_event {