From 8ba6446d97ea81acaf1fd8e3754295b4e3f33f31 Mon Sep 17 00:00:00 2001 From: Tino Liu Date: Thu, 26 Apr 2018 18:42:27 +0800 Subject: [PATCH] Nami: Disable ALS for Akali Use OEM ID to update motion_sensor_count to disable ALS for Akali. BUG=b:78537332 BRANCH=master TEST=make buildall successfully Change-Id: I29774c1be4e43218f6aaeb14b3e16637482e1ec4 Signed-off-by: Tino Liu Reviewed-on: https://chromium-review.googlesource.com/1029397 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: Ryan Zhang Reviewed-by: Ryan Zhang Reviewed-by: Aaron Durbin Reviewed-by: Daisuke Nojiri --- board/nami/board.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/nami/board.c b/board/nami/board.c index 836e3f978f..3752815a59 100644 --- a/board/nami/board.c +++ b/board/nami/board.c @@ -664,7 +664,7 @@ DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT); static void board_set_motion_sensor_count(void) { /* There are two possible sensor configurations. - * Vayne/Sona/Pantheon are without ALS sensor + * Vayne/Sona/Pantheon/Akali are without ALS sensor * Nami is with ALS sensor * Use the oem id to different them. */ @@ -672,7 +672,8 @@ static void board_set_motion_sensor_count(void) if (cbi_get_oem_id(&oem_id) == EC_SUCCESS) { if (oem_id == PROJECT_VAYNE || oem_id == PROJECT_SONA - || oem_id == PROJECT_PANTHEON) + || oem_id == PROJECT_PANTHEON + || oem_id == PROJECT_AKALI) motion_sensor_count = ARRAY_SIZE(motion_sensors) - 1; } }