summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorPeter Marheine <pmarheine@chromium.org>2022-11-04 15:30:24 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-09 01:08:18 +0000
commit05dee9db4e4d863665925dfa374f37b9641af036 (patch)
tree054842d607fb1e1431e819f3bacf390473ac4d8c /driver
parentc683ca77b029fd75bfce8e0c240a8348278e8b6f (diff)
downloadchrome-ec-05dee9db4e4d863665925dfa374f37b9641af036.tar.gz
pujjo: enable interrupts for lid accel
The BMA4xx driver now supports interrupts, so stop polling the lid accel. BUG=b:254380338 TEST=accelinfo still shows accurate lid angle on pujjo with LIS2DW12 sensor installed BRANCH=none LOW_COVERAGE_REASON=board-specific code is not tested Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I29b8675736d38e1f737f9faf139ae9aa0058758c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4005683 Reviewed-by: Andrew McRae <amcrae@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'driver')
-rw-r--r--driver/accel_bma4xx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/accel_bma4xx.h b/driver/accel_bma4xx.h
index afa0776a38..0e5c24e8aa 100644
--- a/driver/accel_bma4xx.h
+++ b/driver/accel_bma4xx.h
@@ -209,6 +209,8 @@ extern const struct accelgyro_drv bma4_accel_drv;
*/
#define CONFIG_ACCEL_BMA4XX_INT_EVENT \
TASK_EVENT_MOTION_SENSOR_INTERRUPT(SENSOR_ID(DT_ALIAS(bma4xx_int)))
+
+void bma4xx_interrupt(enum gpio_signal signal);
#endif /* DT_NODE_EXISTS */
#endif /* CONFIG_ZEPHYR */