diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-08-17 17:55:02 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-09-14 20:14:17 -0700 |
commit | 4566523837774988a9862e07dd42c10c0e4284bc (patch) | |
tree | ed1c1905100fb5250ffa9316c7ac7819a5f53bba /board/fizz/gpio.inc | |
parent | 0697132df7ffc36ab697ce4de134f585f1644097 (diff) | |
download | chrome-ec-4566523837774988a9862e07dd42c10c0e4284bc.tar.gz |
Fizz: Detect BJ as a power source
Proto2 board has the line ADP_IN, which is raised to 2.5 V when a BJ
adapter is plugged. This patch makes EC running on proto2 and above
use this line to detect the power source at boot (as opposed to proto1
guessing a BJ adapter is plugged if PPVAR_BOOSTIN_SENSE is 19v).
BUG=b:37573548
BRANCH=none
TEST=Boot proto3 Fizz on BJ and Type-C.
Change-Id: I4052a73729d62694ce154bfb33255974dc110841
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/626879
Diffstat (limited to 'board/fizz/gpio.inc')
-rw-r--r-- | board/fizz/gpio.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/fizz/gpio.inc b/board/fizz/gpio.inc index 4b76e8ee5b..4640e3c4da 100644 --- a/board/fizz/gpio.inc +++ b/board/fizz/gpio.inc @@ -22,6 +22,7 @@ GPIO_INT(PCH_SLP_SUS_L, PIN(6, 2), GPIO_INT_BOTH, power_signal_interrupt) GPIO_INT(RSMRST_L_PGOOD, PIN(B, 0), GPIO_INT_BOTH, power_signal_interrupt) GPIO_INT(PMIC_DPWROK, PIN(C, 7), GPIO_INT_BOTH, power_signal_interrupt) GPIO_INT(WP_L, PIN(9, 3), GPIO_INT_BOTH, switch_interrupt) +GPIO_INT(ADP_IN_L, PIN(C, 5), GPIO_INT_LOW | GPIO_PULL_UP, adp_in) /* Low: BJ detected */ GPIO_INT(USB_C0_VBUS_WAKE_L, PIN(9, 7), GPIO_INT_BOTH | GPIO_PULL_UP, vbus0_evt) GPIO_INT(RECOVERY_L, PIN(8, 2), GPIO_INT_BOTH, button_interrupt) /* Recovery button */ GPIO(PCH_RTCRST, PIN(E, 7), GPIO_OUT_LOW) /* RTCRST# to SOC */ |