diff options
Diffstat (limited to 'board/ampton/board.c')
-rw-r--r-- | board/ampton/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/ampton/board.c b/board/ampton/board.c index 63e124fa79..9282df416f 100644 --- a/board/ampton/board.c +++ b/board/ampton/board.c @@ -49,6 +49,14 @@ static void ppc_interrupt(enum gpio_signal signal) sn5s330_interrupt(1); } +int ppc_get_alert_status(int port) +{ + if (port == 0) + return gpio_get_level(GPIO_USB_C0_PD_INT_ODL) == 0; + else + return gpio_get_level(GPIO_USB_C1_PD_INT_ODL) == 0; +} + #include "gpio_list.h" /* Must come after other header files. */ /******************************************************************************/ |