summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorJosh Tsai <josh_tsai@compal.corp-partner.google.com>2022-09-29 14:48:56 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-22 02:36:57 +0000
commita4fb69b3d14417ae8b83dc978310b6bd43c32811 (patch)
tree1caf5848fd41d3cd0c3e31074eb7f29018aadac7 /zephyr
parentfa3f37c670071c2a67df91a46a2040a64639e573 (diff)
downloadchrome-ec-a4fb69b3d14417ae8b83dc978310b6bd43c32811.tar.gz
zephyr: add the gesture host detection Kconfig
If we need to get the body detection status via ectool, need to enable the CONFIG_GESTURE_HOST_DETECTION. This change add the Kconfig to enable the gesture host detection function in zephyr. BRANCH=none BUG=b:236668095;b:232946420 TEST=zmake build winterhold Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com> Change-Id: Id7ae11321b6128b7aba4f6a47897e6cb1ea2f2d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3928570 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/Kconfig.motionsense5
-rw-r--r--zephyr/shim/include/config_chip.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/Kconfig.motionsense b/zephyr/Kconfig.motionsense
index 98291dc0c3..af859e0075 100644
--- a/zephyr/Kconfig.motionsense
+++ b/zephyr/Kconfig.motionsense
@@ -174,5 +174,10 @@ config PLATFORM_EC_CONSOLE_CMD_ACCEL_SPOOF
endif # PLATFORM_EC_ACCEL_SPOOF_MODE
+config PLATFORM_EC_GESTURE_HOST_DETECTION
+ bool "Gesture host detection"
+ help
+ Enable gesture host interface
+
rsource "Kconfig.sensor_devices"
rsource "Kconfig.body_detection"
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 5e38ad800c..b0c0aa2a47 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -2036,6 +2036,11 @@ extern char mock_jump_data[CONFIG_PLATFORM_EC_PRESERVED_END_OF_RAM_SIZE];
#define CONFIG_CMD_ACCEL_SPOOF
#endif
+#undef CONFIG_GESTURE_HOST_DETECTION
+#ifdef CONFIG_PLATFORM_EC_GESTURE_HOST_DETECTION
+#define CONFIG_GESTURE_HOST_DETECTION
+#endif
+
#undef CONFIG_SENSOR_TIGHT_TIMESTAMPS
#ifdef CONFIG_PLATFORM_EC_SENSOR_TIGHT_TIMESTAMPS
#define CONFIG_SENSOR_TIGHT_TIMESTAMPS