diff options
author | toobest54 <toobest54@hotmail.com> | 2018-04-12 19:52:05 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-23 01:36:46 -0700 |
commit | 7d50aacabde1df476dca52d43e4cdf87cc5d6abf (patch) | |
tree | 3ba638c3783162727b0e044a7f11ceae131ddd90 /board/nami/board.c | |
parent | f6a6b7ad89ee6077a20af5f30cff845bed7673ae (diff) | |
download | chrome-ec-7d50aacabde1df476dca52d43e4cdf87cc5d6abf.tar.gz |
Nami: Disable ALS for Pantheon
Use OEM ID to update motion_sensor_count to disable ALS for Pantheon.
BUG=b:77937854
BRANCH=none
TEST=Change oem id for Pantheon then to check the ALS was disabled.
Change-Id: I4cb2ad16f3413a65b6f2df84eae2d1ced37b72f6
Signed-off-by: Raymond Chou <raymond_chou@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/1010182
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Carter Sung <carter_sung@compal.corp-partner.google.com>
Diffstat (limited to 'board/nami/board.c')
-rw-r--r-- | board/nami/board.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/nami/board.c b/board/nami/board.c index 378a761d58..5878515149 100644 --- a/board/nami/board.c +++ b/board/nami/board.c @@ -676,14 +676,15 @@ DECLARE_HOOK(HOOK_LID_CHANGE, lm3509_kblight_lid_change, HOOK_PRIO_DEFAULT); static void board_set_motion_sensor_count(void) { /* There are two possible sensor configurations. - * Vayne(Dell) is without ALS sensor + * Vayne/Sona/Pantheon are without ALS sensor * Nami is with ALS sensor * Use the oem id to different them. */ uint32_t oem_id; if (cbi_get_oem_id(&oem_id) == EC_SUCCESS) { - if (oem_id == PROJECT_VAYNE || oem_id == PROJECT_SONA) + if (oem_id == PROJECT_VAYNE || oem_id == PROJECT_SONA + || oem_id == PROJECT_PANTHEON) motion_sensor_count = ARRAY_SIZE(motion_sensors) - 1; } } |