diff options
author | Rob Barnes <robbarnes@google.com> | 2021-01-05 14:32:59 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-11 16:59:05 +0000 |
commit | c938d76769c2333cdb15d46875ba9ed604fa2928 (patch) | |
tree | 411642913d1eafca177c1ef77a7c0729ed33d22f /baseboard/guybrush | |
parent | 57d3da117f3bcf9b584fd2096b9fb672c04a6e5d (diff) | |
download | chrome-ec-c938d76769c2333cdb15d46875ba9ed604fa2928.tar.gz |
guybrush: Implement ppc_interrupt
Implement ppc_interrupt handler.
BUG=None
BRANCH=None
TEST=Build
Signed-off-by: Rob Barnes <robbarnes@google.com>
Change-Id: I62cb4d287e237872b9b1f4192fbc434d4aae70a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2611517
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'baseboard/guybrush')
-rw-r--r-- | baseboard/guybrush/baseboard.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/baseboard/guybrush/baseboard.c b/baseboard/guybrush/baseboard.c index 0b65f8995f..cf3cd6edca 100644 --- a/baseboard/guybrush/baseboard.c +++ b/baseboard/guybrush/baseboard.c @@ -495,7 +495,18 @@ uint16_t tcpc_get_alert_status(void) void ppc_interrupt(enum gpio_signal signal) { - /* TODO */ + switch (signal) { + case GPIO_USB_C0_PPC_INT_ODL: + aoz1380_interrupt(USBC_PORT_C0); + break; + + case GPIO_USB_C1_PPC_INT_ODL: + nx20p348x_interrupt(USBC_PORT_C1); + break; + + default: + break; + } } void bc12_interrupt(enum gpio_signal signal) |