octopus: ignore C0 interrupts if in reset
Now that we have a reset line to C0, we should ignore interrupts while
the C0 TCPC is in reset.
BRANCH=none
TEST=flashed on fleex (uses C0 reset)  without issue
@@ -112,8 +112,11 @@ uint16_t tcpc_get_alert_status(void)
{
uint16_t status = 0;
- if (!gpio_get_level(GPIO_USB_C0_MUX_INT_ODL))
+ if (!gpio_get_level(GPIO_USB_C0_MUX_INT_ODL)) {
+ if (!gpio_is_implemented(GPIO_USB_C0_PD_RST) ||
+ !gpio_get_level(GPIO_USB_C0_PD_RST))
status |= PD_STATUS_TCPC_ALERT_0;
+ }
if (!gpio_get_level(GPIO_USB_C1_MUX_INT_ODL)) {
if (gpio_get_level(GPIO_USB_C1_PD_RST_ODL))
