mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
pyro: remove KB/TP control in S3
Remove all TP control because TP lose function. Remove KB control because this action of disable KB in S3 work after modify 'SENSOR_ACTIVE_S0' to 'SENSOR_ACTIVE_S0_S3'. BUG=chrome-os-partner:62138 BRANCH=reef TEST=check TP don't lose function after resume, then KB disable in tablet mode and enable normal mode whether S0 or S3. Change-Id: Ida023f8fa34cadb80dbcd071ee77927e94a5386d Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/430560 Commit-Ready: Aaron Durbin <adurbin@google.com> Tested-by: Keith Tzeng <keith.tzeng@quantatw.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
@@ -680,17 +680,6 @@ void lid_angle_peripheral_enable(int enable)
|
||||
if (tablet_get_mode() || chipset_in_state(CHIPSET_STATE_ANY_OFF))
|
||||
enable = 0;
|
||||
keyboard_scan_enable(enable, KB_SCAN_DISABLE_LID_ANGLE);
|
||||
|
||||
/*
|
||||
* In S3 state, then disable KB/TP function
|
||||
* when state switch to tablet mode from normal mode.
|
||||
* Enable KB/TP function when state switch to nromal
|
||||
* mode from tablet mode.
|
||||
*/
|
||||
if (chipset_in_state(CHIPSET_STATE_SUSPEND)) {
|
||||
keyboard_scan_enable(enable, KB_SCAN_DISABLE_LID_ANGLE);
|
||||
gpio_set_level(GPIO_EN_P3300_TRACKPAD_ODL, !enable);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user