diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-08-06 11:59:54 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-08-22 09:31:50 +0000 |
commit | bbbbde0fc044358bb511dab7ca94b974cccfdbd2 (patch) | |
tree | 8fb77a83cf3a274965a65eb52bbc0e77f3c639a2 /include/ec_commands.h | |
parent | 59138ad0977bd7ddd47a2810446f458f91eaac7c (diff) | |
download | chrome-ec-bbbbde0fc044358bb511dab7ca94b974cccfdbd2.tar.gz |
driver: si114x: Add ALS/Proxy sensor SI114x
Add the Silicon Image sensors, add it to the motion_sense module
to be used with the FIFO.
BRANCH=smaug
TEST=Check light and proxy on Smaug:
Check Light value in Lux are reasonable.
Check Proxy is detecting object, but value are in opposite of distance.
BUG=chrome-os-partner:32829
Change-Id: I11419a0f0613f0fae9323f99deedf5a1e6c6e29c
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/291335
Reviewed-by: Sheng-liang Song <ssl@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 13ce200683..6f6ee32a34 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -1709,14 +1709,16 @@ enum motionsensor_type { MOTIONSENSE_TYPE_ACCEL = 0, MOTIONSENSE_TYPE_GYRO = 1, MOTIONSENSE_TYPE_MAG = 2, - MOTIONSENSE_TYPE_MAX = 3, + MOTIONSENSE_TYPE_PROX = 3, + MOTIONSENSE_TYPE_LIGHT = 4, + MOTIONSENSE_TYPE_MAX, }; /* List of motion sensor locations. */ enum motionsensor_location { MOTIONSENSE_LOC_BASE = 0, MOTIONSENSE_LOC_LID = 1, - MOTIONSENSE_LOC_MAX = 2, + MOTIONSENSE_LOC_MAX, }; /* List of motion sensor chips. */ @@ -1724,6 +1726,9 @@ enum motionsensor_chip { MOTIONSENSE_CHIP_KXCJ9 = 0, MOTIONSENSE_CHIP_LSM6DS0 = 1, MOTIONSENSE_CHIP_BMI160 = 2, + MOTIONSENSE_CHIP_SI1141 = 3, + MOTIONSENSE_CHIP_SI1142 = 4, + MOTIONSENSE_CHIP_SI1143 = 5, }; struct ec_response_motion_sensor_data { |