diff options
author | Ting Shen <phoenixshen@google.com> | 2021-03-17 18:29:23 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-23 04:09:16 +0000 |
commit | 759c9d46a03fe87735b2abda0f77abb27d6573d3 (patch) | |
tree | 52c334edd547f18f2c87cbef8f42cda8f94bb413 /board/cerise | |
parent | a65d9bdee3e6e357e4c0fa348f152f51ec0f36fc (diff) | |
download | chrome-ec-759c9d46a03fe87735b2abda0f77abb27d6573d3.tar.gz |
jacuzzi: enable keyboard scanning in S0/tablet
Most Jacuzzi devices copied the incorrect lid_angle_peripheral_enable
code from Reef. Fix this by sharing Willow's good implementation
to all followers.
BUG=b:181852624
TEST=1) make buildall
2) manually test on fennel
BRANCH=kukui
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Ie2dd79d5d0dcebe564664c357db73c5956d1b14b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2765633
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'board/cerise')
-rw-r--r-- | board/cerise/board.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/board/cerise/board.c b/board/cerise/board.c index f167795c3c..912a085900 100644 --- a/board/cerise/board.c +++ b/board/cerise/board.c @@ -471,16 +471,3 @@ int board_get_charger_i2c(void) /* TODO(b:138415463): confirm the bus allocation for future builds */ return board_get_version() == 1 ? 2 : 1; } - -/* Enable or disable input devices, based on chipset state and tablet mode */ -#ifndef TEST_BUILD -void lid_angle_peripheral_enable(int enable) -{ - /* If the lid is in 360 position, ignore the lid angle, - * which might be faulty. Disable keyboard. - */ - if (tablet_get_mode() || chipset_in_state(CHIPSET_STATE_ANY_OFF)) - enable = 0; - keyboard_scan_enable(enable, KB_SCAN_DISABLE_LID_ANGLE); -} -#endif |