summaryrefslogtreecommitdiff
path: root/board/eve
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2020-12-24 15:53:35 +0800
committerCommit Bot <commit-bot@chromium.org>2020-12-30 00:55:03 +0000
commit88441f3602afeb2e39f1c8bcc17a230c07f43b1c (patch)
tree07c9aaf70328bb9042dfe04b60411625184bc9f5 /board/eve
parentbe8c81f46a50a6fef9a933c94a0df143ce4168b8 (diff)
downloadchrome-ec-88441f3602afeb2e39f1c8bcc17a230c07f43b1c.tar.gz
driver: si114x: Clean up register list
Used the datasheet to reconstruct the register table, took it as an opportunity to align the names with datasheet and clean up a bit the order of the registers/commands/parameters. BRANCH=none BUG=b:172225780 TEST=CQ Change-Id: I0b79b5ca6db439b104704b0e817d8f94fab687a8 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2603076 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'board/eve')
-rw-r--r--board/eve/board.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/eve/board.c b/board/eve/board.c
index 4e1557f9de..2bb1b42f46 100644
--- a/board/eve/board.c
+++ b/board/eve/board.c
@@ -833,8 +833,9 @@ static struct si114x_drv_data_t g_si114x_data = {
},
/* light */
{
- .base_data_reg = SI114X_REG_ALSVIS_DATA0,
- .irq_flags = SI114X_ALS_INT_FLAG,
+ .base_data_reg = SI114X_ALS_VIS_DATA0,
+ .irq_flags = SI114X_IRQ_ENABLE_ALS_IE_INT0 |
+ SI114X_IRQ_ENABLE_ALS_IE_INT1,
.scale = 1,
.offset = -256,
}