mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
pyro: Disable Trackpad in S5 to save power
Follow CL:433083, integrate this to children. BUG=chrome-os-partner:59712,chrome-os-partner:62642 BRANCH=reef TEST=gpioget EN_P3300_TRACKPAD_ODL is 1 in S5 & below, 0 otherwise. Change-Id: I79250b8f8765fbcee065f673b1c02afff123abdf Signed-off-by: Harry Pan <harry.pan@intel.com> Reviewed-on: https://chromium-review.googlesource.com/438780 Commit-Ready: Keith Tzeng <keith.tzeng@quantatw.com> Tested-by: Keith Tzeng <keith.tzeng@quantatw.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
@@ -689,6 +689,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);
|
||||
@@ -699,6 +702,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
|
||||
|
||||
Reference in New Issue
Block a user