summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.motionsense
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2021-11-29 11:09:37 +0800
committerCommit Bot <commit-bot@chromium.org>2021-11-29 10:48:21 +0000
commitaf42062a920fb032711604b79c731aecf851d55e (patch)
treea750b3d2991d000264c119eb4bdd2b50c32b22d4 /zephyr/Kconfig.motionsense
parentdc2616addb35c36d6041e9b8885b3512272b1505 (diff)
downloadchrome-ec-af42062a920fb032711604b79c731aecf851d55e.tar.gz
zephyr: kconfig: add PLATOFRM_EC_MATH_UTIL
Make this config independent since it has been dependent to many configs includes motion sensors and USB-PD. BUG=none TEST=zmake testall; grep math_util.o and no config directly uses it. BRANCH=none Change-Id: Id755a28e3f3da99a32b22c0d2e0b1228e7d7e6d0 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3305648 Tested-by: Eric Yilun Lin <yllin@google.com> Auto-Submit: Eric Yilun Lin <yllin@google.com> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com> Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Diffstat (limited to 'zephyr/Kconfig.motionsense')
-rw-r--r--zephyr/Kconfig.motionsense1
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/Kconfig.motionsense b/zephyr/Kconfig.motionsense
index daf2bbcdf8..01a7eb1698 100644
--- a/zephyr/Kconfig.motionsense
+++ b/zephyr/Kconfig.motionsense
@@ -98,6 +98,7 @@ config PLATFORM_EC_DYNAMIC_MOTION_SENSOR_COUNT
config PLATFORM_EC_LID_ANGLE
bool "Lid Angle"
+ select PLATFORM_EC_MATH_UTIL
help
Enable this to detect lid angle with two accelerometers. The andgle
calculation requires the information about which sensor is on the lid