summaryrefslogtreecommitdiff
path: root/board/reef
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2017-01-25 14:29:52 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-25 22:12:29 -0800
commit325c93fa94dc8ffbd15386d66c45dc0aaca262bb (patch)
treef21aeee1f19cb491dabc22aa92d74a1a3964fea5 /board/reef
parent7a8d505ce34173c7b12b921b67a53586ada00c4c (diff)
downloadchrome-ec-325c93fa94dc8ffbd15386d66c45dc0aaca262bb.tar.gz
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>
Diffstat (limited to 'board/reef')
-rw-r--r--board/reef/board.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/reef/board.c b/board/reef/board.c
index 0a91bd7069..82a2df4dc8 100644
--- a/board/reef/board.c
+++ b/board/reef/board.c
@@ -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) */