diff options
author | Peter Marheine <pmarheine@chromium.org> | 2020-04-07 10:46:03 +1000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-07 06:50:04 +0000 |
commit | 20b5fdd6fc75cae0784adc44b844cf74063b34ba (patch) | |
tree | ba2578635fac35756683a2fe6239f6b944545666 /board/puff | |
parent | 68968cab21ac0c89322e44bddc18988f037ae7b2 (diff) | |
download | chrome-ec-20b5fdd6fc75cae0784adc44b844cf74063b34ba.tar.gz |
puff: explicitly enable the barrel jack interrupt
While I believe this was working correctly before, without explicitly
enabling the interrupt now it won't fire when the barrel jack is
connected when the system is powered but off (such as when a low-power
USB-C power source is attached).
BUG=b:153283569
TEST=Puff detects barrel jack connection while in "insufficient power"
state.
BRANCH=None
Change-Id: Id8c4c5707401d1ad834424542a68e10af09821fa
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2138733
Reviewed-by: Sam McNally <sammc@chromium.org>
Diffstat (limited to 'board/puff')
-rw-r--r-- | board/puff/board.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/puff/board.c b/board/puff/board.c index 1f8162b147..da57940911 100644 --- a/board/puff/board.c +++ b/board/puff/board.c @@ -394,6 +394,7 @@ static void board_init(void) uint8_t *memmap_batt_flags; update_port_limits(); + gpio_enable_interrupt(GPIO_BJ_ADP_PRESENT_L); /* Always claim AC is online, because we don't have a battery. */ memmap_batt_flags = host_get_memmap(EC_MEMMAP_BATT_FLAG); |