From ecfedf31054808fffd0c7a249c7835eace33838b Mon Sep 17 00:00:00 2001 From: Ruihai Zhou Date: Fri, 7 Apr 2023 13:59:21 +0800 Subject: driver: bmi3xx: integrate body detection Body detection is accelerometer agnostics. Add list_activity function to enable/disable body detection. BRANCH=corsola BUG=b:272655176 TEST=zmake build steelix TEST=check cros-ec-activity loaded Change-Id: I949e2d400e38944e6264886d7af357d6b9c39c61 Signed-off-by: Ruihai Zhou Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4405802 Reviewed-by: Mike Lee Reviewed-by: Eric Yilun Lin --- driver/accelgyro_bmi3xx.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'driver') diff --git a/driver/accelgyro_bmi3xx.c b/driver/accelgyro_bmi3xx.c index 179d7eb91a..f2326c9631 100644 --- a/driver/accelgyro_bmi3xx.c +++ b/driver/accelgyro_bmi3xx.c @@ -1060,6 +1060,9 @@ const struct accelgyro_drv bmi3xx_drv = { #ifdef ACCELGYRO_BMI3XX_INT_ENABLE .irq_handler = irq_handler, #endif +#ifdef CONFIG_GESTURE_HOST_DETECTION + .list_activities = bmi_list_activities, +#endif #ifdef CONFIG_BODY_DETECTION .get_rms_noise = get_rms_noise, #endif -- cgit v1.2.1