summaryrefslogtreecommitdiff
path: root/board/hatch/gpio.inc
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2019-05-15 16:34:28 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-20 19:38:41 +0000
commit83be6d22cdfa82740802b6e7938bcc929102671e (patch)
treeadb7f46b4618eb3a75b470435a01c95a898143c6 /board/hatch/gpio.inc
parentb4c70fd9371ecc133161d513c32d7546ccf00c5c (diff)
downloadchrome-ec-83be6d22cdfa82740802b6e7938bcc929102671e.tar.gz
hatch: Add support for TCS3400 as clear ALS and RGB sesnor
This CL removes the OPT3001 ALS and adds support for both the CLEAR_ALS and RGB_ALS sensor. BUG=b:132285560 BRANCH=none TEST=Used ec console command 'accelinfo on 10000' to see values for both clear and rgb light. Verfied that clear light went to 0 when I covered the aperture and maxed out as I shined a phone light on it. Change-Id: I8dcbbbecee552fe528ac9e18fb6c268509d504c0 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1615427 Tested-by: Scott Collyer <scollyer@chromium.org> Auto-Submit: Scott Collyer <scollyer@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org> Commit-Queue: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'board/hatch/gpio.inc')
-rw-r--r--board/hatch/gpio.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/hatch/gpio.inc b/board/hatch/gpio.inc
index 63ac5a2271..91ee333503 100644
--- a/board/hatch/gpio.inc
+++ b/board/hatch/gpio.inc
@@ -26,6 +26,7 @@ GPIO_INT(PP5000_A_PG_OD, PIN(D, 7), GPIO_INT_BOTH, power_signal_interrupt)
/* Sensor Interrupts */
GPIO_INT(BASE_SIXAXIS_INT_L, PIN(5, 6), GPIO_INT_FALLING, bmi160_interrupt)
+GPIO_INT(TCS3400_INT_ODL, PIN(F, 1), GPIO_INT_FALLING, tcs3400_interrupt)
/* USB-C interrupts */
GPIO_INT(USB_C0_PPC_INT_ODL, PIN(E, 0), GPIO_INT_FALLING, ppc_interrupt)