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:
Harry Pan
2017-02-07 16:20:40 +08:00
committed by chrome-bot
parent 4ff544a573
commit 20cf61354c

View File

@@ -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