summaryrefslogtreecommitdiff
path: root/board/waddledee
diff options
context:
space:
mode:
authorMarco Chen <marcochen@google.com>2020-06-29 14:27:47 +0800
committerCommit Bot <commit-bot@chromium.org>2020-07-09 07:35:49 +0000
commit51c7bd33d57572b638721479c505baedcae19406 (patch)
tree38472b112dfdf4f8693e13e7e691868576e08bd6 /board/waddledee
parent3cdcfcb1038dad7ac65fe7723716b1b9297acbb1 (diff)
downloadchrome-ec-51c7bd33d57572b638721479c505baedcae19406.tar.gz
Waddledee: enable GPIO interrupt of the sensor in the base
EC didn't pull data from the sensor in the base for accel and gyro because the data interrupt is not enabled. As a result, enabling the interrupt is needed for detecting data from the sensor. BUG=b:160113129 TEST=flash the new FW into the DUT then check whether `ectool motionsense` reports the valid data from sensor in the base. BRANCH=none Change-Id: Ia623ad84c752826e2a0670bf6fc04286a07970a0 Signed-off-by: Marco Chen <marcochen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2269396 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Marco Chen <marcochen@chromium.org> Commit-Queue: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Diffstat (limited to 'board/waddledee')
-rw-r--r--board/waddledee/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/waddledee/board.c b/board/waddledee/board.c
index 05b0217a7b..d87f8cfddc 100644
--- a/board/waddledee/board.c
+++ b/board/waddledee/board.c
@@ -211,6 +211,8 @@ void board_init(void)
gpio_enable_interrupt(GPIO_USB_C0_INT_ODL);
gpio_enable_interrupt(c1_int_line);
gpio_enable_interrupt(GPIO_USB_C0_CCSBU_OVP_ODL);
+ /* Enable Base Accel interrupt */
+ gpio_enable_interrupt(GPIO_BASE_SIXAXIS_INT_L);
/* Charger on the MB will be outputting PROCHOT_ODL and OD CHG_DET */
sm5803_configure_gpio0(CHARGER_PRIMARY, GPIO0_MODE_PROCHOT, 1);