diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2016-10-21 15:22:06 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2016-10-21 23:52:34 +0000 |
commit | c8b8164d064c79374904527cf16a7661604c8f2d (patch) | |
tree | d5ff1cfa306b5c78c12bf190ea312330a83b41ec | |
parent | 5a5aab3b0af1580140983e6bc18e7d084ab252c1 (diff) | |
download | chrome-ec-c8b8164d064c79374904527cf16a7661604c8f2d.tar.gz |
cave: Enable BMI160 interrupt.
Enable BMI160 interrupt in board_init().
BUG=b:27849483
BRANCH=glados
TEST=buildall.
Change-Id: I3ed4fe9bd9cdb71a0b743d9814fef48bb790e807
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/402052
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | board/cave/board.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/cave/board.c b/board/cave/board.c index c3615e7863..4ad5732cea 100644 --- a/board/cave/board.c +++ b/board/cave/board.c @@ -292,6 +292,9 @@ static void board_init(void) /* Enable tablet mode interrupt for input device enable */ gpio_enable_interrupt(GPIO_TABLET_MODE_L); + /* Enable interrupts from BMI160 sensor. */ + gpio_enable_interrupt(GPIO_ACCEL3_INT); + /* Provide AC status to the PCH */ gpio_set_level(GPIO_PCH_ACOK, extpower_is_present()); } |