diff options
author | Devin Lu <devin.lu@quantatw.com> | 2019-09-10 20:33:16 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-09-12 02:55:19 +0000 |
commit | 17c82537eaec047c33281eb2f4fb74e3c5d68a55 (patch) | |
tree | 3f331db42c89251517c5f9c8e6f8d86c4d0cf171 | |
parent | 6180c3c38d964128ab819dc5a0710833cd786cce (diff) | |
download | chrome-ec-17c82537eaec047c33281eb2f4fb74e3c5d68a55.tar.gz |
meep: add convertible SKU ID
This patch adds a convertible SKUID for with Stylus but no rear camera
SKU.
BUG=b:140360096
BRANCH=octopus
TEST=make buildall -j
Change-Id: Ied51a2385504088b27c06f41263c746aa84c9243
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1795722
Reviewed-by: Marco Chen <marcochen@chromium.org>
-rw-r--r-- | board/meep/board.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/board/meep/board.c b/board/meep/board.c index fad99f5ab1..48b12a2398 100644 --- a/board/meep/board.c +++ b/board/meep/board.c @@ -209,14 +209,19 @@ struct motion_sensor_t motion_sensors[] = { unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors); /* - * meep is convertible SKU (SKU ID is 1, 2, 3), mimrock is clamshell - * SKU (SKU ID is 17, 18), vortininja is convertible SKU (SKU ID is 49, - * 50, 51, 52) and default SKU is 255 for factory that enable all sensors. + * Returns 1 for boards that are convertible into tablet mode, and + * zero for clamshells. */ int board_is_convertible(void) { - return sku_id == 1 || sku_id == 2 || sku_id == 3 || sku_id == 49 || - sku_id == 50 || sku_id == 51 || sku_id == 52 || sku_id == 255; + /* + * Meep: 1, 2, 3, 4 + * Vortininja: 49, 50, 51, 52 + * Unprovisioned: 255 + */ + return sku_id == 1 || sku_id == 2 || sku_id == 3 || + sku_id == 4 || sku_id == 49 || sku_id == 50 || + sku_id == 51 || sku_id == 52 || sku_id == 255; } static void board_update_sensor_config_from_sku(void) |