summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.motionsense
diff options
context:
space:
mode:
authorMichał Barnaś <mb@semihalf.com>2021-08-30 20:34:38 +0200
committerCommit Bot <commit-bot@chromium.org>2021-09-30 00:27:36 +0000
commit84aa3cb9dd0643e9fe0dd188163435d6d282aac9 (patch)
treee93a418bea9142c01b5362f6ac5c165e8a8d5073 /zephyr/Kconfig.motionsense
parent78911f24fdfebf1fa2faf1fcfe2df1aeac897993 (diff)
downloadchrome-ec-84aa3cb9dd0643e9fe0dd188163435d6d282aac9.tar.gz
zephyr: motion: add support for runtime probing of motion sensors
Add possibility to define alternative motion sensors that will be probed on EC boot. This will allow to easily specify different variants of boards with different motion sensors. BRANCH=main BUG=b:194424288 TEST=This commit shouldn't change anything. Build, flash EC and motion sensors should work correctly, detecting tablet mode and orientation changes. Change-Id: Ia2f864854699416abdd188a6bc36e6356e86f6f5 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3129962 Reviewed-by: Yuval Peress <peress@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.motionsense')
-rw-r--r--zephyr/Kconfig.motionsense8
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/Kconfig.motionsense b/zephyr/Kconfig.motionsense
index daf2bbcdf8..69980f33da 100644
--- a/zephyr/Kconfig.motionsense
+++ b/zephyr/Kconfig.motionsense
@@ -187,4 +187,12 @@ config PLATFORM_EC_CONSOLE_CMD_ACCEL_SPOOF
endif # PLATFORM_EC_ACCEL_SPOOF_MODE
+config PLATFORM_EC_MOTION_SENSE_RUNTIME_PROBE_CUSTOM_CALL
+ bool "Disable deferred call that probes motion sensors on boot-up"
+ help
+ Disables deferred call that probes motion sensors on boot-up.
+ If this option is enabled, board logic code must call
+ board_detect_motionsensor manually. This is useful if board needs
+ manual control of sensors probing.
+
rsource "Kconfig.sensor_devices"