summaryrefslogtreecommitdiff
path: root/board/jinlon/board.c
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2020-02-10 13:14:36 -0700
committerCommit Bot <commit-bot@chromium.org>2020-02-18 19:27:10 +0000
commitb6adca6689753bdbe798cd1e0a56f8a4df749445 (patch)
treeceebddf3a15ca0996745c6df67f60e6d9aa2097e /board/jinlon/board.c
parent980b7bc18f1a1e32bb24c3238d93558a02e5fe99 (diff)
downloadchrome-ec-b6adca6689753bdbe798cd1e0a56f8a4df749445.tar.gz
hatch: Add check for convertible SKUs in lid_angle_peripheral_enable
Check for a convertible SKU before turning off the keyboard in the switch to tablet mode. See go/hatch-skus for the list. BUG=b:125936966 BRANCH=firmware-hatch-12672.B TEST=On Kohaku, artificially force SKU to both convertible and non-convertible SKUs, switch to tablet mode, and then check whether Alt-Volup-R reboots the EC. Change-Id: Id29644c4e050705203b860324f14b1b87bc4ccf4 Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2047630 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'board/jinlon/board.c')
-rw-r--r--board/jinlon/board.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/jinlon/board.c b/board/jinlon/board.c
index 1a0936615e..a9646a7794 100644
--- a/board/jinlon/board.c
+++ b/board/jinlon/board.c
@@ -427,3 +427,11 @@ const int keyboard_factory_scan_pins[][2] = {
const int keyboard_factory_scan_pins_used =
ARRAY_SIZE(keyboard_factory_scan_pins);
#endif
+
+bool board_is_convertible(void)
+{
+ const uint8_t sku = get_board_sku();
+
+ return (sku == 255) || (sku == 1) || (sku == 2) || (sku == 21) ||
+ (sku == 22);
+}