Commit 6ccc3a33 authored by Gwendal Grignou's avatar Gwendal Grignou Committed by Lee Jones

input: cros_ec_keyb: Add Tablet Mode switch

Add switch to report tablet mode.
Signed-off-by: default avatarGwendal Grignou <gwendal@chromium.org>
Signed-off-by: default avatarEnric Balletbo Serra <enric.balletbo@collabora.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent cdd7950e
...@@ -111,6 +111,11 @@ static const struct cros_ec_bs_map cros_ec_keyb_bs[] = { ...@@ -111,6 +111,11 @@ static const struct cros_ec_bs_map cros_ec_keyb_bs[] = {
.bit = EC_MKBP_LID_OPEN, .bit = EC_MKBP_LID_OPEN,
.inverted = true, .inverted = true,
}, },
{
.ev_type = EV_SW,
.code = SW_TABLET_MODE,
.bit = EC_MKBP_TABLET_MODE,
},
}; };
/* /*
......
...@@ -2068,6 +2068,7 @@ struct ec_response_get_next_event { ...@@ -2068,6 +2068,7 @@ struct ec_response_get_next_event {
/* Switches */ /* Switches */
#define EC_MKBP_LID_OPEN 0 #define EC_MKBP_LID_OPEN 0
#define EC_MKBP_TABLET_MODE 1
/*****************************************************************************/ /*****************************************************************************/
/* Temperature sensor commands */ /* Temperature sensor commands */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment