summaryrefslogtreecommitdiff
path: root/board/careena/gpio.inc
diff options
context:
space:
mode:
authorNick Vaccaro <nvaccaro@google.com>2019-05-24 23:18:10 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-14 22:01:10 +0000
commit960cdb51520dd95175869e3efce80f585c5c5571 (patch)
treea7d2bef38e7af8825b4da1e7c3356c01d10bf7a1 /board/careena/gpio.inc
parent21bf972bf93967fd3677a730b865dc80e3a235ae (diff)
downloadchrome-ec-960cdb51520dd95175869e3efce80f585c5c5571.tar.gz
driver/tcs3400: disable ADC & oscillator between reads
Disabling ADC and oscillator after servicing the interrupt not only saves power, but it assures the next light sample gathered will be based on a single again and atime setting. Without disabling ADC and oscillator, part of the next sample was getting sampled at one again and atime setting, but part of that sample was getting sampled using a different again or atime setting in cases where the saturation compensation mechanism changed again or atime. BUG=b:134188019 BRANCH=master TEST=Flash and boot flapjack, verify that ALS and RGB sensors are still generating data (I used alslog patch and enabled logging in EC console via "alslog" command). Change-Id: Ie599e03e1e5d8a1956a7006cc944a51dd759e8a6 Signed-off-by: Nick Vaccaro <nvaccaro@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1633270
Diffstat (limited to 'board/careena/gpio.inc')
0 files changed, 0 insertions, 0 deletions