summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/Kconfig.motionsense7
-rw-r--r--zephyr/shim/include/config_chip.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/Kconfig.motionsense b/zephyr/Kconfig.motionsense
index 5d93f735c2..daf2bbcdf8 100644
--- a/zephyr/Kconfig.motionsense
+++ b/zephyr/Kconfig.motionsense
@@ -124,6 +124,13 @@ config PLATFORM_EC_TABLET_MODE
if PLATFORM_EC_TABLET_MODE
+config PLATFORM_EC_TABLET_MODE_SWITCH
+ bool "Tablet Mode Switch"
+ depends on PLATFORM_EC_MKBP_INPUT_DEVICES
+ help
+ Enable a virtual switch to indicate when we are in tablet mode. The tablet
+ mode state is sent to AP via MKBP protocol(switch event).
+
config PLATFORM_EC_GMR_TABLET_MODE
bool "Giant Magnetoresistance(GMR) Tablet Mode"
help
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 0b929dcbe8..8549089d26 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -1137,6 +1137,11 @@
#define CONFIG_TABLET_MODE
#endif
+#undef CONFIG_TABLET_MODE_SWITCH
+#ifdef CONFIG_PLATFORM_EC_TABLET_MODE_SWITCH
+#define CONFIG_TABLET_MODE_SWITCH
+#endif
+
#undef CONFIG_GMR_TABLET_MODE
#ifdef CONFIG_PLATFORM_EC_GMR_TABLET_MODE
#define CONFIG_GMR_TABLET_MODE