summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@chromium.org>2018-10-05 11:41:13 -0700
committerJiri Kosina <jkosina@suse.cz>2018-10-09 10:40:55 +0200
commit78d8f8f1a1800cf6068ffcac7a14cda19ae693d8 (patch)
treef1ca9098f0723f22826bca1c7fa2fbd3b842335a /include
parent5b372600ccf1116701e96cf593559a60c9bee7e0 (diff)
downloadblackbird-obmc-linux-78d8f8f1a1800cf6068ffcac7a14cda19ae693d8.tar.gz
blackbird-obmc-linux-78d8f8f1a1800cf6068ffcac7a14cda19ae693d8.zip
mfd: cros: add "base attached" MKBP switch definition
This adds a "base attached" switch definition to the MKBP protocol that is used by Whiskers driver to properly determine device state (clamshell vs tablet mode). Signed-off-by: Dmitry Torokhov <dtor@chromium.org> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/cros_ec_commands.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h
index 6e1ab9bead28..7690f0793965 100644
--- a/include/linux/mfd/cros_ec_commands.h
+++ b/include/linux/mfd/cros_ec_commands.h
@@ -2132,6 +2132,7 @@ struct ec_response_get_next_event_v1 {
/* Switches */
#define EC_MKBP_LID_OPEN 0
#define EC_MKBP_TABLET_MODE 1
+#define EC_MKBP_BASE_ATTACHED 2
/*****************************************************************************/
/* Temperature sensor commands */
OpenPOWER on IntegriCloud