diff options
author | David Huang <david.huang@quanta.corp-partner.google.com> | 2021-03-15 10:59:09 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-15 08:17:49 +0000 |
commit | 27e7f4c313c8eb39d2f1cb44e84cde83070eec70 (patch) | |
tree | 6fdd6c9ad7090d87a51e7fcba56eecc036022c90 /board/jacuzzi | |
parent | 04a23d3993afa19f3486ea0663a726d5affae17d (diff) | |
download | chrome-ec-27e7f4c313c8eb39d2f1cb44e84cde83070eec70.tar.gz |
juniper: Ignore TABLET_MODE_GPIO_L for kenzo
Kenzo only support clamshell.
Ignore TABLET_MODE_GPIO_L on Kenzo.
BUG=none
BRANCH=main
TEST=Check device is able to get in and out of tablet mode for board
version != 8/9.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: I2a7343d7970dc08e9e43a6e17796468b969312db
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2759313
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/jacuzzi')
-rw-r--r-- | board/jacuzzi/board.c | 11 | ||||
-rw-r--r-- | board/jacuzzi/board.h | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/board/jacuzzi/board.c b/board/jacuzzi/board.c index 9f70ed97fd..b1a7fe7cc0 100644 --- a/board/jacuzzi/board.c +++ b/board/jacuzzi/board.c @@ -533,6 +533,17 @@ static void board_detect_motionsensor(void) ? "ICM40608" : "BMI160"); } DECLARE_HOOK(HOOK_INIT, board_detect_motionsensor, HOOK_PRIO_DEFAULT); + +int board_sensor_at_360(void) +{ + int board_version; + + board_version = board_get_version(); + if (board_version == 8 || board_version == 9) + return 0; + else + return !gpio_get_level(GMR_TABLET_MODE_GPIO_L); +} #endif /* !VARIANT_KUKUI_NO_SENSORS */ /* Called on AP S5 -> S3 transition */ diff --git a/board/jacuzzi/board.h b/board/jacuzzi/board.h index 28f10084e4..6e28d9926d 100644 --- a/board/jacuzzi/board.h +++ b/board/jacuzzi/board.h @@ -74,6 +74,8 @@ #define CONFIG_ACCEL_FORCE_MODE_MASK BIT(LID_ACCEL) +#define CONFIG_GMR_TABLET_MODE_CUSTOM + #endif /* VARIANT_KUKUI_NO_SENSORS */ /* I2C ports */ |