diff options
author | Peter Marheine <pmarheine@chromium.org> | 2022-10-24 13:56:52 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-28 00:07:57 +0000 |
commit | c666bc3b45e55a327372a77b3e4bf679a4cc8cb0 (patch) | |
tree | c947a3d6bceee87155e26ed07faf8bc10f545f4f /include/config.h | |
parent | dbd84e1174ddfb2991702773e3de8fa22ea7604b (diff) | |
download | chrome-ec-c666bc3b45e55a327372a77b3e4bf679a4cc8cb0.tar.gz |
bma4xx: support interrupt-driven operation
This adds support for using interrupts to read data from the accelerometer
similar to other supported sensors. It configures the sensor to trigger an
interrupt on acquisition, with data read from the internal FIFO. Init
behavior is changed to disable the sensor on startup to avoid generating
excess interrupts, requiring users to set the desired ODR.
BUG=b:254380338
TEST=Nereid lid angle reported by `accelinfo on` is consistent with
previous behavior when lid sensor is reconfigured to use interrupts.
BRANCH=none
LOW_COVERAGE_REASON=driver currently has no tests
Change-Id: I4096cfa1a40b3bcb7df38c12201125a3801e9d2b
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3977028
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Andrew McRae <amcrae@google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index fcdc001649..4e87ea61fb 100644 --- a/include/config.h +++ b/include/config.h @@ -370,6 +370,7 @@ #undef CONFIG_ACCELGYRO_BMI3XX_INT_EVENT #undef CONFIG_ACCELGYRO_ICM426XX_INT_EVENT #undef CONFIG_ACCELGYRO_ICM42607_INT_EVENT +#undef CONFIG_ACCEL_BMA4XX_INT_EVENT #undef CONFIG_ACCEL_LSM6DSM_INT_EVENT #undef CONFIG_ACCEL_LSM6DSO_INT_EVENT #undef CONFIG_ACCEL_LIS2DS_INT_EVENT |