diff options
author | Wai-Hong Tam <waihong@google.com> | 2021-05-14 09:46:56 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-17 22:10:56 +0000 |
commit | 76255bf0630d0f23e9cef561532f57fb4f1064d9 (patch) | |
tree | 55abbe85b2493f87b3b536c87f6c6ca8f9edf5e7 /board/trogdor/gpio.inc | |
parent | 54c4b7ed5a20ed68a69451a63bdd444afbe95849 (diff) | |
download | chrome-ec-76255bf0630d0f23e9cef561532f57fb4f1064d9.tar.gz |
Trogdor: Enable Trogdor as a convertible
Trogdor rev-0 and rev-1 are clamshell designs. Trogdor rev-2 is a
convertible design. We don't support rev-0 and rev-1. Make it straight
to a convertible:
* Add the lid acceleration sensor
* Just assign a random rotation metrix, as no chassis
* Add the GPIO TABLET_MODE_L interrupt
* Enable lid angle detection that disables keyboard
* Enable sensors in S3 for the above angle detection
BRANCH=None
BUG=b:187343625
TEST=Build the Trogdor image and enable "accelinfo on" which shows
the lid accel reading and the lid angle.
As the lid accel sensor is not mounted to the lid surface. The
lid accel reading and the lid angle are not accurate.
Change-Id: I16af2c63181eb6037fbf6742c07427e20064c335
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2895920
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Diffstat (limited to 'board/trogdor/gpio.inc')
-rw-r--r-- | board/trogdor/gpio.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/trogdor/gpio.inc b/board/trogdor/gpio.inc index 8534e001f8..1c5468e3d7 100644 --- a/board/trogdor/gpio.inc +++ b/board/trogdor/gpio.inc @@ -45,6 +45,7 @@ GPIO_INT(WARM_RESET_L, PIN(F, 4), GPIO_INT_BOTH | GPIO_SEL_1P8V, chipset_wa GPIO_INT(AP_EC_SPI_CS_L, PIN(5, 3), GPIO_INT_FALLING | GPIO_PULL_DOWN, shi_cs_event) /* EC SPI Chip Select */ /* Sensor interrupts */ +GPIO_INT(TABLET_MODE_L, PIN(C, 6), GPIO_INT_BOTH, gmr_tablet_switch_isr) GPIO_INT(ACCEL_GYRO_INT_L, PIN(A, 0), GPIO_INT_FALLING, bmi160_interrupt) /* Accelerometer/gyro interrupt */ /* |