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 10:22:00 +0000 |
commit | d7a9d6e7ab05d09b059abe29a589815b4f4b54e4 (patch) | |
tree | 626d2c9075b9cb977bfa3394ceaa3439d9b6896f | |
parent | 10f4d004d05a318ac3522bc32275bbf1c7594fdb (diff) | |
download | chrome-ec-d7a9d6e7ab05d09b059abe29a589815b4f4b54e4.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>
(cherry picked from commit 17c82537eaec047c33281eb2f4fb74e3c5d68a55)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1798074
-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 131eaaf7f7..2de5907a9e 100644 --- a/board/meep/board.c +++ b/board/meep/board.c @@ -205,14 +205,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) |