diff options
author | Andrew McRae <amcrae@google.com> | 2020-01-02 11:57:45 +1100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-02 04:40:25 +0000 |
commit | 594f2826d1f19018e00aafed664dc8b013e0c8e4 (patch) | |
tree | 74258f9db992ddebd21ad85e60a93504f287cb62 /board/puff/board.c | |
parent | 65aa5a023fca8bb4794a3ecc966ae03e6c1b733b (diff) | |
download | chrome-ec-594f2826d1f19018e00aafed664dc8b013e0c8e4.tar.gz |
puff ec: Enable all GPIO interrupts
Some EC GPIO interrupts are enabled by common code,
and some need to be explicitly enabled by puff code.
Ensure that all EC GPIO interrupts are enabled.
BRANCH=none
TEST=Verified on puff h/w.
BUG=b:147068623
Change-Id: Iab8c705402840340d37b33f15a1323f6566b8adc
Signed-off-by: Andrew McRae <amcrae@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1984154
Tested-by: Andrew McRae <amcrae@chromium.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Commit-Queue: Andrew McRae <amcrae@chromium.org>
Diffstat (limited to 'board/puff/board.c')
-rw-r--r-- | board/puff/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/puff/board.c b/board/puff/board.c index 1889ca8467..8d275adb15 100644 --- a/board/puff/board.c +++ b/board/puff/board.c @@ -423,6 +423,14 @@ static void board_tcpc_init(void) /* Enable TCPC interrupts. */ gpio_enable_interrupt(GPIO_USB_C0_TCPPC_INT_ODL); gpio_enable_interrupt(GPIO_USB_C0_TCPC_INT_ODL); + /* Enable other overcurrent interrupts */ + gpio_enable_interrupt(GPIO_HDMI_CONN0_OC_ODL); + gpio_enable_interrupt(GPIO_HDMI_CONN1_OC_ODL); + gpio_enable_interrupt(GPIO_USB_A0_OC_ODL); + gpio_enable_interrupt(GPIO_USB_A1_OC_ODL); + gpio_enable_interrupt(GPIO_USB_A2_OC_ODL); + gpio_enable_interrupt(GPIO_USB_A3_OC_ODL); + gpio_enable_interrupt(GPIO_USB_A4_OC_ODL); } DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C + 1); |