mfd: cros: add "base attached" MKBP switch definition
authorDmitry Torokhov <dtor@chromium.org>
Fri, 5 Oct 2018 18:41:13 +0000 (11:41 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 9 Oct 2018 08:40:55 +0000 (10:40 +0200)
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>
include/linux/mfd/cros_ec_commands.h

index 6e1ab9bead288fcbb1d97bca01dc11fb1bbd6e8e..7690f079396525232f37618d37e5a00808141724 100644 (file)
@@ -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 */