diff options
author | Teddy Shih <teddyshih@ami.corp-partner.google.com> | 2022-03-23 15:12:11 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-23 11:30:36 +0000 |
commit | d2f6303bbe8065f7103c65209a66a73b28616c5c (patch) | |
tree | 0af57fa44a48a5063d3c57e52ae8a4be61373044 /board/beadrix/board.c | |
parent | c15fb98e35aab9ffc4ba1deeaead95f66d6cb71a (diff) | |
download | chrome-ec-d2f6303bbe8065f7103c65209a66a73b28616c5c.tar.gz |
beadrix : Update lid sensor
As Beadrix project does not have tablet mode capability, we disable unused
lid sensor gpio pin, CONFIG_TABLET_MODE, and CONFIG_LID_ANGLE according to
schematic.
BRANCH=main
BUG=b:226296636
TEST=on beadrix, tablet mode will not be lanuched via Lid sensor.
Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com>
Change-Id: Ib9201f90996c71481c94d1ef0485dfdac9485f0f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3544874
Reviewed-by: Ivan Chen <yulunchen@google.com>
Commit-Queue: Ivan Chen <yulunchen@google.com>
Reviewed-by: Super Ni <super.ni@intel.corp-partner.google.com>
Commit-Queue: Super Ni <super.ni@intel.corp-partner.google.com>
Diffstat (limited to 'board/beadrix/board.c')
-rw-r--r-- | board/beadrix/board.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/board/beadrix/board.c b/board/beadrix/board.c index e72238e14b..a22c2946e0 100644 --- a/board/beadrix/board.c +++ b/board/beadrix/board.c @@ -33,7 +33,6 @@ #include "pwm_chip.h" #include "switch.h" #include "system.h" -#include "tablet_mode.h" #include "task.h" #include "temp_sensor.h" #include "uart.h" @@ -556,32 +555,6 @@ const struct temp_sensor_t temp_sensors[] = { }; BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); -/* This callback disables keyboard when convertibles are fully open */ -__override void lid_angle_peripheral_enable(int enable) -{ - int chipset_in_s0 = chipset_in_state(CHIPSET_STATE_ON); - - /* - * If the lid is in tablet position via other sensors, - * ignore the lid angle, which might be faulty then - * disable keyboard. - */ - if (tablet_get_mode()) - enable = 0; - - if (enable) { - keyboard_scan_enable(1, KB_SCAN_DISABLE_LID_ANGLE); - } else { - /* - * Ensure that the chipset is off before disabling the keyboard. - * When the chipset is on, the EC keeps the keyboard enabled and - * the AP decides whether to ignore input devices or not. - */ - if (!chipset_in_s0) - keyboard_scan_enable(0, KB_SCAN_DISABLE_LID_ANGLE); - } -} - static const struct ec_response_keybd_config keybd1 = { .num_top_row_keys = 10, .action_keys = { |