diff options
-rw-r--r-- | board/puff/board.c | 5 | ||||
-rw-r--r-- | board/puff/board.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/board/puff/board.c b/board/puff/board.c index 6878031351..93cdc0f374 100644 --- a/board/puff/board.c +++ b/board/puff/board.c @@ -54,6 +54,11 @@ static void ppc_interrupt(enum gpio_signal signal) sn5s330_interrupt(0); } +int ppc_get_alert_status(int port) +{ + return gpio_get_level(GPIO_USB_C0_TCPPC_INT_ODL) == 0; +} + static void tcpc_alert_event(enum gpio_signal signal) { if (signal == GPIO_USB_C0_TCPC_INT_ODL) diff --git a/board/puff/board.h b/board/puff/board.h index 1f605f43db..bbd3ed03ca 100644 --- a/board/puff/board.h +++ b/board/puff/board.h @@ -62,6 +62,7 @@ #define CONFIG_CMD_PD_CONTROL #undef CONFIG_CMD_PWR_AVG #define CONFIG_CMD_PPC_DUMP +#define CONFIG_CMD_TCPCI_DUMP #ifdef SECTION_IS_RO /* Reduce RO size by removing less-relevant commands. */ #undef CONFIG_CMD_APTHROTTLE @@ -142,6 +143,7 @@ #define CONFIG_USB_PD_PORT_MAX_COUNT 1 #define CONFIG_USB_PD_VBUS_DETECT_PPC #define CONFIG_USBC_PPC_SN5S330 +#define CONFIG_USBC_PPC_DEDICATED_INT #define CONFIG_USB_PD_TCPC_LOW_POWER #define CONFIG_USB_PD_TCPM_MUX #define CONFIG_USB_PD_TCPM_TCPCI |