mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-02 05:05:09 +00:00
eve: Enable gpio interrupt for bmi160 accelgyro sensor
The config option to use interrupts for this sensor was defined, however, the gpio interrupt for the interrupt from this sensor was not being enabled. BUG=b:35584895 BRANCH=none TEST=Added a wire to the interrupt line on an Eve. Verified that when the interrupt was triggered (verified by scope) that ISR for this gpio was being called. Change-Id: I9d9f6b5e6efa47665aba9a9d024b30aa10528002 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/518523 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
4166314b47
commit
2992ee1771
@@ -396,6 +396,9 @@ static void board_init(void)
|
||||
/* Enable charger interrupts */
|
||||
gpio_enable_interrupt(GPIO_CHARGER_INT_L);
|
||||
|
||||
/* Enable interrupts from BMI160 sensor. */
|
||||
gpio_enable_interrupt(GPIO_ACCELGYRO3_INT_L);
|
||||
|
||||
/* Provide AC status to the PCH */
|
||||
gpio_set_level(GPIO_PCH_ACOK, extpower_is_present());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user