mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
reef: Disable Trackpad in S5 to save power
BUG=chrome-os-partner:59712 BRANCH=reef TEST=gpioget EN_P3300_TRACKPAD_ODL is 1 in S5 & below, 0 otherwise. Change-Id: Iee55325c20df53aaa7f65c8c3091e343698d70fb Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/433083 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
7a8d505ce3
commit
325c93fa94
@@ -687,6 +687,9 @@ static void board_chipset_startup(void)
|
||||
/* Enable USB-A port. */
|
||||
gpio_set_level(GPIO_USB1_ENABLE, 1);
|
||||
|
||||
/* Enable Trackpad */
|
||||
gpio_set_level(GPIO_EN_P3300_TRACKPAD_ODL, 0);
|
||||
|
||||
hook_call_deferred(&enable_input_devices_data, 0);
|
||||
}
|
||||
DECLARE_HOOK(HOOK_CHIPSET_STARTUP, board_chipset_startup, HOOK_PRIO_DEFAULT);
|
||||
@@ -697,6 +700,9 @@ static void board_chipset_shutdown(void)
|
||||
/* Disable USB-A port. */
|
||||
gpio_set_level(GPIO_USB1_ENABLE, 0);
|
||||
|
||||
/* Disable Trackpad */
|
||||
gpio_set_level(GPIO_EN_P3300_TRACKPAD_ODL, 1);
|
||||
|
||||
hook_call_deferred(&enable_input_devices_data, 0);
|
||||
/* FIXME(dhendrix): Drive USB_PD_RST_ODL low to prevent
|
||||
leakage? (see comment in schematic) */
|
||||
|
||||
Reference in New Issue
Block a user