summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Lu <devin.lu@quantatw.com>2019-11-07 11:30:57 +0800
committerCommit Bot <commit-bot@chromium.org>2019-11-07 17:45:52 +0000
commit98e6559efe1e0574b17e9c2b456f12c0f1f396a7 (patch)
tree9cd01d34d5126005018b6b16b6cdb750628b41f0
parent53d08442e3c9bedde86f1a7ec961efd21902d115 (diff)
downloadchrome-ec-98e6559efe1e0574b17e9c2b456f12c0f1f396a7.tar.gz
dratini/dragonair: add new SKU
add unprovisioned SKUID to support kblight and convertible for pre-flash cbi. add SKU ID: 23 (Convertible, TS, Stylus) BUG=b:142987639, b:143994766 BRANCH=none TEST=make buildall -j. Change-Id: Ie8d4b611d8073ff993a94699d832ada6830a2771 Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1902892 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
-rw-r--r--board/dratini/board.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/board/dratini/board.c b/board/dratini/board.c
index 310fbfaf18..08c9de6c74 100644
--- a/board/dratini/board.c
+++ b/board/dratini/board.c
@@ -366,8 +366,11 @@ static bool board_is_convertible(void)
{
uint8_t sku_id = get_board_sku();
- /* Dragonair (SKU 21 and 22) is a convertible. Dratini is not. */
- return sku_id == 21 || sku_id == 22;
+ /*
+ * Dragonair (SKU 21 ,22 and 23) is a convertible. Dratini is not.
+ * Unprovisioned SKU 255.
+ */
+ return sku_id == 21 || sku_id == 22 || sku_id == 23 || sku_id == 255;
}
static void board_update_sensor_config_from_sku(void)
@@ -413,8 +416,9 @@ bool board_has_kb_backlight(void)
* SKUs have keyboard backlight.
* Dratini: 2, 3
* Dragonair: 22
+ * Unprovisioned: 255
*/
- return sku_id == 2 || sku_id == 3 || sku_id == 22;
+ return sku_id == 2 || sku_id == 3 || sku_id == 22 || sku_id == 255;
}
uint32_t board_override_feature_flags0(uint32_t flags0)