guybrush: Implement ppc_interrupt
Implement ppc_interrupt handler.
BRANCH=None
TEST=Build
@@ -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)
