diff options
author | Kevin K Wong <kevin.k.wong@intel.com> | 2016-05-25 18:04:14 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-06-03 13:18:09 -0700 |
commit | a5a4181d29dfb6b1b9a9d102aaf17529a0c69003 (patch) | |
tree | 4d538ab41f53bdb90bc6d83828fc79dad8aab2da /board | |
parent | 98d7bc87dfa4c8d29c0e4df715ba0b62b5e514e5 (diff) | |
download | chrome-ec-a5a4181d29dfb6b1b9a9d102aaf17529a0c69003.tar.gz |
reef: add trackpad power control
BUG=chrome-os-partner:53746
BRANCH=none
TEST=Trackpad is working on reef.
Change-Id: I6c97f3991c1f02575f8bbc94db0b47069e3d7323
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/348321
Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/reef/board.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/board/reef/board.c b/board/reef/board.c index 5d30be65cc..b298b64b6e 100644 --- a/board/reef/board.c +++ b/board/reef/board.c @@ -445,12 +445,17 @@ int usb_charger_port_is_sourcing_vbus(int port) static void enable_input_devices(void) { int kb_enable = 1; + int tp_enable = 1; - /* Disable KB if chipset is off */ - if (chipset_in_state(CHIPSET_STATE_ANY_OFF)) + /* Disable KB & TP if chipset is off */ + if (chipset_in_state(CHIPSET_STATE_ANY_OFF)) { kb_enable = 0; + tp_enable = 0; + } keyboard_scan_enable(kb_enable, KB_SCAN_DISABLE_LID_ANGLE); + + gpio_set_level(GPIO_EN_P3300_TRACKPAD_ODL, !tp_enable); } /* Called on AP S5 -> S3 transition */ |