diff options
author | raymondchou <raymond_chou@compal.corp-partner.google.com> | 2018-03-29 16:58:27 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-10 21:55:28 -0700 |
commit | 74f8a8595d26d55aa85eeb2b1231a85c00e8ce14 (patch) | |
tree | d337da5e4f022f8cfa36d3aaee0b8afbbed90f33 /board | |
parent | b0f79a70448c8fc3a285f0b4512acc798af9b8dd (diff) | |
download | chrome-ec-74f8a8595d26d55aa85eeb2b1231a85c00e8ce14.tar.gz |
Nami: Disable ALS for Sona
Use OEM ID to update motion_sensor_count to disable ALS for Sona.
BUG=b:77185923
BRANCH=none
TEST=Change oem id for Sona then to check the ALS was disabled.
Change-Id: I25714d0a2d2c0f4e9855a70fcb12cb9e65bae9f8
Signed-off-by: raymondchou <raymond_chou@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/986034
Commit-Ready: Raymond Chou <raymond_chou@compal.corp-partner.google.com>
Tested-by: Raymond Chou <raymond_chou@compal.corp-partner.google.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: stanley zhong <stanley_zhong@compal.corp-partner.google.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/nami/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/nami/board.c b/board/nami/board.c index 7f1254329b..120473e24b 100644 --- a/board/nami/board.c +++ b/board/nami/board.c @@ -686,7 +686,7 @@ static void board_set_motion_sensor_count(void) uint32_t oem_id; if (cbi_get_oem_id(&oem_id) == EC_SUCCESS) { - if (oem_id == PROJECT_VAYNE) + if (oem_id == PROJECT_VAYNE || oem_id == PROJECT_SONA) motion_sensor_count = ARRAY_SIZE(motion_sensors) - 1; } } |