diff options
author | Rob Barnes <robbarnes@google.com> | 2021-01-07 13:52:20 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-14 01:27:19 +0000 |
commit | 98d92542ab55b736c7c0fd04cc5b32c0422e24b0 (patch) | |
tree | d32e0d271a5998a324b81ab777af323952c83508 /baseboard/guybrush | |
parent | 6b148b4e6f7f8aac1a9c87585f904724ebb300f8 (diff) | |
download | chrome-ec-98d92542ab55b736c7c0fd04cc5b32c0422e24b0.tar.gz |
guybrush: Enable tcpc interrupts
Enable TCPC interrupts after i2c.
BUG=None
BRANCH=None
TEST=Build
Signed-off-by: Rob Barnes <robbarnes@google.com>
Change-Id: I57cae426be7562c0eac01ab712a017f937313e72
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2618383
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'baseboard/guybrush')
-rw-r--r-- | baseboard/guybrush/baseboard.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/baseboard/guybrush/baseboard.c b/baseboard/guybrush/baseboard.c index 075b8d04cd..12872596f4 100644 --- a/baseboard/guybrush/baseboard.c +++ b/baseboard/guybrush/baseboard.c @@ -326,6 +326,26 @@ const int usb_port_enable[USBA_PORT_COUNT] = { IOEX_EN_PP5000_USB_A1_VBUS_DB, }; +static void baseboard_interrupt_init(void) +{ + /* Enable PPC interrupts. */ + gpio_enable_interrupt(GPIO_USB_C0_PPC_INT_ODL); + gpio_enable_interrupt(GPIO_USB_C1_PPC_INT_ODL); + + /* Enable TCPC interrupts. */ + gpio_enable_interrupt(GPIO_USB_C0_TCPC_INT_ODL); + gpio_enable_interrupt(GPIO_USB_C1_TCPC_INT_ODL); + + /* Enable BC 1.2 interrupts */ + gpio_enable_interrupt(GPIO_USB_C0_BC12_INT_ODL); + gpio_enable_interrupt(GPIO_USB_C1_BC12_INT_ODL); + + /* Enable SBU fault interrupts */ + ioex_enable_interrupt(IOEX_USB_C0_SBU_FAULT_ODL); + ioex_enable_interrupt(IOEX_USB_C1_SBU_FAULT_ODL); +} +DECLARE_HOOK(HOOK_INIT, baseboard_interrupt_init, HOOK_PRIO_INIT_I2C + 1); + struct ppc_config_t ppc_chips[] = { [USBC_PORT_C0] = { /* Device does not talk I2C */ |